Skip to content

Commit 8a4d0f6

Browse files
chore(adr): sync enterprise ADR packs (#675)
Brings the ADRs imported from [BarretoTech/enterprise-adrs](https://github.com/BarretoTech/enterprise-adrs) up to date with its `main` (f22df3bc6c6f7debb69376681a995676cfef5343). Generated by the enterprise-adrs Sync workflow; edit the pack upstream, not these files. Signed-off-by: barretotech-automation[bot] <354488638+barretotech-automation[bot]@users.noreply.github.com> Co-authored-by: barretotech-automation[bot] <354488638+barretotech-automation[bot]@users.noreply.github.com>
1 parent 693f7f4 commit 8a4d0f6

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

‎.archgate/adrs/ARCH-027-ci-runners-and-the-shared-runner-picker.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ GitHub-hosted minutes cost nothing for public repositories, and a self-hosted ru
2828
## Decision
2929

3030
1. Public repositories use GitHub-hosted runners only.
31-
2. Private and internal build, test and deploy jobs ask a dedicated picker on `ubuntu-slim` and consume its `runs-on` output with a fallback.
31+
2. Private and internal build, test and deploy jobs ask a dedicated picker on `ubuntu-slim` and consume its `runs-on` output with a fallback. The TatuiCloud jobs listed below use GitHub-hosted runners to preserve network isolation.
3232
3. Use `barretotech/runner-picker` pinned to a full SHA, with `source: service`, `capacity-url: ${{ vars.RUNNER_CAPACITY_URL }}` and `tailnet-client-id: ${{ vars.TAILNET_CLIENT_ID_PICKER }}`.
3333
4. Linux offers Blacksmith first, then `hosted: ${{ vars.HOSTED_LINUX_RUNNER || '"ubuntu-latest"' }}` with `weight: ${{ vars.HOSTED_LINUX_WEIGHT || 1 }}`. Before using a Linux weight other than 1, deploy and verify matching SKU accounting in ci-capacity; until then keep the standard hosted offer and weight 1. Windows offers `"windows-latest"` at weight 2 without Blacksmith; macOS offers `"macos-latest"` at weight 10. Configuration and accounting details below are part of this policy.
3434
5. Jobs taking seconds, including pickers, run directly on `ubuntu-slim`.
@@ -39,6 +39,9 @@ GitHub-hosted minutes cost nothing for public repositories, and a self-hosted ru
3939

4040
1. **Public repositories run on GitHub-hosted runners only.** They never name a self-hosted label, a Blacksmith label, or the runner picker.
4141
2. **Private and internal repositories ask the runner picker for every job that builds, tests or deploys.** The picker job runs on `ubuntu-slim` and the consuming job reads its `runs-on` output, with a fallback for when the picker gives no answer.
42+
43+
In `BarretoTech/tatuicloud`, the `line-endings`, `shell`, `ansible` and `tofu` jobs in `.github/workflows/ci.yml` run on GitHub-hosted runners without a route to the homelab and use no deployment credentials. The `apply` job in `.github/workflows/tailnet.yml` also runs on GitHub-hosted and uses the API-scoped OIDC identity from its protected `tailnet` environment. These five jobs are the TatuiCloud network-isolation exception to picker routing.
44+
4245
3. **One action, one pin.** The picker is `barretotech/runner-picker`, pinned to a full commit SHA with its release tag as a comment, and called with `source: service`, `capacity-url: ${{ vars.RUNNER_CAPACITY_URL }}` and `tailnet-client-id: ${{ vars.TAILNET_CLIENT_ID_PICKER }}`.
4346
4. **Overflow order per platform.** Linux offers `"blacksmith-2vcpu-ubuntu-2404"` as `overflow`. Its GitHub-hosted offer and billing weight come from organization variables, with standard-runner defaults:
4447

@@ -118,7 +121,7 @@ The companion rules read every workflow and every composite action (`action.yml`
118121

119122
GitHub limits what a public workflow that breaks the rule can reach, without rejecting the workflow itself: the enterprise runner group `tatuicloud` does not serve public repositories, so a job naming its labels never gets a runner, and the picker's organization variables are visible to private and internal repositories only, so a picker step there has no service to ask. `public-hosted-only` is what rejects such a workflow.
120123

121-
The rules check the pool side of the decision: a job that names no self-hosted, `tatuicloud*` or `blacksmith-*` runner is not checked, so whether a private repository's build job on a hosted label should ask the picker instead is left to review.
124+
The rules check pool labels. During review, verify that directly hosted private and internal jobs meet the short-job policy or the TatuiCloud network-isolation exception. For the exception, match both the workflow path and job ID, and verify that the validation jobs use no deployment credentials and that the apply job uses the protected `tailnet` environment.
122125

123126
## References
124127

‎.archgate/imports.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"imports": [
33
{
44
"source": "BarretoTech/enterprise-adrs/packs/ci-runners",
5-
"version": "1.4.1",
6-
"importedAt": "2026-11-21T23:36:49.908Z",
5+
"version": "1.4.2",
6+
"importedAt": "2026-11-21T23:49:27.708Z",
77
"adrIds": ["ARCH-027"]
88
}
99
]

0 commit comments

Comments
 (0)