Skip to content

chore(ci): Move release jobs to tart runners - #1318

Draft
leoromanovsky wants to merge 1 commit into
developfrom
leo.romanovsky/release-jobs-tart-runner
Draft

leoromanovsky wants to merge 1 commit into
developfrom
leo.romanovsky/release-jobs-tart-runner

Conversation

@leoromanovsky

Copy link
Copy Markdown
Contributor

Motivation

The prepare-release job for the flags release (job 2283042813) stays pending. No runner matches its tags, macos:sequoia and specific:true.

f6843a1 moved the build and test jobs to macos:tart. The release jobs kept the old tags. In the last 100 finished pipeline jobs, every macOS job ran on "Macos Tart Hypervisor".

push-release-trigger-tag has the same tags. If we fix only prepare-release, the release stops again after the release-prep PR merges to main.

The same problem occurred in dd-openfeature-provider-swift. DataDog/dd-openfeature-provider-swift#48 fixed it there.

Changes

  • prepare-release and push-release-trigger-tag extend .tart-runner. Their macos:sequoia tags are removed.
  • prepare-release uses .pre-tart instead of .pre, the same as the other tart jobs.
  • New .install-commit-headless snippet. The tart image has no commit-headless. The snippet builds v2.0.3 from source with gimme and go install. It runs only when the binary is missing.
  • New .tart-aws-credentials snippet. It exports the VM's AWS credentials before authanywhere runs. .nightly-vars now uses the same snippet in place of its inline copy.
  • .nightly no longer sets macos:sequoia tags. Every job that extends .nightly sets its own tags, so these tags had no effect.

Decisions

  • commit-headless v2.0.3, not v3. release_publisher.dart sends the commits on stdin. v3 removed that input. The old runner image had v2.0.1. v2.0.3 has the same CLI and fixes for empty and deleted files. I built it locally and checked that push accepts -T, --branch, --head-sha, --create-branch, and stdin commits.
  • Build at job time, not in the image. The tart image comes from ddoghq/ci-platform-machine-images. A change there needs a separate review and an image rebuild. The command -v guard skips the build when a later image includes the binary.
  • AWS credential export before authanywhere. I did not confirm that authanywhere needs it on tart. The Swift provider needed the same export for Vault. The export does nothing when the credentials are already in the environment.
  • .infra-retry now applies to the release jobs. It retries only on runner system failures, stuck jobs, and scheduler failures. A retry starts from a clean VM.

Testing

  • GitLab CI lint (ci/lint, dry run on develop) passes. prepare-release resolves to the macos:tart tag.
  • I could not run prepare-release from this branch. Its rules allow only pushes to develop, release branches, and v4. The first real check is a manual run after this merges.

prepare-release and push-release-trigger-tag still asked for macos:sequoia
runners, which no longer pick up jobs, so both stayed pending forever.
Run them on .tart-runner like the other macOS jobs. The tart image has no
commit-headless, so build the 2.0.3 release from source with gimme.
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.

1 participant