Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore(integration): fix failing coder-ai-task integration test#456

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
johnstcn merged 1 commit intomainfromcj/integration/fix-ai-task
Oct 29, 2025

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

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

@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 auuid.Nil)

@johnstcn
Copy link
MemberAuthor

johnstcn commentedOct 29, 2025
edited
Loading

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 auuid.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.

@johnstcnjohnstcn marked this pull request as ready for reviewOctober 29, 2025 20:47
@johnstcnjohnstcn merged commit979aeb5 intomainOct 29, 2025
6 checks passed
@johnstcnjohnstcn deleted the cj/integration/fix-ai-task branchOctober 29, 2025 21:01
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 29, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@johnstcnjohnstcn

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@johnstcn@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp