Skip to content
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

flake: TestWorkspaceUpdateTTL #521

Open
mafredri opened this issue Mar 19, 2025 · 3 comments
Open

flake: TestWorkspaceUpdateTTL #521

mafredri opened this issue Mar 19, 2025 · 3 comments
Assignees
Labels

Comments

@mafredri
Copy link
Member

    workspaces_test.go:2503: 
        	Error Trace:	/home/runner/work/coder/coder/coderd/workspaces_test.go:2503
        	            				/home/runner/work/coder/coder/coderd/workspaces_test.go:2553
        	Error:      	Should not be zero, but was {{0001-01-01 00:00:00 +0000 UTC false}}
        	Test:       	TestWorkspaceUpdateTTL/ModifyAutostopWithRunningWorkspace/IncreaseAutostopDoesNotModifyDeadline

Seen at: https://github.com/coder/coder/actions/runs/13943382083/job/39024931983?pr=16996#step:7:611

@DanielleMaywood
Copy link

I can get this to reproduce locally, although I haven't got a fix yet but want to note down my findings:

  • The workspace does correctly have a TTL set on it
  • The workspace build does not have a deadline set

Could it be possible that sometimes workspace builds can be created without a deadline?

@DanielleMaywood
Copy link

It appears if I add a sleep in the test it stops failing.

The AwaitWorkspaceBuildJobCompleted waits until the job's CompletedAt != nil. Is it possible that the Deadline is changed after CompletedAt != nil?

@mafredri
Copy link
Member Author

Perhaps workspace activity could trigger an updated deadline?

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

3 participants