Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 26 additions & 19 deletions .github/workflows/closura-arc-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: T3 fork ARC CI

# Self-hosted, repository-scoped ARC only. No paid Blacksmith, hosted fallback,
# macOS/Windows runners, new controller or deployment side effects.
# Self-hosted, repository-scoped ARC only. No paid Blacksmith, macOS/Windows
# runners, new controller or deployment side effects. The one hosted exception
# is the CLO-694 emergency burst: when a burst operator sets the repository variable
# CI_BURST_HOSTED to `on` (any case) during an ARC backlog, these jobs run on
# ubuntu-latest (free here, since this repository is public). Unset, it is ARC.
# The toggle and runbook live in closura-agent-config: scripts/ci_burst.py and
# docs/ci/emergency-burst.md.
on:
push:
# Every merged head of the native release branch gets a check run on its
Expand Down Expand Up @@ -58,7 +63,7 @@ jobs:
)
}}
name: Voice + inbox core (Linux ARC)
runs-on: t3code-ci-arc
runs-on: ${{ vars.CI_BURST_HOSTED == 'on' && 'ubuntu-latest' || 't3code-ci-arc' }}
timeout-minutes: 45
env:
CI: "true"
Expand Down Expand Up @@ -212,7 +217,7 @@ jobs:
)
}}
name: Voice + inbox web (Linux ARC)
runs-on: t3code-ci-arc
runs-on: ${{ vars.CI_BURST_HOSTED == 'on' && 'ubuntu-latest' || 't3code-ci-arc' }}
timeout-minutes: 45
env:
CI: "true"
Expand Down Expand Up @@ -292,7 +297,7 @@ jobs:
)
}}
name: Voice + inbox mobile (Linux ARC)
runs-on: t3code-ci-arc
runs-on: ${{ vars.CI_BURST_HOSTED == 'on' && 'ubuntu-latest' || 't3code-ci-arc' }}
timeout-minutes: 45
env:
CI: "true"
Expand Down Expand Up @@ -467,7 +472,7 @@ jobs:
name: Voice + founder inbox (Linux ARC)
needs: [voice-and-inbox-core, voice-and-inbox-web, voice-and-inbox-mobile]
if: ${{ !cancelled() }}
runs-on: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft && 'ubuntu-latest' || 't3code-ci-arc' }}
runs-on: ${{ ((github.event_name == 'pull_request' && github.event.pull_request.draft) || vars.CI_BURST_HOSTED == 'on') && 'ubuntu-latest' || 't3code-ci-arc' }}
timeout-minutes: 5
steps:
- name: Hold drafts until ready for review
Expand All @@ -477,6 +482,21 @@ jobs:
echo "::error::Draft pull request: the ARC workers run when it is marked ready for review."
exit 1

# Before any checkout: a run whose workers failed or were skipped (for
# example a rejected fork PR) fails here without executing PR content.
- name: Report the three workers
shell: bash
env:
CORE: ${{ needs.voice-and-inbox-core.result }}
WEB: ${{ needs.voice-and-inbox-web.result }}
MOBILE: ${{ needs.voice-and-inbox-mobile.result }}
run: |
set -euo pipefail
printf 'core=%s web=%s mobile=%s\n' "$CORE" "$WEB" "$MOBILE"
for result in "$CORE" "$WEB" "$MOBILE"; do
test "$result" = success
done

- name: Checkout trusted source (no persistent credentials)
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
Expand All @@ -503,16 +523,3 @@ jobs:
- name: Guard the parallel coverage
shell: bash
run: node .github/scripts/arc-ci-coverage.cjs

- name: Report the three workers
shell: bash
env:
CORE: ${{ needs.voice-and-inbox-core.result }}
WEB: ${{ needs.voice-and-inbox-web.result }}
MOBILE: ${{ needs.voice-and-inbox-mobile.result }}
run: |
set -euo pipefail
printf 'core=%s web=%s mobile=%s\n' "$CORE" "$WEB" "$MOBILE"
for result in "$CORE" "$WEB" "$MOBILE"; do
test "$result" = success
done
Loading