Skip to content

flake: [Infrastructure] Terraform provider install 503 - provisioner/terraform TestProvision/ai-task-app-id #1193

@flake-investigator

Description

@flake-investigator

CI Run: https://github.com/coder/coder/actions/runs/20134964926
Commit: 8ead6f795d182b747309740b300ddd567f31a225 (author: Danielle Maywood)

Failing job: test-go-race-pg (Linux)
Failure time: 2025-12-11T13:50:34Z (same window as Slack alert)

Test failure:

  • Package: provisioner/terraform
  • Test: TestProvision/ai-task-app-id
  • Step: terraform init during provider install

Log evidence:
...snip...
log: [INFO] Installing provider version: coder/coder v2.13.1...
log: [ERROR] Error: Failed to install provider
log: [ERROR] Error while installing coder/coder v2.13.1: github.com: bad response code: 503
initialize terraform: exit status 1
...snip...

Root cause classification: Infrastructure (external provider registry returned 503). Not a product/test logic failure; transient network/service outage during provider install.

Duplicate search summary:

  • repo:coder/internal "Failed to install provider" terraform — no results
  • repo:coder/internal "bad response code: 503" — no results
  • repo:coder/internal TestProvision/ai-task-app-id — no results

Assignment analysis:

  • Component area: provisioner/terraform tests and provider installation caching/infra
  • Recent ownership context in provisioner/terraform: multiple infra-related changes by Steven Masley (Emyrk) and others (provider caching, test infra). Assigning to Steven for initial triage; reassign as needed.

Action requested:

  • Validate provider cache/proxy behavior covered this path; consider retry logic around provider install to mitigate transient 5xx
  • If already addressed, ensure this test path uses the shared caching helpers so we avoid external fetches during CI.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions