Bug 15495

Summary: AB-INT PTEST: tcl ptest failure: in socket.test
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandre.belloni, randy.macleod, tgamblin
Version: unspecified   
Target Milestone: 6.0 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2024-05-27 08:31:12 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/6454/steps/13/logs/stdio

AssertionError: 
Failed ptests:
{'tcl': ['socket.test']}

qemuarm64-ptest ubuntu1804-arm-1
Comment 1 Alexandre Belloni 2024-05-30 14:34:47 UTC
Tests began at Sat May 25 01:49:36 BST 2024
socket.test


==== socket_inet6-2.13 Bug 1758a0b603 FAILED
==== Contents of test case:

    file delete $path(script)
    set f [open $path(script) w]
    puts $f {
	set server [socket -server accept 0]
	puts [lindex [chan configure $server -sockname] 2]
	proc accept { client host port } {
	    chan configure $client -blocking  0 -buffering line -buffersize 1
	    puts $client [string repeat . 720000]
	    puts ready
	    chan event $client writable [list setup $client]
	}
	proc setup client {
	    chan event $client writable {set forever write}
	    after 5 {set forever timeout}
	}
	vwait forever
	puts $forever
    }
    close $f
    set pipe [open |[list [interpreter] $path(script)] r]
    gets $pipe port
    set sock [socket $localhost $port]
    chan configure $sock -blocking  0 -buffering line
    chan event $sock readable [list read_lines $sock $pipe ]
    proc read_lines { sock pipe } {
	gets $pipe
	gets $sock line
	after idle [list stop $sock $pipe]
	chan event $sock readable {}
    }
    proc stop {sock pipe} {
	variable done
	close $sock
	set done [gets $pipe]
    }
    variable done
    vwait [namespace which -variable done]
    close $pipe
    set done

---- Result was:
timeout
---- Result should have been (exact matching):
write
==== socket_inet6-2.13 FAILED


Tests ended at Sat May 25 01:49:41 BST 2024
all.tcl:	Total	173	Passed	60	Skipped	112	Failed	1
Sourced 1 Test Files.
Files with failing tests: socket.test
Number of tests skipped for each constraint:
	2	notRoot
	5	thread
FAIL: socket.test
Comment 2 Trevor Gamblin 2024-05-30 14:41:22 UTC
Welcome back Ross! Can you take a look at this?
Comment 3 João Marcos Costa 2024-07-22 08:13:28 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/81/builds/6814/steps/12/logs/stdio

qemux86-64-ptest debian12-ty-1
Comment 4 Ross Burton 2025-02-12 18:17:30 UTC
Closing as we've not seen this for half a year.
Comment 5 João Marcos Costa 2025-12-02 10:34:36 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/2648/steps/13/logs/stdio

Failed ptests:{'tcl': ['socket.test']}

qemuarm64-ptest ubuntu2204-vk-arm2

Reopening.
Comment 6 Mathieu Dubois-Briand 2025-12-29 09:11:51 UTC
qemux86-64-ptest debian12-vk-4 mathieu/master-next completed at 2025-12-28 08:15:46+00:00
https://valkyrie.yocto.io/pub/non-release/20251228-42/testresults/qemux86-64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/2831/steps/13/logs/stdio
Comment 7 Ross Burton 2026-01-13 18:40:21 UTC
Another patch sent:

Subject: [PATCH 2/2] tcl: skip all socket tests
Comment 8 Ross Burton 2026-01-15 16:10:10 UTC
Fixed in oe-core d17afaf34dd26319bc9e29b54c863d51d0694569.