Skip to content

flake: enterprise/coderd TestWorkspaceAutobuild/DormantNoAutostart #10947

Closed
@spikecurtis

Description

@spikecurtis
t.go:84: 2023-11-29 13:00:00.262 [debu]  provisionerd.runner: sent CompletedJob  job_id=73d37b8d-73c2-4fca-bbd9-e1626a7e37f0  template_name=lucid-hodgkin1-PW5  template_version=determined_saha3  workspace_build_id=235a3a8f-f4e3-4184-8ce0-62114dcb617f  workspace_id=84f7ff30-8dc8-4140-b4c5-5207b19a7568  workspace_name=zealous-sammet3-iVz  workspace_owner=testuser  workspace_transition=stop
    t.go:84: 2023-11-29 13:00:00.262 [debu]  provisionerd: start of acquireAndRunOne
    t.go:84: 2023-11-29 13:00:00.263 [debu]  acquirer: acquiring job  worker_id=4dd8049d-66cb-4bf6-8946-833e826b48db  provisioner_types="[echo terraform]"  tags={"scope":"organization"}
    t.go:84: 2023-11-29 13:00:00.263 [debu]  acquirer: got clearance to call database  worker_id=4dd8049d-66cb-4bf6-8946-833e826b48db  provisioner_types="[echo terraform]"  tags={"scope":"organization"}
    t.go:84: 2023-11-29 13:00:00.263 [debu]  acquirer: no job available  worker_id=4dd8049d-66cb-4bf6-8946-833e826b48db  provisioner_types="[echo terraform]"  tags={"scope":"organization"}
    t.go:84: 2023-11-29 13:00:00.501 [debu]  GET  host=localhost:45311  path=/api/v2/workspacebuilds/235a3a8f-f4e3-4184-8ce0-62114dcb617f  proto=HTTP/1.1  remote_addr=127.0.0.1  start="2023-11-29T13:00:00.500171846Z"  took=1.32[465](https://github.com/coder/coder/runs/19137479340#step:5:466)5ms  status_code=200  latency_ms=1  request_id=f7b8b152-a05d-4cfb-b6d2-f5421d93cde6
    workspaces_test.go:700: got workspace build job 235a3a8f-f4e3-4184-8ce0-62114dcb617f
    t.go:84: 2023-11-29 13:00:00.545 [debu]  GET  host=localhost:45311  path=/api/v2/workspaces/84f7ff30-8dc8-4140-b4c5-5207b19a7568  proto=HTTP/1.1  remote_addr=127.0.0.1  start="2023-11-29T13:00:00.502294997Z"  took=43.517149ms  status_code=200  latency_ms=43  request_id=8874ed21-cca1-4372-9703-1d5b424c3cd6
    t.go:84: 2023-11-29 13:00:00.554 [debu]  autobuild: skipping workspace  workspace_id=84f7ff30-8dc8-4140-b4c5-5207b19a7568 ...
        error= last transition not valid for autostart or autostop:
                   github.com/coder/coder/v2/coderd/autobuild.getNextTransition
                       /home/runner/actions-runner/_work/coder/coder/coderd/autobuild/lifecycle_executor.go:340
    workspaces_test.go:706: 
        	Error Trace:	/home/runner/actions-runner/_work/coder/coder/enterprise/coderd/workspaces_test.go:706
        	Error:      	"map[]" should have 1 item(s), but has 0
        	Test:       	TestWorkspaceAutobuild/DormantNoAutostart

seen https://github.com/coder/coder/runs/19137479340

The crontab in this test is CRON_TZ=UTC 0 * * * * or every hour on :00, and the failure happened at 13:00:00.263. I think the issue is related to our rounding to the nearest minute.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions