Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

ci: rename workflows, jobs and steps to describe what they do

Amruth Pillai37d8bdd897fc
diff --git a/.agents/docs/ci-performance.md b/.agents/docs/ci-performance.md
index 3f93d0312..08fa79ed6 100644
--- a/.agents/docs/ci-performance.md
+++ b/.agents/docs/ci-performance.md
@@ -58,7 +58,7 @@ E2E workflow conclusion, so both matrix legs remain required for promotion.
## Test audit and preservation
-`tooling/mobile-updates.test.ts` executes the real production OTA shell guard from `docker-build.yml` with local
+`tooling/mobile-updates.test.ts` executes the real production OTA shell guard from `mobile-ota-update.yml` with local
HTTP-command fixtures. Previously, unhealthy status and unrelated service each repeated the same failing loop
60 times. One rolling sequence now inserts each invalid response after two healthy matches, then requires three
fresh matches. It asserts success at exactly 12 probes. Immediate success at 3 and permanent mismatch failure at
@@ -85,15 +85,15 @@ Independent preservation review found no lost contract or new cache/database iso
## Workflow-wide recommendations
-| Workflow | Current evidence / caching | Next improvement |
-| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `e2e.yml` | Serial 130s unit + 28s build + 68s browser baseline; pnpm and Turbo caches already restored. | This PR fixes secret-induced cache misses and adds bounded parallelism. Profile new hosted runs before adding shards. Cloudflare currently calls web build directly without Turbo; a follow-up can route that build through Turbo with declared build inputs and its own cache namespace. Keep real runtime smoke and Vercel artifact proof. |
-| `autofix.yml` | Recent successful job: dependency install 1s, setup/cache restore 19s, Knip 3s, lint/format 7s. | Keep mutating Knip/lint/format uncached: a cached success would not reproduce edits. If setup remains dominant, benchmark a Blacksmith sticky disk for the pnpm store rather than adding more task caching. |
-| `docker-build.yml` | Native AMD64/ARM64 builds already parallel; Blacksmith persists BuildKit layers and pnpm mounts per architecture. Sample build steps 76s/144s, anonymous pulls 48s, Docker Hub mirror 273s, OTA publish 353s. | Largest follow-ups: move best-effort Docker Hub mirroring off the deployment/OTA critical path while preserving digest/signature evidence; profile OTA bundling on a larger runner or use an unsigned Metro transform cache keyed by toolchain/lockfile. GitHub fallback currently has no cross-run Docker layer cache: benchmark `type=gha` per architecture there only, without stacking it onto the Blacksmith builder. Preserve every SHA image, exact-commit CI, signing, and backend-revision gates. |
-| `mobile-release.yml` | Platforms already matrixed; pnpm and Ruby/Bundler dependencies cached. Latest Android build step 411s; store submission 72s, excluding approval waits. No explicit Gradle or CocoaPods download cache. | Benchmark dependency-only Gradle/CocoaPods caches or Blacksmith sticky disks keyed by OS/toolchain/lockfiles. Avoid signing files, generated signed output, keychains, and broad workspace caches. Keep approval boundaries and exact-commit CI; build-number/fingerprint evidence cannot be reused from another release. |
-| `mobile-forme-native.yml` | Manual macOS job installs pinned Rust toolchain, cbindgen/cargo-ndk, then builds five targets serially with four jobs each; no explicit Cargo cache. No recent hosted run available for timing. | Cache Cargo registry/git downloads and pinned installed tools first; then benchmark target build caching keyed by Rust/NDK/Xcode/Cargo.lock. Preserve clean header/notices comparison, artifact checksum verification and immutable publishing. Do not introduce five simultaneous four-thread compiles without a memory benchmark. |
-| `issue-maintenance.yml` | Already lightweight 2-vCPU jobs; no dependency installation. Stale job needs no checkout. | No build/test cache needed. Label job could use sparse checkout of its single imported script, but expected saving is small; retain form-derived labels and stale policy. |
-| GitHub-managed `CodeQL` | Default setup scans `actions`, on standard runners; recent runs about 50s including scheduling. Not a checked-in workflow. | Keep independent security analysis. No Turbo task output or dependency cache applies to its current Actions-only analysis. |
+| Workflow | Current evidence / caching | Next improvement |
+| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `ci.yml` | Serial 130s unit + 28s build + 68s browser baseline; pnpm and Turbo caches already restored. | This PR fixes secret-induced cache misses and adds bounded parallelism. Profile new hosted runs before adding shards. Cloudflare currently calls web build directly without Turbo; a follow-up can route that build through Turbo with declared build inputs and its own cache namespace. Keep real runtime smoke and Vercel artifact proof. |
+| `autofix.yml` | Recent successful job: dependency install 1s, setup/cache restore 19s, Knip 3s, lint/format 7s. | Keep mutating Knip/lint/format uncached: a cached success would not reproduce edits. If setup remains dominant, benchmark a Blacksmith sticky disk for the pnpm store rather than adding more task caching. |
+| `docker-publish.yml` | Native AMD64/ARM64 builds already parallel; Blacksmith persists BuildKit layers and pnpm mounts per architecture. Sample build steps 76s/144s, anonymous pulls 48s, Docker Hub mirror 273s, OTA publish 353s. | Largest follow-ups: move best-effort Docker Hub mirroring off the deployment/OTA critical path while preserving digest/signature evidence; profile OTA bundling on a larger runner or use an unsigned Metro transform cache keyed by toolchain/lockfile. GitHub fallback currently has no cross-run Docker layer cache: benchmark `type=gha` per architecture there only, without stacking it onto the Blacksmith builder. Preserve every SHA image, exact-commit CI, signing, and backend-revision gates. |
+| `mobile-release.yml` | Platforms already matrixed; pnpm and Ruby/Bundler dependencies cached. Latest Android build step 411s; store submission 72s, excluding approval waits. No explicit Gradle or CocoaPods download cache. | Benchmark dependency-only Gradle/CocoaPods caches or Blacksmith sticky disks keyed by OS/toolchain/lockfiles. Avoid signing files, generated signed output, keychains, and broad workspace caches. Keep approval boundaries and exact-commit CI; build-number/fingerprint evidence cannot be reused from another release. |
+| `mobile-forme-build.yml` | Manual macOS job installs pinned Rust toolchain, cbindgen/cargo-ndk, then builds five targets serially with four jobs each; no explicit Cargo cache. No recent hosted run available for timing. | Cache Cargo registry/git downloads and pinned installed tools first; then benchmark target build caching keyed by Rust/NDK/Xcode/Cargo.lock. Preserve clean header/notices comparison, artifact checksum verification and immutable publishing. Do not introduce five simultaneous four-thread compiles without a memory benchmark. |
+| `issue-maintenance.yml` | Already lightweight 2-vCPU jobs; no dependency installation. Stale job needs no checkout. | No build/test cache needed. Label job could use sparse checkout of its single imported script, but expected saving is small; retain form-derived labels and stale policy. |
+| GitHub-managed `CodeQL` | Default setup scans `actions`, on standard runners; recent runs about 50s including scheduling. Not a checked-in workflow. | Keep independent security analysis. No Turbo task output or dependency cache applies to its current Actions-only analysis. |
Blacksmith documentation confirms `actions/cache` and `actions/setup-node` dependency caching are accelerated
transparently on its runners; replacing working actions with extra wrappers is unnecessary. Existing observed
diff --git a/.agents/docs/container-publishing.md b/.agents/docs/container-publishing.md
index 7c6fd4e36..1f9abd162 100644
--- a/.agents/docs/container-publishing.md
+++ b/.agents/docs/container-publishing.md
@@ -6,7 +6,7 @@ The repository is `reactive-resume/reactive-resume`. Docker Hub remains
## Builds and release safety
-`.github/workflows/docker-build.yml` builds AMD64 and ARM64 on matching native runners.
+`.github/workflows/docker-publish.yml` builds AMD64 and ARM64 on matching native runners.
All workflows run on GitHub-hosted runners (`ubuntu-latest`, `ubuntu-24.04-arm`) by default,
so forks work without setup. Setting the repository variable `USE_BLACKSMITH=true` switches
every job to Blacksmith runners (32 vCPU for build/test jobs, 2 vCPU for lightweight jobs) and
@@ -41,7 +41,7 @@ It never builds Android APKs, creates Git tags, or creates GitHub Releases. Prod
GitHub Releases and `v*` tags are created only by an explicit versioned release operation.
Docker promotion consumes an existing tag or commit; it does not create either.
-For a sideloadable APK, dispatch **Mobile Release** on `main` with `platform=android`,
+For a sideloadable APK, dispatch **Mobile release** on `main` with `platform=android`,
`format=apk`, the desired `abi`, and `upload=false`. Signing requires approval through
`mobile-signing`. The preview APK is a downloadable Actions artifact for 14 days;
release evidence is retained for 90 days. No GitHub tag or release is created.
@@ -53,7 +53,7 @@ remove an asset still referenced by `packages/forme-native/scripts/prebuilt.json
### Stable promotions
-Before moving any container aliases or deploying production, the latest `e2e.yml`
+Before moving any container aliases or deploying production, the latest `ci.yml`
CI run from a `main` push must have completed successfully for the exact full commit
SHA being promoted. Missing, failed, cancelled, or pending CI blocks promotion;
PR checks and manual smoke-only runs cannot authorize it. If historical CI was
@@ -80,7 +80,7 @@ its own alias and skips production integrations). Use it to republish a release
that landed after its Git tag, without rebuilding:
```bash
-gh workflow run docker-build.yml --repo reactive-resume/reactive-resume --ref main -f release=true
+gh workflow run docker-publish.yml --repo reactive-resume/reactive-resume --ref main -f release=true
```
To re-promote an existing stable release, select its Git tag. This updates `latest` and
@@ -88,7 +88,7 @@ that release's full/minor/major semver aliases. The tag must match the built `pa
version. Prerelease tags update only their prerelease alias and skip production integrations.
```bash
-gh workflow run docker-build.yml --repo reactive-resume/reactive-resume --ref v6.0.1 -f release=true
+gh workflow run docker-publish.yml --repo reactive-resume/reactive-resume --ref v6.0.1 -f release=true
```
SSH redeployment requires `SSH_KEY`, `SSH_HOST`, and `SSH_USER`; Cloudflare purging requires
@@ -97,7 +97,7 @@ secret is missing. Dispatch does not create a Git tag, GitHub release, or versio
## Native mobile updates
-After a successful stable Docker promotion and SSH redeploy, `docker-build.yml` calls
+After a successful stable Docker promotion and SSH redeploy, `docker-publish.yml` calls
`.github/workflows/mobile-ota-update.yml`. This reusable workflow checks out the image's
exact full source commit and publishes an EAS Update to the `production` channel using
the `production` EAS environment. Nightlies, manual canaries, and prereleases skip OTA.
@@ -132,7 +132,7 @@ Manual canaries build, publish, merge, and sign images in enabled registries wit
running production integrations:
```bash
-gh workflow run docker-build.yml --repo reactive-resume/reactive-resume --ref main -f release=false
+gh workflow run docker-publish.yml --repo reactive-resume/reactive-resume --ref main -f release=false
```
Published images retain SBOMs, maximum provenance, and Cosign signatures. GHCR always uses
@@ -191,8 +191,11 @@ repository source label and signing identity; historical digests and signatures
Release aliases are mutable: pin the original digest above if you need the pre-rename artifact.
New signatures identify
+`https://github.com/reactive-resume/reactive-resume/.github/workflows/docker-publish.yml@<ref>`.
+Images signed before the workflow rename retain
`https://github.com/reactive-resume/reactive-resume/.github/workflows/docker-build.yml@<ref>`.
-Historical signatures and image source labels retain the old repository identity. Verify
+Use the workflow identity from the image's signing record when verifying older images.
+Signatures and image source labels from before the repository rename retain the old repository identity. Verify
historical v5.3.0 with its original workflow identity, even at its new registry address:
```bash
diff --git a/.agents/docs/mobile-ci.md b/.agents/docs/mobile-ci.md
index 0b2c4134f..93350d603 100644
--- a/.agents/docs/mobile-ci.md
+++ b/.agents/docs/mobile-ci.md
@@ -1,6 +1,6 @@
# Native releases on Blacksmith
-The **Mobile Release** GitHub Actions workflow builds Android on Blacksmith Linux and
+The **Mobile release** GitHub Actions workflow builds Android on Blacksmith Linux and
iOS on Blacksmith Apple Silicon macOS. Expo Prebuild generates native projects; Gradle
and Xcode compile them; Fastlane signs and optionally uploads them. It does not call
EAS Build or EAS Submit. EAS Update still delivers compatible OTA updates through the
@@ -91,7 +91,7 @@ Merely naming an environment does not configure these protection rules.
Update app `version` in
`apps/mobile/app.config.ts` when needed; iOS requires a new version string after a
version has been released. CI supplies the build number automatically.
-2. Dispatch **Mobile Release** on `main`, choose `all`, `android`, or `ios`, set
+2. Dispatch **Mobile release** on `main`, choose `all`, `android`, or `ios`, set
**format=store**, and enable **upload** for production submission. Leave **upload**
disabled for a build-only signing check. Production requests require successful
latest main-push CI at the exact source commit before uploading. Approve the
@@ -131,7 +131,7 @@ Apple resources. Renew certificates/profiles before expiry and update Actions se
## Manual Android APKs
-Dispatch **Mobile Release** on `main` with `platform=android`, `format=apk`,
+Dispatch **Mobile release** on `main` with `platform=android`, `format=apk`,
`abi=arm64-v8a` (or `armeabi-v7a` / `x86_64`), and `upload=false`. One requested
architecture is built per dispatch. Approve `mobile-signing`, then download the
`mobile-android-<build-number>` Actions artifact within 14 days. The build uses the
diff --git a/.agents/docs/mobile-release-handoff.md b/.agents/docs/mobile-release-handoff.md
index 3f2ffb4ed..0ffd421be 100644
--- a/.agents/docs/mobile-release-handoff.md
+++ b/.agents/docs/mobile-release-handoff.md
@@ -37,7 +37,7 @@ Owner controls merge/deployment. Backend runs on a VPS in Frankfurt, Germany, us
### Image publishing is not automatic Swarm deployment
-The checked-in `.github/workflows/docker-build.yml` currently behaves as follows:
+The checked-in `.github/workflows/docker-publish.yml` currently behaves as follows:
- Push to `main`: builds native AMD64/ARM64 images and publishes SHA/nightly aliases; **does not run the SSH redeploy step**.
- Manual dispatch with `release=false`: builds a canary/SHA image; no production deployment.
@@ -173,7 +173,7 @@ binaries and deploy the backend first.
1. Deploy the backend first. Keep the API backward compatible: older binaries and OTA bundles remain in use.
2. Optionally bump `version` in `apps/mobile/app.config.ts` (for example `1.0.0` to `1.1.0`). CI supplies increasing iOS build numbers and Android version codes. iOS needs a new version string after a version is released; Play needs only a higher `versionCode`.
3. Complete the [signed-device test matrix](#signed-device-test-matrix), store declarations, listing/reviewer details, and release notes before submission. The workflow retains saved listings and screenshots. Ensure Play credentials permit production releases and the App Store Connect key has App Manager or Admin access. No testing tracks or TestFlight groups are required.
-4. Dispatch **Mobile Release** on `main`, platform `all`, **format=store**, and **upload** enabled. Approve `mobile-signing`, inspect this run's signed artifacts, then approve `mobile-store` to submit them. Latest main-push CI must have passed for the exact source commit before upload begins. Leave **upload** disabled if only checking a build. The [Blacksmith setup guide](./mobile-ci.md) covers credentials, build numbering, and approval environments. No EAS Build credits are used. Fastlane does not synchronize Apple capabilities. If exporting credentials through `eas credentials`, keep `EXPO_NO_CAPABILITY_SYNC=1`; Apple sign-in uses web Services ID `me.rxresu.web`, so turning off its primary App ID's Sign in with Apple capability would break sign-in.
+4. Dispatch **Mobile release** on `main`, platform `all`, **format=store**, and **upload** enabled. Approve `mobile-signing`, inspect this run's signed artifacts, then approve `mobile-store` to submit them. Latest main-push CI must have passed for the exact source commit before upload begins. Leave **upload** disabled if only checking a build. The [Blacksmith setup guide](./mobile-ci.md) covers credentials, build numbering, and approval environments. No EAS Build credits are used. Fastlane does not synchronize Apple capabilities. If exporting credentials through `eas credentials`, keep `EXPO_NO_CAPABILITY_SYNC=1`; Apple sign-in uses web Services ID `me.rxresu.web`, so turning off its primary App ID's Sign in with Apple capability would break sign-in.
5. **App Store Connect:** the workflow uploads the IPA, creates or updates its app version, waits for its matching processed build, submits for App Review, and sets automatic release after approval. Missing metadata or a pending review can block submission; review status and public availability must be checked separately.
6. **Play Console:** the workflow uploads directly to production with a completed, full rollout and sends changes for review. It does not publish to testing tracks. Review and Managed Publishing still control public availability; if Managed Publishing is enabled, publish approved changes in the console, or disable it there for automatic publication after review.
7. Verify both public store versions and smoke-test store-installed builds. Workflow success proves submission, not approval or publication. Confirm that a later OTA update reaches each new binary, because its fingerprint and runtime version changed.
@@ -182,7 +182,7 @@ Stable distribution uses the App Store and Play Store. IPA and AAB files are not
### Manual Android downloads
-Dispatch **Mobile Release** on `main` with `platform=android`, `format=apk`, the desired
+Dispatch **Mobile release** on `main` with `platform=android`, `format=apk`, the desired
`abi` (`arm64-v8a` by default), and `upload=false`. Approve the `mobile-signing` gate.
The selected ABI is built with Expo Prebuild, Gradle and the existing Fastlane lane,
using the existing Android upload keystore and preview EAS environment/channel.
diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
index 4fe20fd7b..f0312eb34 100644
--- a/.github/workflows/autofix.yml
+++ b/.github/workflows/autofix.yml
@@ -17,15 +17,16 @@ env:
jobs:
autofix:
+ name: Apply autofixes
timeout-minutes: 20
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-latest' }}
steps:
- - name: Checkout Repository
+ - name: Check out source
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
- - name: Checkout Repository (Blacksmith)
+ - name: Check out source (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
@@ -39,20 +40,20 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v6
- - name: Setup Node
+ - name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- - name: Install Dependencies
+ - name: Install dependencies
run: pnpm install --frozen-lockfile
- - name: Remove Unused Dependencies
+ - name: Apply Knip fixes
run: pnpm knip --fix
- - name: Lint and Format
+ - name: Generate PDF translations, lint, and format
run: pnpm check
- - name: Autofix
+ - name: Publish autofixes
uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1.3.4
diff --git a/.github/workflows/e2e.yml b/.github/workflows/ci.yml
similarity index 80%
rename from .github/workflows/e2e.yml
rename to .github/workflows/ci.yml
index f078fdb28..4230ee4b5 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/ci.yml
@@ -1,4 +1,5 @@
-name: E2E
+name: CI
+run-name: ${{ inputs.live_smoke && 'Deployment smoke test' || 'CI' }} · ${{ github.head_ref || github.ref_name }}
on:
pull_request:
@@ -22,8 +23,8 @@ env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
- e2e:
- name: ${{ matrix.suite }} tests
+ test:
+ name: Run ${{ matrix.suite == 'Unit' && 'unit' || 'browser' }} tests
if: ${{ !inputs.live_smoke }}
strategy:
fail-fast: false
@@ -67,14 +68,14 @@ jobs:
--health-retries 5
steps:
- - name: Checkout Repository
+ - name: Check out source
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
with:
persist-credentials: false
fetch-depth: ${{ matrix.suite == 'Unit' && '0' || '1' }}
- - name: Checkout Repository (Blacksmith)
+ - name: Check out source (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with:
@@ -84,13 +85,13 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v6
- - name: Setup Node
+ - name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- - name: Cache Turbo artifacts
+ - name: Restore and save Turbo cache
uses: actions/cache@v6
with:
path: .turbo/cache
@@ -98,32 +99,32 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-turbo-${{ github.workflow }}-${{ github.job }}-${{ matrix.suite }}-${{ hashFiles('pnpm-lock.yaml', '.nvmrc') }}-
- - name: Install Dependencies
+ - name: Install dependencies
run: pnpm install --frozen-lockfile
- - name: Install PDF Text Extractor
+ - name: Install PDF text extraction tools
run: sudo apt-get update && sudo apt-get install -y poppler-utils
- - name: Check Package Boundaries
+ - name: Check package boundaries
if: matrix.suite == 'Unit'
run: pnpm exec turbo boundaries
- - name: Typecheck Affected Packages
+ - name: Typecheck affected packages
if: matrix.suite == 'Unit'
run: pnpm exec turbo run typecheck --affected
- - name: Install Playwright Browser
+ - name: Install Chromium and browser dependencies
if: matrix.suite == 'Browser'
timeout-minutes: 10
run: pnpm exec playwright install --with-deps chromium
- - name: Prepare Storage
+ - name: Prepare test storage
run: mkdir -p "$LOCAL_STORAGE_PATH"
- - name: Run Database Migrations
+ - name: Migrate test database
run: pnpm db:migrate
- - name: Prepare OAuth Test Database
+ - name: Create and migrate OAuth test database
if: matrix.suite == 'Unit'
run: |
psql "$DATABASE_URL" -c "CREATE DATABASE oauth_test"
@@ -131,19 +132,19 @@ jobs:
# Discover every package. Four pools of two workers fit the 32-vCPU runner;
# keep smaller GitHub runners serial to avoid PDF/rate-limit timeouts.
- - name: Run Unit Tests
+ - name: Run unit tests
if: matrix.suite == 'Unit'
run: pnpm exec turbo run test:ci --concurrency=${{ vars.USE_BLACKSMITH == 'true' && 4 || 1 }}
- - name: Build
+ - name: Build application
if: matrix.suite == 'Browser'
run: pnpm build
- - name: Run E2E Tests
+ - name: Run browser tests
if: matrix.suite == 'Browser'
run: pnpm exec playwright test --workers=${{ vars.USE_BLACKSMITH == 'true' && 4 || 1 }}
- - name: Upload Playwright Report
+ - name: Upload browser test reports and traces
if: always() && matrix.suite == 'Browser'
uses: actions/upload-artifact@v7
with:
@@ -154,8 +155,8 @@ jobs:
if-no-files-found: ignore
retention-days: 7
- worker:
- name: Cloudflare compatibility
+ check-cloudflare:
+ name: Check Cloudflare compatibility
if: ${{ !inputs.live_smoke }}
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-latest' }}
timeout-minutes: 20
@@ -169,26 +170,33 @@ jobs:
--health-cmd "pg_isready -U postgres"
--health-interval 5s --health-timeout 5s --health-retries 10
steps:
- - if: ${{ vars.USE_BLACKSMITH != 'true' }}
+ - name: Check out source
+ if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
with:
persist-credentials: false
- - if: ${{ vars.USE_BLACKSMITH == 'true' }}
+ - name: Check out source (Blacksmith)
+ if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - uses: pnpm/action-setup@v6
- - uses: actions/setup-node@v7
+ - name: Install pnpm
+ uses: pnpm/action-setup@v6
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
- - run: pnpm install --frozen-lockfile
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
# No cloud account or deployment credentials: forks exercise the real local Workers runtime.
- - run: pnpm check:cloudflare
- - run: pnpm test:cloudflare
+ - name: Build and validate Cloudflare bundle
+ run: pnpm check:cloudflare
+ - name: Run Cloudflare smoke tests
+ run: pnpm test:cloudflare
- artifact:
- name: Vercel artifact
+ check-vercel:
+ name: Check Vercel compatibility
if: ${{ !inputs.live_smoke }}
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-32vcpu-ubuntu-2404' || 'ubuntu-latest' }}
timeout-minutes: 20
@@ -212,20 +220,24 @@ jobs:
VERCEL: "1"
VERCEL_ENV: production
steps:
- - if: ${{ vars.USE_BLACKSMITH != 'true' }}
+ - name: Check out source
+ if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
with:
persist-credentials: false
- - if: ${{ vars.USE_BLACKSMITH == 'true' }}
+ - name: Check out source (Blacksmith)
+ if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - uses: pnpm/action-setup@v6
- - uses: actions/setup-node@v7
+ - name: Install pnpm
+ uses: pnpm/action-setup@v6
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
- - name: Cache Turbo artifacts
+ - name: Restore and save Turbo cache
uses: actions/cache@v6
with:
path: .turbo/cache
@@ -233,9 +245,10 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-turbo-${{ github.workflow }}-${{ github.job }}-${{ hashFiles('pnpm-lock.yaml', '.nvmrc') }}-
- - run: pnpm install --frozen-lockfile
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
# Local project settings avoid authentication and API calls. Forks receive no cloud credentials.
- - name: Build Vercel artifact against isolated PostgreSQL
+ - name: Build Vercel deployment artifact
run: |
mkdir -p .vercel
cat > .vercel/project.json <<'JSON'
@@ -246,7 +259,7 @@ jobs:
JSON
pnpm dlx --allow-build=esbuild [email protected] build --prod --standalone --yes --global-config "$RUNNER_TEMP/vercel-offline"
# Runs the backend Function from a copy outside the checkout, so a dependency the build left out fails here.
- - name: Check backend Function loading and budget
+ - name: Verify Vercel function loading and limits
run: |
node --no-experimental-require-module --input-type=module - <<'JS'
import assert from 'node:assert/strict';
@@ -268,24 +281,28 @@ jobs:
process.exit(0);
JS
- live-smoke:
+ smoke-test:
+ name: Smoke-test deployment
if: github.event_name == 'workflow_dispatch' && inputs.live_smoke
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
environment: vercel-smoke
timeout-minutes: 10
steps:
- - if: ${{ vars.USE_BLACKSMITH != 'true' }}
+ - name: Check out source
+ if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
with:
persist-credentials: false
- - if: ${{ vars.USE_BLACKSMITH == 'true' }}
+ - name: Check out source (Blacksmith)
+ if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - uses: actions/setup-node@v7
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- - name: Smoke-test dedicated deployment
+ - name: Run dedicated deployment smoke test
env:
SMOKE_URL: ${{ vars.VERCEL_SMOKE_URL }}
SMOKE_AI_BASE_URL: ${{ vars.VERCEL_SMOKE_AI_BASE_URL }}
diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-publish.yml
similarity index 83%
rename from .github/workflows/docker-build.yml
rename to .github/workflows/docker-publish.yml
index 747c52741..0941904d2 100644
--- a/.github/workflows/docker-build.yml
+++ b/.github/workflows/docker-publish.yml
@@ -1,4 +1,5 @@
-name: Publish Docker Image
+name: Docker publish and deploy
+run-name: Docker ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && 'nightly' || github.event_name == 'workflow_dispatch' && !inputs.release && 'canary' || 'promotion' }} · ${{ github.ref_name }}
on:
workflow_dispatch:
@@ -26,7 +27,8 @@ env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
- mode:
+ plan:
+ name: Determine publish mode
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
outputs:
@@ -35,7 +37,7 @@ jobs:
canary: ${{ steps.mode.outputs.canary }}
steps:
- - name: Determine publishing mode
+ - name: Determine publish mode
id: mode
env:
EVENT_NAME: ${{ github.event_name }}
@@ -59,8 +61,9 @@ jobs:
} >> "$GITHUB_OUTPUT"
build:
- needs: mode
- if: ${{ needs.mode.outputs.release != 'true' }}
+ name: Build image (${{ matrix.platform }})
+ needs: plan
+ if: ${{ needs.plan.outputs.release != 'true' }}
strategy:
fail-fast: false
@@ -83,31 +86,31 @@ jobs:
attestations: write
steps:
- - name: Checkout Repository
+ - name: Check out source
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
- - name: Checkout Repository (Blacksmith)
+ - name: Check out source (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
- - name: Resolve commit SHA
+ - name: Resolve source commit
id: source
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- - name: Setup Docker Buildx
+ - name: Set up Docker Buildx
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: docker/setup-buildx-action@v4
# Persists BuildKit layers and the Dockerfile's pnpm cache mounts between runs, one cache per architecture.
- - name: Setup Docker Builder (Blacksmith)
+ - name: Set up Docker builder (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/setup-docker-builder@v2
with:
cache-key: Dockerfile-${{ matrix.arch }}
- &registries
- name: Determine registries
+ name: Determine target registries
id: registries
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
@@ -124,14 +127,14 @@ jobs:
echo "dockerhub=$dockerhub"
} >> "$GITHUB_OUTPUT"
- - name: Login to GitHub Container Registry
+ - name: Log in to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Extract metadata (tags, labels) for Docker
+ - name: Generate image tags and labels
id: meta
uses: docker/metadata-action@v6
with:
@@ -139,7 +142,7 @@ jobs:
tags: |
type=raw,value=sha-${{ steps.source.outputs.sha }}-${{ matrix.arch }}
- - name: Build and Push by Digest
+ - name: Build and push image
id: build
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: docker/build-push-action@v7
@@ -154,19 +157,19 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }}
build-args: APP_REVISION=${{ steps.source.outputs.sha }}
- - name: Build and Push by Digest (Blacksmith)
+ - name: Build and push image (Blacksmith)
id: build-blacksmith
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/build-push-action@v2
with: *build-push
- - name: Export digest
+ - name: Prepare image digest artifact
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest || steps.build-blacksmith.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- - name: Upload digest
+ - name: Upload image digest
uses: actions/upload-artifact@v7
with:
name: digests-${{ matrix.arch }}
@@ -174,18 +177,19 @@ jobs:
if-no-files-found: error
retention-days: 1
- merge:
+ publish:
+ name: Publish images and deploy
# Release runs skip build; failed builds must never publish partial indexes.
- if: ${{ !cancelled() && needs.mode.result == 'success' && (needs.build.result == 'success' || needs.build.result == 'skipped') }}
+ if: ${{ !cancelled() && needs.plan.result == 'success' && (needs.build.result == 'success' || needs.build.result == 'skipped') }}
needs:
- - mode
+ - plan
- build
timeout-minutes: 45
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
outputs:
sha: ${{ steps.version.outputs.sha }}
- mobile_ota: ${{ needs.mode.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' && steps.deploy.outcome == 'success' }}
+ mobile_ota: ${{ needs.plan.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' && steps.deploy.outcome == 'success' }}
env:
DEPLOY: ${{ secrets.SSH_KEY != '' && secrets.SSH_HOST != '' && secrets.SSH_USER != '' }}
@@ -199,7 +203,7 @@ jobs:
attestations: write
steps:
- - name: Checkout Repository
+ - name: Check out source
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
with: &checkout-package-json
@@ -208,12 +212,12 @@ jobs:
tooling/docker
sparse-checkout-cone-mode: false
- - name: Checkout Repository (Blacksmith)
+ - name: Check out source (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with: *checkout-package-json
- - name: Resolve publishing version and commit
+ - name: Resolve source commit and version
id: version
env:
GIT_REF: ${{ github.ref }}
@@ -240,8 +244,8 @@ jobs:
echo "prerelease=$prerelease"
} >> "$GITHUB_OUTPUT"
- - name: Require successful CI for the exact promotion commit
- if: ${{ needs.mode.outputs.release == 'true' }}
+ - name: Require successful main CI for source commit
+ if: ${{ needs.plan.outputs.release == 'true' }}
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
env:
COMMIT_SHA: ${{ steps.version.outputs.sha }}
@@ -250,27 +254,27 @@ jobs:
const { requireSuccessfulCI } = await import(`${process.env.GITHUB_WORKSPACE}/tooling/docker/check-ci.mjs`);
await requireSuccessfulCI({ github, repo: context.repo, sha: process.env.COMMIT_SHA });
- - name: Download digests
- if: ${{ needs.mode.outputs.release != 'true' }}
+ - name: Download image digests
+ if: ${{ needs.plan.outputs.release != 'true' }}
uses: actions/download-artifact@v8
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
- - name: Setup Docker Buildx
+ - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- *registries
- - name: Login to GitHub Container Registry
+ - name: Log in to GitHub Container Registry
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Parse version components
+ - name: Parse semantic version
id: semver
run: |
VERSION="${{ steps.version.outputs.version }}"
@@ -280,36 +284,36 @@ jobs:
echo "major=$MAJOR" >> "$GITHUB_OUTPUT"
echo "minor=$MINOR" >> "$GITHUB_OUTPUT"
- - name: Extract metadata for Docker
+ - name: Generate publish tags
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ steps.registries.outputs.ghcr_image }}
flavor: latest=false
tags: |
- type=raw,value=sha-${{ steps.version.outputs.sha }},enable=${{ needs.mode.outputs.release != 'true' }}
- type=raw,value=canary-${{ github.run_id }}-${{ github.run_attempt }},enable=${{ needs.mode.outputs.canary == 'true' }}
- type=raw,value=nightly,enable=${{ needs.mode.outputs.nightly == 'true' }}
- type=raw,value=nightly-{{date 'YYYYMMDDHHmmss' tz='UTC'}},enable=${{ needs.mode.outputs.nightly == 'true' }}
- type=raw,value=latest,enable=${{ needs.mode.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' }}
- type=raw,value=v${{ steps.version.outputs.version }},enable=${{ needs.mode.outputs.release == 'true' }}
- type=raw,value=v${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }},enable=${{ needs.mode.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' }}
- type=raw,value=v${{ steps.semver.outputs.major }},enable=${{ needs.mode.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' }}
-
- - name: Create manifest list and push
+ type=raw,value=sha-${{ steps.version.outputs.sha }},enable=${{ needs.plan.outputs.release != 'true' }}
+ type=raw,value=canary-${{ github.run_id }}-${{ github.run_attempt }},enable=${{ needs.plan.outputs.canary == 'true' }}
+ type=raw,value=nightly,enable=${{ needs.plan.outputs.nightly == 'true' }}
+ type=raw,value=nightly-{{date 'YYYYMMDDHHmmss' tz='UTC'}},enable=${{ needs.plan.outputs.nightly == 'true' }}
+ type=raw,value=latest,enable=${{ needs.plan.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' }}
+ type=raw,value=v${{ steps.version.outputs.version }},enable=${{ needs.plan.outputs.release == 'true' }}
+ type=raw,value=v${{ steps.semver.outputs.major }}.${{ steps.semver.outputs.minor }},enable=${{ needs.plan.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' }}
+ type=raw,value=v${{ steps.semver.outputs.major }},enable=${{ needs.plan.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' }}
+
+ - name: Publish multi-architecture image index
id: manifest
- if: ${{ needs.mode.outputs.release != 'true' }}
+ if: ${{ needs.plan.outputs.release != 'true' }}
working-directory: /tmp/digests
run: |
set -euo pipefail
- if [[ "${{ needs.mode.outputs.nightly }}" == "true" ]]; then
+ if [[ "${{ needs.plan.outputs.nightly }}" == "true" ]]; then
FINAL_TAG="sha-${{ steps.version.outputs.sha }}"
- elif [[ "${{ needs.mode.outputs.canary }}" == "true" ]]; then
+ elif [[ "${{ needs.plan.outputs.canary }}" == "true" ]]; then
FINAL_TAG="canary-${{ github.run_id }}-${{ github.run_attempt }}"
fi
- if [[ "${{ needs.mode.outputs.nightly }}" == "true" ]]; then
+ if [[ "${{ needs.plan.outputs.nightly }}" == "true" ]]; then
main_sha=$(git -C "$GITHUB_WORKSPACE" ls-remote origin refs/heads/main | cut -f1)
if [[ "$main_sha" != "${{ steps.version.outputs.sha }}" ]]; then
DOCKER_METADATA_OUTPUT_JSON=$(jq '.tags |= map(select(endswith(":nightly") | not))' <<< "$DOCKER_METADATA_OUTPUT_JSON")
@@ -341,15 +345,15 @@ jobs:
echo "tags=${tags[*]}"
} >> "$GITHUB_OUTPUT"
- - name: Promote existing SHA image
+ - name: Promote existing commit image
id: promotion
- if: ${{ needs.mode.outputs.release == 'true' }}
+ if: ${{ needs.plan.outputs.release == 'true' }}
env:
COMMIT_SHA: ${{ steps.version.outputs.sha }}
GHCR_IMAGE: ${{ steps.registries.outputs.ghcr_image }}
run: bash tooling/docker/promote.sh
- - name: Resolve published image
+ - name: Resolve published image reference
id: published
env:
BUILD_TAG: ${{ steps.manifest.outputs.final_tag }}
@@ -375,10 +379,10 @@ jobs:
# Preserve signatures readable by existing Cosign 2 clients after the CLI 3 upgrade.
run: cosign sign --yes --new-bundle-format=false --use-signing-config=false ${{ steps.registries.outputs.ghcr_image }}@${{ steps.published.outputs.ghcr_digest }}
- - name: Inspect image
+ - name: Inspect published image
run: docker buildx imagetools inspect ${{ steps.registries.outputs.ghcr_image }}:${{ steps.published.outputs.final_tag }}
- - name: Verify anonymous pulls on both architectures
+ - name: Verify anonymous AMD64 and ARM64 pulls
run: |
set -euo pipefail
registry_config=$(mktemp -d)
@@ -392,7 +396,7 @@ jobs:
# Docker Hub is a best-effort mirror of the published GHCR index: its failures show as failed
# steps but never fail the job. A single-source copy keeps the GHCR digest and attestations.
- - name: Login to Docker Hub
+ - name: Log in to Docker Hub
id: dockerhub-login
if: ${{ steps.registries.outputs.dockerhub == 'true' }}
continue-on-error: true
@@ -401,7 +405,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- - name: Mirror to Docker Hub
+ - name: Mirror image to Docker Hub
if: ${{ steps.dockerhub-login.outcome == 'success' }}
continue-on-error: true
timeout-minutes: 15
@@ -420,9 +424,9 @@ jobs:
cosign sign --yes --new-bundle-format=false --use-signing-config=false "$DOCKER_IMAGE@$DIGEST"
docker buildx imagetools inspect "$DOCKER_IMAGE:${{ steps.published.outputs.final_tag }}"
- - name: Redeploy Stack
+ - name: Deploy production stack
id: deploy
- if: ${{ needs.mode.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' && env.DEPLOY == 'true' }}
+ if: ${{ needs.plan.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' && env.DEPLOY == 'true' }}
uses: appleboy/ssh-action@v1
with:
key: ${{ secrets.SSH_KEY }}
@@ -432,8 +436,8 @@ jobs:
cd docker
./manage_stack.sh up reactive_resume
- - name: Purge Cloudflare cache
- if: ${{ needs.mode.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' && env.PURGE_CLOUDFLARE == 'true' }}
+ - name: Purge production Cloudflare cache
+ if: ${{ needs.plan.outputs.release == 'true' && steps.version.outputs.prerelease != 'true' && env.PURGE_CLOUDFLARE == 'true' }}
env:
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
@@ -454,12 +458,13 @@ jobs:
echo "Cloudflare cache purged successfully."
mobile-ota-update:
- needs: merge
- if: ${{ !cancelled() && needs.merge.result == 'success' && needs.merge.outputs.mobile_ota == 'true' }}
+ name: Mobile OTA update
+ needs: publish
+ if: ${{ !cancelled() && needs.publish.result == 'success' && needs.publish.outputs.mobile_ota == 'true' }}
permissions:
contents: read
uses: ./.github/workflows/mobile-ota-update.yml
with:
- sha: ${{ needs.merge.outputs.sha }}
+ sha: ${{ needs.publish.outputs.sha }}
secrets:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
diff --git a/.github/workflows/issue-maintenance.yml b/.github/workflows/issue-maintenance.yml
index 0aeb30597..1b3ff297d 100644
--- a/.github/workflows/issue-maintenance.yml
+++ b/.github/workflows/issue-maintenance.yml
@@ -1,4 +1,4 @@
-name: Issue Maintenance
+name: Issue maintenance
on:
issues:
@@ -11,6 +11,7 @@ permissions: {}
jobs:
label:
+ name: Label new issues
if: github.event_name == 'issues'
permissions:
contents: read
@@ -18,19 +19,19 @@ jobs:
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
steps:
- - name: Checkout Repository
+ - name: Check out source
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- - name: Checkout Repository (Blacksmith)
+ - name: Check out source (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - name: Apply Form Labels
+ - name: Apply issue-form labels
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
with:
script: |
@@ -45,14 +46,15 @@ jobs:
});
}
- stale:
+ cleanup:
+ name: Maintain inactive needs-info issues
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
permissions:
issues: write
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
steps:
- - name: Close Inactive Issues Awaiting Information
+ - name: Mark and close inactive needs-info issues
uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11
with:
only-issue-labels: "status: needs info"
diff --git a/.github/workflows/mobile-forme-native.yml b/.github/workflows/mobile-forme-build.yml
similarity index 78%
rename from .github/workflows/mobile-forme-native.yml
rename to .github/workflows/mobile-forme-build.yml
index 2a6798c4a..586725ee6 100644
--- a/.github/workflows/mobile-forme-native.yml
+++ b/.github/workflows/mobile-forme-build.yml
@@ -1,4 +1,5 @@
-name: Build Forme Binaries
+name: Mobile Forme build
+run-name: Mobile Forme ${{ inputs.publish && 'publish' || 'build' }} · ${{ github.ref_name }}
on:
workflow_dispatch:
@@ -12,7 +13,8 @@ permissions:
contents: read
jobs:
- prebuilt:
+ build:
+ name: Build native binaries
runs-on: blacksmith-12vcpu-macos-latest
timeout-minutes: 60
outputs:
@@ -20,29 +22,32 @@ jobs:
env:
CARGO_BUILD_JOBS: "4"
steps:
- - uses: actions/checkout@v7
+ - name: Check out source
+ uses: actions/checkout@v7
with:
persist-credentials: false
- - uses: actions/setup-node@v7
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- - uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
+ - name: Set up Android SDK
+ uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
with:
packages: ndk;28.2.13676358
- - name: Install pinned Rust tools
+ - name: Install pinned Rust toolchain and tools
working-directory: packages/forme-native/rust
run: |
rustup toolchain install 1.95.0 --profile minimal \
--target aarch64-apple-ios,aarch64-apple-ios-sim,aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android
cargo install cbindgen --version 0.29.4 --locked
cargo install cargo-ndk --version 4.1.2 --locked
- - name: Build both platforms and regenerate notices
+ - name: Build native binaries and verify notices and headers
run: |
export ANDROID_NDK_HOME="$ANDROID_HOME/ndk/28.2.13676358"
bash packages/forme-native/rust/build.sh
node packages/forme-native/scripts/notices.mjs
git diff --exit-code -- packages/forme-native/THIRD_PARTY_NOTICES.md packages/forme-native/ios/include/forme_native.h
- - name: Package content-addressed binaries
+ - name: Package content-addressed native binaries
id: artifact
env:
RELEASE_BASE: https://github.com/${{ github.repository }}/releases/download
@@ -53,7 +58,7 @@ jobs:
const build = JSON.parse(readFileSync(`${process.env.RUNNER_TEMP}/forme-native-build.json`));
appendFileSync(process.env.GITHUB_OUTPUT, `tag=${build.tag}\narchive=${build.archive}\nmanifest=${build.manifest}\n`);
JS
- - name: Verify fetch without Cargo
+ - name: Verify native binaries can be fetched without Cargo
env:
MANIFEST: ${{ steps.artifact.outputs.manifest }}
run: |
@@ -68,7 +73,8 @@ jobs:
node_bin="$(command -v node)"
PATH=/usr/bin:/bin "$node_bin" packages/forme-native/scripts/fetch-prebuilt.mjs --platform android --manifest "$RUNNER_TEMP/local-prebuilt.json"
PATH=/usr/bin:/bin "$node_bin" packages/forme-native/scripts/fetch-prebuilt.mjs --platform ios --manifest "$RUNNER_TEMP/local-prebuilt.json"
- - uses: actions/upload-artifact@v7
+ - name: Upload native binary artifacts
+ uses: actions/upload-artifact@v7
with:
name: ${{ steps.artifact.outputs.tag }}
path: ${{ runner.temp }}/forme-native/
@@ -76,22 +82,24 @@ jobs:
retention-days: 30
publish:
- needs: prebuilt
+ name: Publish native binaries
+ needs: build
if: inputs.publish
runs-on: blacksmith-32vcpu-ubuntu-2404
timeout-minutes: 5
permissions:
contents: write
steps:
- - uses: actions/download-artifact@v8
+ - name: Download native binary artifacts
+ uses: actions/download-artifact@v8
with:
- name: ${{ needs.prebuilt.outputs.tag }}
+ name: ${{ needs.build.outputs.tag }}
path: ${{ runner.temp }}/forme-native
- - name: Publish once (never overwrite release assets)
+ - name: Publish immutable native binary assets
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
- TAG: ${{ needs.prebuilt.outputs.tag }}
+ TAG: ${{ needs.build.outputs.tag }}
ARTIFACT_DIR: ${{ runner.temp }}/forme-native
run: |
gh release create "$TAG" "$ARTIFACT_DIR/$TAG.tar.gz" "$ARTIFACT_DIR/prebuilt.json" --target "$GITHUB_SHA" --title "$TAG" --notes "Native Forme binaries. Review and commit prebuilt.json before building mobile apps." --prerelease
diff --git a/.github/workflows/mobile-ota-update.yml b/.github/workflows/mobile-ota-update.yml
index 65f739147..5671eb639 100644
--- a/.github/workflows/mobile-ota-update.yml
+++ b/.github/workflows/mobile-ota-update.yml
@@ -1,4 +1,4 @@
-name: Mobile OTA Update
+name: Mobile OTA update
on:
workflow_call:
@@ -18,7 +18,8 @@ env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
- mobile-ota-update:
+ publish:
+ name: Publish production update
runs-on: ${{ vars.USE_BLACKSMITH == 'true' && 'blacksmith-2vcpu-ubuntu-2404' || 'ubuntu-latest' }}
timeout-minutes: 20
permissions:
@@ -31,7 +32,7 @@ jobs:
COMMIT_SHA: ${{ inputs.sha }}
steps:
- - name: Check Expo publishing credential
+ - name: Validate Expo token
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
run: |
@@ -40,14 +41,14 @@ jobs:
exit 1
fi
- - name: Checkout Repository
+ - name: Check out source
if: ${{ vars.USE_BLACKSMITH != 'true' }}
uses: actions/checkout@v7
with: &checkout-mobile-ota-update
ref: ${{ inputs.sha }}
persist-credentials: false
- - name: Checkout Repository (Blacksmith)
+ - name: Check out source (Blacksmith)
if: ${{ vars.USE_BLACKSMITH == 'true' }}
uses: useblacksmith/checkout@v1
with: *checkout-mobile-ota-update
@@ -55,25 +56,25 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v6
- - name: Setup Node
+ - name: Set up Node.js
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
- - name: Install Dependencies
+ - name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck mobile app
run: pnpm --filter mobile typecheck
- - name: Setup EAS
+ - name: Set up EAS CLI
uses: expo/expo-github-action@v9
with:
eas-version: 25.2.0
token: ${{ secrets.EXPO_TOKEN }}
- - name: Wait for matching production backend
+ - name: Wait for healthy backend at source commit
run: |
set -euo pipefail
matches=0
@@ -92,6 +93,6 @@ jobs:
echo "::error::Production backend did not become healthy at commit $COMMIT_SHA; mobile update withheld."
exit 1
- - name: Publish matching mobile update
+ - name: Publish production OTA update
working-directory: apps/mobile
run: eas update --channel production --environment production --message "Docker $COMMIT_SHA" --upload-source-maps --non-interactive
diff --git a/.github/workflows/mobile-release.yml b/.github/workflows/mobile-release.yml
index ea0fc3347..e8882ab66 100644
--- a/.github/workflows/mobile-release.yml
+++ b/.github/workflows/mobile-release.yml
@@ -1,4 +1,5 @@
-name: Mobile Release
+name: Mobile release
+run-name: Mobile ${{ inputs.upload && 'submit' || 'build' }} · ${{ inputs.platform }} · ${{ inputs.format }} · ${{ github.ref_name }}
on:
workflow_dispatch:
@@ -42,6 +43,7 @@ env:
jobs:
prepare:
+ name: Prepare release
if: github.ref == 'refs/heads/main'
runs-on: blacksmith-32vcpu-ubuntu-2404
timeout-minutes: 5
@@ -49,13 +51,15 @@ jobs:
build_number: ${{ steps.release.outputs.build_number }}
platforms: ${{ steps.release.outputs.platforms }}
steps:
- - uses: useblacksmith/checkout@v1
+ - name: Check out source (Blacksmith)
+ uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - uses: actions/setup-node@v7
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- - name: Validate request and allocate version without credentials
+ - name: Validate release inputs and allocate build number
id: release
env:
PLATFORM: ${{ inputs.platform }}
@@ -64,6 +68,7 @@ jobs:
run: node tooling/mobile/release.ts --prepare
build:
+ name: Build ${{ matrix.platform }} (${{ inputs.format }})
needs: prepare
environment: mobile-signing
strategy:
@@ -77,44 +82,52 @@ jobs:
MOBILE_BUILD_NUMBER: ${{ needs.prepare.outputs.build_number }}
BUNDLE_GEMFILE: ${{ github.workspace }}/tooling/mobile/Gemfile
steps:
- - uses: useblacksmith/checkout@v1
+ - name: Check out source (Blacksmith)
+ uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - uses: pnpm/action-setup@v6
- - uses: actions/setup-node@v7
+ - name: Install pnpm
+ uses: pnpm/action-setup@v6
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
- - uses: ruby/setup-ruby@v1
+ - name: Set up Ruby and gems
+ uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
working-directory: tooling/mobile
- - name: Check signing file handling
+ - name: Test signing credential handling
run: |
bundle exec ruby tooling/mobile/signing_test.rb
ruby tooling/mobile/build_test.rb
- - name: Check production distribution
+ - name: Test store distribution configuration
run: ruby tooling/mobile/distribution_test.rb
- - uses: actions/setup-java@v5
+ - name: Set up Java
+ uses: actions/setup-java@v5
if: matrix.platform == 'android'
with:
distribution: temurin
java-version: "17"
- - uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
+ - name: Set up Android SDK
+ uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
if: matrix.platform == 'android'
with:
packages: platform-tools platforms;android-37.0 build-tools;37.0.0 ndk;27.1.12297006 ndk;28.2.13676358 cmake;3.22.1
- - run: pnpm install --frozen-lockfile
- - name: Check mobile source
+ - name: Install dependencies
+ run: pnpm install --frozen-lockfile
+ - name: Typecheck and test mobile app
run: |
pnpm --filter mobile typecheck
pnpm --filter mobile test
- - uses: expo/expo-github-action@v9
+ - name: Set up EAS CLI
+ uses: expo/expo-github-action@v9
with:
eas-version: 25.2.0
token: ${{ secrets.EXPO_TOKEN }}
- - name: Validate signing credentials after approval
+ - name: Validate signing credentials
env:
UPLOAD: "false"
MOBILE_BUILD_NUMBER_BASE: ${{ vars.MOBILE_BUILD_NUMBER_BASE }}
@@ -127,9 +140,9 @@ jobs:
IOS_DISTRIBUTION_P12_PASSWORD: ${{ matrix.platform == 'ios' && secrets.IOS_DISTRIBUTION_P12_PASSWORD || '' }}
IOS_PROVISION_PROFILE_BASE64: ${{ matrix.platform == 'ios' && secrets.IOS_PROVISION_PROFILE_BASE64 || '' }}
run: node tooling/mobile/release.ts
- - name: Fetch reviewed native Forme binaries
+ - name: Fetch reviewed Forme binaries
run: node packages/forme-native/scripts/fetch-prebuilt.mjs --platform "$PLATFORM"
- - name: Build signed binary with selected update environment
+ - name: Build signed binary
working-directory: apps/mobile
env:
ANDROID_KEYSTORE_BASE64: ${{ matrix.platform == 'android' && secrets.ANDROID_KEYSTORE_BASE64 || '' }}
@@ -153,7 +166,7 @@ jobs:
unzip -Z1 "$apk" > "$RUNNER_TEMP/apk-entries.txt"
grep -Fx "lib/$ABI/libforme_native.so" "$RUNNER_TEMP/apk-entries.txt"
- - name: Record native runtime fingerprint
+ - name: Record runtime fingerprint and release manifest
working-directory: apps/mobile
run: |
eas fingerprint:generate --platform "$PLATFORM" --environment "$MOBILE_UPDATE_CHANNEL" --json --non-interactive \
@@ -163,7 +176,7 @@ jobs:
--arg xcode "$(if [[ "$PLATFORM" == ios ]]; then xcodebuild -version; fi)" \
'{commit: $sha, platform: $platform, buildNumber: $build, format: $format, abi: $abi, channel: $channel, xcode: $xcode}' \
> "$RUNNER_TEMP/mobile-release/release.json"
- - name: Save signed binary
+ - name: Upload signed binary
uses: actions/upload-artifact@v7
with:
name: mobile-${{ matrix.platform }}-${{ needs.prepare.outputs.build_number }}
@@ -173,7 +186,7 @@ jobs:
${{ runner.temp }}/mobile-release/*.ipa
if-no-files-found: error
retention-days: ${{ inputs.format == 'apk' && 14 || 90 }}
- - name: Archive release manifest, fingerprint, symbols and mappings
+ - name: Upload release evidence
uses: actions/upload-artifact@v7
with:
name: mobile-${{ matrix.platform }}-${{ needs.prepare.outputs.build_number }}-evidence
@@ -189,7 +202,8 @@ jobs:
echo "### $PLATFORM build $MOBILE_BUILD_NUMBER" >> "$GITHUB_STEP_SUMMARY"
echo "Commit: $GITHUB_SHA. Format: $FORMAT. OTA channel: $MOBILE_UPDATE_CHANNEL. Release evidence retained for 90 days." >> "$GITHUB_STEP_SUMMARY"
- upload:
+ submit:
+ name: Submit ${{ matrix.platform }} for production review
needs: [prepare, build]
if: inputs.upload && inputs.format == 'store'
permissions:
@@ -205,28 +219,32 @@ jobs:
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/tooling/mobile/Gemfile
steps:
- - uses: useblacksmith/checkout@v1
+ - name: Check out source (Blacksmith)
+ uses: useblacksmith/checkout@v1
with:
persist-credentials: false
- - name: Require successful CI for the exact production commit
+ - name: Require successful main CI for source commit
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
with:
script: |
const { requireSuccessfulCI } = await import(`${process.env.GITHUB_WORKSPACE}/tooling/docker/check-ci.mjs`);
await requireSuccessfulCI({ github, repo: context.repo, sha: context.sha });
- - uses: actions/setup-node@v7
+ - name: Set up Node.js
+ uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
- - uses: ruby/setup-ruby@v1
+ - name: Set up Ruby and gems
+ uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
bundler-cache: true
working-directory: tooling/mobile
- - uses: actions/download-artifact@v8
+ - name: Download signed binary
+ uses: actions/download-artifact@v8
with:
name: mobile-${{ matrix.platform }}-${{ needs.prepare.outputs.build_number }}
path: ${{ runner.temp }}/mobile-release
- - name: Submit production release for store review
+ - name: Submit binary for production review
working-directory: tooling/mobile
env:
PLATFORM: ${{ matrix.platform }}
diff --git a/AGENTS.md b/AGENTS.md
index 7678a7fac..b91cb80cf 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -133,7 +133,7 @@ Narrow cross-cutting helpers go in `packages/utils` only after checking no domai
- **Feature parity is required.** The web app and the native mobile app must always offer the same user-facing features. A change that adds, removes, or changes a feature in `apps/web` must make the matching change in `apps/mobile` in the same work, and the reverse. Share logic through workspace packages (`packages/api`, `packages/schema`, `packages/resume`, `packages/pdf`) rather than duplicating it. An exception forced by store policy (for example, the hidden iOS Donate row) needs the owner's explicit decision and a note in `.agents/docs/mobile-release-handoff.md`.
- **Over-the-air update or new store build.** The runtime version uses an Expo fingerprint (`apps/mobile/fingerprint.config.js`). JavaScript, styling, copy, translation, and bundled-asset changes ship as an EAS Update: a stable Docker release publishes it to the `production` channel automatically, and no store submission is needed. A change to native code needs a new store build: native dependencies or config plugins, permissions or entitlements, `app.config.ts` native fields (icon, splash, schemes, associated domains), Expo SDK upgrades, `apps/mobile/patches`, or Forme native sources and `packages/forme-native/scripts/prebuilt.json`. Run `eas fingerprint:compare <installed native fingerprint hash> --environment production` from `apps/mobile` to check; save each Blacksmith build's `fingerprint.json` with the store release record. A changed fingerprint means a new store build. Native binaries and optional store uploads use `.github/workflows/mobile-release.yml` on Blacksmith, not EAS Build/Submit. Setup: `.agents/docs/mobile-ci.md`. Release steps: `.agents/docs/mobile-release-handoff.md` → **Releasing a new version**.
-- **Manual APKs and release gates.** `mobile-release.yml` supports `format=store|apk`; APKs require `platform=android`, one `abi`, and `upload=false`. Signing requires the `mobile-signing` approval; store uploads require a separate `mobile-store` approval. APK artifacts expire after 14 days; store binaries and release evidence expire after 90 days. Export evidence to permanent release records before expiry. Docker main pushes never build APKs or create Git tags/GitHub Releases. Promotion requires successful latest `e2e.yml` main-push CI at the exact full source SHA before aliases or production move; keep the backend-revision health gate before production OTA.
+- **Manual APKs and release gates.** `mobile-release.yml` supports `format=store|apk`; APKs require `platform=android`, one `abi`, and `upload=false`. Signing requires the `mobile-signing` approval; store uploads require a separate `mobile-store` approval. APK artifacts expire after 14 days; store binaries and release evidence expire after 90 days. Export evidence to permanent release records before expiry. Docker main pushes never build APKs or create Git tags/GitHub Releases. Promotion requires successful latest `ci.yml` main-push CI at the exact full source SHA before aliases or production move; keep the backend-revision health gate before production OTA.
- Old binaries and old OTA bundles stay in use for weeks. Keep API changes backward compatible, and deploy the backend before releasing mobile changes that depend on it. Never bump the runtime version to force an incompatible update onto old binaries.
## Package boundaries
@@ -182,7 +182,7 @@ pnpm exec turbo boundaries
- Vitest tests live alongside source as `src/**/*.test.ts(x)` or `src/**/*.spec.ts(x)` (including integration tests). Paths under `pnpm --filter <package>` are package-relative. Pass paths directly after `test`: an extra `--` currently prevents Vitest from filtering the run. Shared settings live in `vitest.shared.mts` and setup in `vitest.setup.ts`; most packages use Node, while `packages/ui` uses `happy-dom`.
- Coverage uses V8 and writes package-local `coverage/` reports. No shared minimum coverage threshold is configured. `test:ci` writes JSON/JUnit results under package-local `reports/`.
- Root `pnpm test`, `pnpm test:coverage`, and `pnpm typecheck` run workspace checks through Turbo. CI runs unit and browser jobs independently. Unit CI checks boundaries and affected-package typechecks, then discovers all unit suites with Turbo: four concurrent packages on 32-vCPU Blacksmith runners, one on GitHub runners, with two Vitest workers per package. Local test scripts remain serial. Unit/browser and Vercel jobs persist separate `.turbo/cache` namespaces; cached coverage and test reports restore to package-local output directories. Public, fixed CI secrets belong only to disposable services and keep unchanged test cache keys reusable; database and workflow integration suites retain their package-level cache opt-outs.
-- Real-database unit suites use `COVER_LETTER_TEST_DATABASE_URL` and `OAUTH_TEST_DATABASE_URL`; see `.github/workflows/e2e.yml` for isolated database setup. Never point test fixtures at production data.
+- Real-database unit suites use `COVER_LETTER_TEST_DATABASE_URL` and `OAUTH_TEST_DATABASE_URL`; see `.github/workflows/ci.yml` for isolated database setup. Never point test fixtures at production data.
- After changing shared contracts, exports, or imports, check affected consumers and run `pnpm exec turbo boundaries`.
### Browser tests
@@ -230,8 +230,8 @@ docker compose up -d --build
- Production Compose loads `.env.example` then `.env`, not `.env.local`. Configure `.env` with container hostnames (`postgres`, `redis`, `seaweedfs`) and production secrets before running it. The Docker image runs as `node`, listens on `3000`, and persists local storage through `/app/data`. Health endpoint: `/api/health`.
- `vercel.json` defines Vercel Services (project framework must be `Services`): `frontend` (`apps/web`, static `dist`) and `backend` (`apps/server`, entrypoint `apps/server/vercel.mjs` re-exporting the tsdown build). The backend build runs `pnpm build` for both apps, then `node apps/server/dist/prepare-deployment.mjs`. Top-level rewrites send paths whose last segment has a file extension to `frontend` and everything else, including HTML shells, to `backend`, except the server-owned paths listed first. The Function uses Node 24 and a 300-second budget. `outputDirectory: "."` on `backend` stops the builder from treating `dist/index.mjs` (the Docker entrypoint) as the handler.
- Vercel environment normalization accepts `POSTGRES_URL`, direct/unpooled DB aliases, and `KV_URL`. `APP_URL` can be derived from Vercel host variables. Blob is the default when no S3 credentials are set. Preview deployments require isolated resources before enabling `ALLOW_PREVIEW_MIGRATIONS=true`; see `docs/self-hosting/vercel.mdx`.
-- `.github/workflows/e2e.yml` is the CI workflow: unit/browser tests and Vercel and Cloudflare compatibility run as separate jobs on PRs and pushes to `main`. `autofix.yml` runs write-capable autofix (`pnpm knip --fix` and `pnpm check`) separately because autofix.ci requires its own workflow name. Manual runs default to CI; `live_smoke=true` runs only the dedicated deployment smoke test. `label-issues.yml` combines issue-form labeling with scheduled needs-info cleanup. GitHub runners are the default; `USE_BLACKSMITH=true` switches runners and paired actions.
-- `docker-build.yml` publishes native AMD64/ARM64 images. `main` publishes nightly aliases; release tags/explicit release dispatch publish stable aliases and can trigger configured production integrations. See `.agents/docs/container-publishing.md` before release work.
+- `.github/workflows/ci.yml` is the CI workflow: unit/browser tests and Vercel and Cloudflare compatibility run as separate jobs on PRs and pushes to `main`. `autofix.yml` runs write-capable autofix (`pnpm knip --fix` and `pnpm check`) separately because autofix.ci requires its own workflow name. Manual runs default to CI; `live_smoke=true` runs only the dedicated deployment smoke test. `issue-maintenance.yml` combines issue-form labeling with scheduled needs-info cleanup. GitHub runners are the default; `USE_BLACKSMITH=true` switches runners and paired actions.
+- `docker-publish.yml` publishes native AMD64/ARM64 images. `main` publishes nightly aliases; release tags/explicit release dispatch publish stable aliases and can trigger configured production integrations. See `.agents/docs/container-publishing.md` before release work.
- Deployment smoke tests create/delete accounts and files; run only against a dedicated test installation. Details: `docs/contributing/deployment-checks.mdx`.
## Security and pull requests
diff --git a/docs/contributing/deployment-checks.mdx b/docs/contributing/deployment-checks.mdx
index 5c88ee656..8c4bd0249 100644
--- a/docs/contributing/deployment-checks.mdx
+++ b/docs/contributing/deployment-checks.mdx
@@ -3,7 +3,7 @@ title: "Deployment checks"
description: "How CI verifies the Vercel build artifact on every pull request, and how to run the deployment smoke test against a Vercel or Docker installation."
---
-Reactive Resume ships as a Docker image and as a Vercel project. The **CI** workflow (`.github/workflows/e2e.yml`) includes an offline Vercel artifact build that runs on every pull request and a live smoke test you start by hand. These jobs catch problems that only show up in a deployed build. You can run the same smoke test against your own installation.
+Reactive Resume ships as a Docker image and as a Vercel project. The **CI** workflow (`.github/workflows/ci.yml`) includes an offline Vercel artifact build that runs on every pull request and a live smoke test you start by hand. These jobs catch problems that only show up in a deployed build. You can run the same smoke test against your own installation.
## Artifact build
diff --git a/docs/contributing/development.mdx b/docs/contributing/development.mdx
index f5a3cbc53..681bed655 100644
--- a/docs/contributing/development.mdx
+++ b/docs/contributing/development.mdx
@@ -190,7 +190,7 @@ pnpm --filter @reactive-resume/pdf test:coverage
Pass file paths straight after `test`. An extra `--` stops Vitest from filtering the run. Most test scripts use `--passWithNoTests`, so a green run with zero tests proves nothing about your change.
-Database integration suites need `COVER_LETTER_TEST_DATABASE_URL`, `INTEGRATIONS_TEST_DATABASE_URL`, and `OAUTH_TEST_DATABASE_URL`. The migration suite uses `COVER_LETTER_TEST_DATABASE_URL` as an administrative connection and creates and deletes its own disposable databases, so its user needs `CREATE DATABASE` permission. Give the OAuth suite its own database, because it writes signing keys. Never point test variables at a database with real data. `.github/workflows/e2e.yml` shows the full setup.
+Database integration suites need `COVER_LETTER_TEST_DATABASE_URL`, `INTEGRATIONS_TEST_DATABASE_URL`, and `OAUTH_TEST_DATABASE_URL`. The migration suite uses `COVER_LETTER_TEST_DATABASE_URL` as an administrative connection and creates and deletes its own disposable databases, so its user needs `CREATE DATABASE` permission. Give the OAuth suite its own database, because it writes signing keys. Never point test variables at a database with real data. `.github/workflows/ci.yml` shows the full setup.
### Browser tests
@@ -258,13 +258,14 @@ Before you open a pull request:
3. Run `pnpm build` if you changed runtime or bundling behavior.
4. Keep the pull request focused. Describe the problem, the new behavior, and the checks you ran, and link the related [GitHub issue](https://github.com/reactive-resume/reactive-resume/issues).
-Pull requests run the **CI** workflow (`.github/workflows/e2e.yml`) with three independent jobs:
+Pull requests run the **CI** workflow (`.github/workflows/ci.yml`) with four parallel checks:
-| Job | What it checks |
-| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| Unit and browser tests | Unit tests for every workspace (`turbo run test:ci --concurrency=1`), affected-package typechecks, package boundaries, a production build, and Playwright |
-| Vercel artifact | Builds the Vercel artifact offline and checks the backend Function. See [Deployment checks](/contributing/deployment-checks). |
-| Cloudflare compatibility | Checks the Cloudflare build and runs tests against the local Workers runtime without cloud credentials |
+| Job | What it checks |
+| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
+| Run unit tests | Unit tests for every workspace, affected-package typechecks, and package boundaries. Test concurrency adapts to the runner. |
+| Run browser tests | A production build and Playwright browser tests. Browser workers adapt to the runner. |
+| Check Vercel compatibility | Builds the Vercel artifact offline and checks the backend Function. See [Deployment checks](/contributing/deployment-checks). |
+| Check Cloudflare compatibility | Checks the Cloudflare build and runs tests against the local Workers runtime without cloud credentials |
The separate **autofix.ci** workflow (`autofix.yml`) runs `pnpm knip --fix` and `pnpm check`, then pushes any fixes to your branch. The autofix.ci service requires its own workflow name.
diff --git a/packages/forme-native/README.md b/packages/forme-native/README.md
index ff7349f34..5b20adcab 100644
--- a/packages/forme-native/README.md
+++ b/packages/forme-native/README.md
@@ -20,7 +20,7 @@ Add this workspace package to the Expo app. Expo autolinking discovers its Swift
## EAS prebuilt binaries
-The manually dispatched `.github/workflows/mobile-forme-native.yml` builds both platforms on macOS with the pinned Rust tools and NDK. It packages the generated header, arm64 device/simulator xcframework, and all three Android `jniLibs` into one archive. Linux Android workers and macOS iOS workers need only Node and `tar`; they never run Cargo. Local development keeps `bash rust/build.sh`.
+The manually dispatched `.github/workflows/mobile-forme-build.yml` builds both platforms on macOS with the pinned Rust tools and NDK. It packages the generated header, arm64 device/simulator xcframework, and all three Android `jniLibs` into one archive. Linux Android workers and macOS iOS workers need only Node and `tar`; they never run Cargo. Local development keeps `bash rust/build.sh`.
Each archive and workflow artifact is named `forme-native-v<package-version>-<source-hash>`. The hash covers sorted relative paths and SHA-256 file contents of every file under `rust/`, excluding the generated `rust/target/` directory. This includes the Cargo lockfile, build script, toolchain pin and cbindgen configuration. Changing any input requires a new pin. The archive has a separate SHA-256 because rebuilding the same source is not assumed to produce byte-identical archives.
diff --git a/tooling/docker-publishing.test.ts b/tooling/docker-publishing.test.ts
index 3ba93b5d6..b4bea7912 100644
--- a/tooling/docker-publishing.test.ts
+++ b/tooling/docker-publishing.test.ts
@@ -5,7 +5,7 @@ import { join } from "node:path";
import { expect, it } from "vite-plus/test";
it("keeps smoke dispatches out of release publishing and production deployment", () => {
- const workflow = readFileSync(new URL("../.github/workflows/docker-build.yml", import.meta.url), "utf8");
+ const workflow = readFileSync(new URL("../.github/workflows/docker-publish.yml", import.meta.url), "utf8");
const mode = workflow.match(/ {8}run: \|\n([\s\S]*?)\n {2}build:/)?.[1];
if (!mode) throw new Error("Publishing mode script is missing");
const directory = mkdtempSync(join(tmpdir(), "docker-publishing-"));
@@ -40,9 +40,9 @@ it("keeps smoke dispatches out of release publishing and production deployment",
});
it("validates release tags against the built version and distinguishes prereleases", () => {
- const workflow = readFileSync(new URL("../.github/workflows/docker-build.yml", import.meta.url), "utf8");
+ const workflow = readFileSync(new URL("../.github/workflows/docker-publish.yml", import.meta.url), "utf8");
const script = workflow.match(
- / - name: Resolve publishing version and commit[\s\S]*? run: \|\n([\s\S]*?)(?=\n - name:)/,
+ / - name: Resolve source commit and version[\s\S]*? run: \|\n([\s\S]*?)(?=\n - name:)/,
)?.[1];
if (!script) throw new Error("Publishing version script is missing");
const directory = mkdtempSync(join(tmpdir(), "docker-version-"));
diff --git a/tooling/docker/check-ci.mjs b/tooling/docker/check-ci.mjs
index 7230ceae4..860a0bb51 100644
--- a/tooling/docker/check-ci.mjs
+++ b/tooling/docker/check-ci.mjs
@@ -2,7 +2,7 @@ export async function requireSuccessfulCI({ github, repo, sha }) {
if (!/^[a-f0-9]{40}$/.test(sha ?? "")) throw new Error("Promotion requires a full commit SHA");
const runs = await github.paginate(github.rest.actions.listWorkflowRuns, {
...repo,
- workflow_id: "e2e.yml",
+ workflow_id: "ci.yml",
head_sha: sha,
event: "push",
branch: "main",
diff --git a/tooling/docker/check-ci.test.mjs b/tooling/docker/check-ci.test.mjs
index 5f4ae0863..b71841b0e 100644
--- a/tooling/docker/check-ci.test.mjs
+++ b/tooling/docker/check-ci.test.mjs
@@ -15,7 +15,10 @@ const passed = {
function authorize(runs) {
return requireSuccessfulCI({
- github: { rest: { actions: { listWorkflowRuns() {} } }, paginate: async () => runs },
+ github: {
+ rest: { actions: { listWorkflowRuns() {} } },
+ paginate: async (_method, { workflow_id }) => (workflow_id === "ci.yml" ? runs : []),
+ },
repo: { owner: "example", repo: "app" },
sha,
});
diff --git a/tooling/mobile-updates.test.ts b/tooling/mobile-updates.test.ts
index 9021d4c39..7515d83f9 100644
--- a/tooling/mobile-updates.test.ts
+++ b/tooling/mobile-updates.test.ts
@@ -5,7 +5,7 @@ import { join } from "node:path";
import { runInNewContext } from "node:vm";
import { expect, it } from "vite-plus/test";
-const workflow = readFileSync(new URL("../.github/workflows/docker-build.yml", import.meta.url), "utf8");
+const workflow = readFileSync(new URL("../.github/workflows/docker-publish.yml", import.meta.url), "utf8");
const otaWorkflow = readFileSync(new URL("../.github/workflows/mobile-ota-update.yml", import.meta.url), "utf8");
const commit = "a".repeat(40);
@@ -22,7 +22,7 @@ it.each([
if (!expression) throw new Error("Mobile OTA eligibility output is missing");
expect(
runInNewContext(expression, {
- needs: { mode: { outputs: { release } } },
+ needs: { plan: { outputs: { release } } },
steps: { version: { outputs: { prerelease } }, deploy: { outcome: deployed } },
}),
).toBe(expected);
@@ -41,7 +41,7 @@ it.each([
expect(
runInNewContext(expression, {
cancelled: () => cancelled,
- needs: { merge: { result, outputs: { mobile_ota } } },
+ needs: { publish: { result, outputs: { mobile_ota } } },
}),
).toBe(expected);
});
@@ -73,7 +73,7 @@ it.each([
],
] as const)("requires three consecutive matching production probes: %s", (_name, responses, status, probes) => {
const script = otaWorkflow.match(
- / - name: Wait for matching production backend[\s\S]*? run: \|\n([\s\S]*?)(?=\n - name:)/,
+ / - name: Wait for healthy backend at source commit[\s\S]*? run: \|\n([\s\S]*?)(?=\n - name:)/,
)?.[1];
if (!script) throw new Error("Production backend check is missing");
const directory = mkdtempSync(join(tmpdir(), "mobile-backend-"));