Skip to content

Conversation

@johnstcn
Copy link
Member

This integration test was failing with:

        integration_test.go:258: exec container cmd: "cat /tmp/coder-ai-task.json"
        integration_test.go:258: exec container output:
            {"ai_task.app_id":"d217bbbe-4b3d-4cd3-bf26-08afe1eec0fe","ai_task.id":"00000000-0000-0000-0000-000000000000","ai_task.prompt":"default","app.id":"d217bbbe-4b3d-4cd3-bf26-08afe1eec0fe"}
        integration_test.go:262: 
                Error Trace:    /home/coder/src/coder/terraform-provider-coder/integration/integration_test.go:428
                                                        /home/coder/src/coder/terraform-provider-coder/integration/integration_test.go:262
                Error:          Expect "00000000-0000-0000-0000-000000000000" to match "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
                Test:           TestIntegration/coder-ai-task
                Messages:       output key "ai_task.id" does not have expected value

I think this is the correct fix but I'm not sure what was going on with those specific UUIDs.

@johnstcn johnstcn self-assigned this Oct 29, 2025
@DanielleMaywood
Copy link
Contributor

Looks like we both hit the same issue 😄 (I fixed it doing this: cd2cf5a)

I think I prefer your solution though 👍 (but not entirely sure why CODER_TASK_ID is being passed through as a uuid.Nil)

@johnstcn
Copy link
Member Author

johnstcn commented Oct 29, 2025

Looks like we both hit the same issue 😄 (I fixed it doing this: cd2cf5a)

I think I prefer your solution though 👍 (but not entirely sure why CODER_TASK_ID is being passed through as a uuid.Nil)

I think it's because we're creating a workspace and not a task in the integration test 🤦

			_, rc = execContainer(ctx, t, ctrID, fmt.Sprintf(`coder create %s -t %s %s --yes`, tt.name, tt.name, includeParameters))

Created #457 to follow up on this.

@johnstcn johnstcn marked this pull request as ready for review October 29, 2025 20:47
@johnstcn johnstcn merged commit 979aeb5 into main Oct 29, 2025
6 checks passed
@johnstcn johnstcn deleted the cj/integration/fix-ai-task branch October 29, 2025 21:01
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants