Thanks to visit codestin.com
Credit goes to github.com

Skip to content

flake: TestTemplatePull_Stdout #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
spikecurtis opened this issue Apr 14, 2025 · 3 comments
Open

flake: TestTemplatePull_Stdout #581

spikecurtis opened this issue Apr 14, 2025 · 3 comments
Assignees
Labels

Comments

@spikecurtis
Copy link

     coderdtest.go:1031: template version job status: succeeded
    templatepull_test.go:83: template version a56caf90-a383-479f-befb-ec5113a69565 job has completed
    clitest.go:75: invoking command: coder --global-config C:\Users\RUNNER~1\AppData\Local\Temp\TestTemplatePull_Stdout392450576\003 templates pull --tar nice-easley1-WDV
    templatepull_test.go:94: 
        	Error Trace:	C:/a/coder/coder/cli/templatepull_test.go:94
        	Error:      	Received unexpected error:
        	            	running command "coder templates pull": get current organization:
        	            	    github.com/coder/coder/v2/cli.(*RootCmd).templatePull.func1
        	            	        C:/a/coder/coder/cli/templatepull.go:51
        	            	  - get organizations:
        	            	    github.com/coder/coder/v2/cli.(*OrganizationContext).Selected
        	            	        C:/a/coder/coder/cli/root.go:649
        	            	  - Get "http://localhost:58954/api/v2/users/me/organizations": dial tcp [::1]:58954: connectex: No connection could be made because the target machine actively refused it.
        	Test:       	TestTemplatePull_Stdout

seen here: https://github.com/coder/coder/actions/runs/14399729681/job/40382873419

@spikecurtis
Copy link
Author

The address and port of the error matches what was being used earlier in the test. So, either Windows can sometimes report CONN_REFUSED on localhost, e.g. due to load, or something has mysteriously torn down the coderd server without dropping any logs. I've added some explicit logging to rule out the latter in coder/coder#17376

@spikecurtis
Copy link
Author

https://github.com/coder/coder/actions/runs/14444260419/job/40501108371 shows this error with the logs, and the server is not shut down. Some sort of race with the underlying netstack.

spikecurtis added a commit to coder/coder that referenced this issue Apr 14, 2025
regarding coder/internal#581

Adds logging around the lifecyle of the coderd HTTP server.
@sreya sreya marked this as a duplicate of #387 Apr 15, 2025
@sreya sreya assigned ibetitsmike and unassigned spikecurtis Apr 15, 2025
@spikecurtis
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants