Skip to content

bug: agent can transition out of terminal state #13062

Closed
@johnstcn

Description

@johnstcn

Seen here: https://github.com/coder/coder/actions/runs/8813004718/job/24189830135?pr=13061

Gist: https://gist.github.com/johnstcn/fbe2c14e0a85512a8cf5107ed5513f45

    agent_test.go:1412: 
        	Error Trace:	/home/runner/actions-runner/_work/coder/coder/agent/agent_test.go:1412
        	Error:      	Not equal: 
        	            	expected: []codersdk.WorkspaceAgentLifecycle{"starting", "ready", "shutting_down", "shutdown_error"}
        	            	actual  : []codersdk.WorkspaceAgentLifecycle{"starting", "ready", "shutting_down", "starting"}
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -4,3 +4,3 @@
        	            	  (codersdk.WorkspaceAgentLifecycle) (len=13) "shutting_down",
        	            	- (codersdk.WorkspaceAgentLifecycle) (len=14) "shutdown_error"
        	            	+ (codersdk.WorkspaceAgentLifecycle) (len=8) "starting"
        	            	 }
        	Test:       	TestAgent_Lifecycle/ShutdownError

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions