Skip to content

Sync Outdated Terraform Buildkite Pipelines for bazel-testing Org#2465

Open
SalmaSamy wants to merge 18 commits intomasterfrom
Update-terraform-for-bazel-testing
Open

Sync Outdated Terraform Buildkite Pipelines for bazel-testing Org#2465
SalmaSamy wants to merge 18 commits intomasterfrom
Update-terraform-for-bazel-testing

Conversation

@SalmaSamy
Copy link
Contributor

@SalmaSamy SalmaSamy commented Feb 10, 2026

Sync terraform files for: bazel-testing org

  1. Updated Buildkite provider version
  2. Imported existing pipelines
  3. Better formatting
  4. Updated docker ubuntu version
  5. Split files for easier diff

Used -generate-config-outterraform flag + script to pull and set provider settings (the generate import doesn't pull them by default)

1. Updated Buildkite provider version
2. Imported existing pipelines
3. Better formatting
4. Updated docker ubuntu version
Copy link
Member

@fweikert fweikert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Can you please update the description to mention that this only covers the testing org?
  2. Something is wrong - I see 32 pipelines in the testing org, but only 24 in the Terraform config
  3. Nit: Which command did you use to sync the files? It would be nice to include that in the description

@SalmaSamy
Copy link
Contributor Author

SalmaSamy commented Feb 10, 2026

  1. Can you please update the description to mention that this only covers the testing org?
  2. Something is wrong - I see 32 pipelines in the testing org, but only 24 in the Terraform config
  3. Nit: Which command did you use to sync the files? It would be nice to include that in the description
  1. I wrongly used terraform to fetch current pipelines (It only sees what's inside its state file not the real resources)
    I updated my approach to call Buildkite and get the pipelines

Description updated.

---%{ if length(envs) > 0 }
env:%{ for key, value in envs }
${key}: "${value}"%{ endfor ~}
${key}: ${key == "LC_ALL" ? value : jsonencode(value)}%{ endfor ~}
Copy link
Contributor Author

@SalmaSamy SalmaSamy Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fweikert not sure if this is the best way to do this, but this is the only var that should have unquoted value. WDYT?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which values do actually need json encoding? I see others that don't (e.g. ENABLE_BAZELISK_MIGRATE).

deepalak56 and others added 4 commits February 11, 2026 11:04
Re-enabling buildfarm in the downstream pipeline now that the
infrastructure is stable and passing
We haven't used them since migrating from physical machines to hosted
VMs, and their continued existence only leads to confusion (e.g.
#2466).
- Fix debian 13 by avoid using software-properties-common (removed in
debian 13)
- Added a helper function in build.sh to reduce log size
- Surface build error by waiting on specific PID.

Fixes
#2459 (comment)
@SalmaSamy SalmaSamy changed the title Sync Outdated Terraform Buildkite Pipelines Sync Outdated Terraform Buildkite Pipelines for bazel-testing Org Feb 17, 2026
SalmaSamy and others added 11 commits February 18, 2026 11:19
This changes allow terraform changes to be managed by github.
Once a pull request is made a plan should be generated
Once a pull request is merged the plan will be applied
1. Updated Buildkite provider version
2. Imported existing pipelines
3. Better formatting
4. Updated docker ubuntu version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants