ci: split test CI from delivery #3

Merged
maximus merged 2 commits from ci/split-test-delivery into master 2026-11-22 10:58:04 +00:00
Member

Tests now run only as the PR fast-forward gate (Jörg's CI standard). Main is ff-only and blocks outdated branches, so the merged commit is exactly the tree the PR tested.

Guard on every test job: github.event_name != 'pull_request' || (head.repo.full_name == github.repository && pull_request.flow == 0) (no fork or AGit PR code on the homelab runner). Concurrency cancels superseded PR runs. No secrets are used by the test workflow.

  • ci.yaml (workflow CI): lint-backend, test-backend, lint-frontend unchanged, now PR + dispatch only (was push on all branches). New required contexts: CI / lint-backend (pull_request), CI / test-backend (pull_request), CI / lint-frontend (pull_request). The checkout step now fetches GITHUB_REF + checks out GITHUB_SHA instead of git clone --branch $GITHUB_REF_NAME, which cannot work for a PR ref.
  • images.yaml (workflow images, push to master/main): build-backend and build-frontend kaniko builds, byte-identical steps, same secrets, same tags (<sha7>, latest). The trigger is narrowed to the default branches instead of every branch plus an if; same effective behaviour.
  • Dropped dependency: image builds used needs: [lint-*, test-backend]; they now build on every push to master without it (the merged commit was tested by its PR).
  • Existing contexts CI / <job> (push) no longer get reported.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t

Tests now run only as the PR fast-forward gate (Jörg's CI standard). Main is ff-only and blocks outdated branches, so the merged commit is exactly the tree the PR tested. Guard on every test job: `github.event_name != 'pull_request' || (head.repo.full_name == github.repository && pull_request.flow == 0)` (no fork or AGit PR code on the homelab runner). Concurrency cancels superseded PR runs. No secrets are used by the test workflow. - `ci.yaml` (workflow `CI`): `lint-backend`, `test-backend`, `lint-frontend` unchanged, now PR + dispatch only (was push on all branches). **New required contexts: `CI / lint-backend (pull_request)`, `CI / test-backend (pull_request)`, `CI / lint-frontend (pull_request)`.** The checkout step now fetches `GITHUB_REF` + checks out `GITHUB_SHA` instead of `git clone --branch $GITHUB_REF_NAME`, which cannot work for a PR ref. - `images.yaml` (workflow `images`, push to `master`/`main`): `build-backend` and `build-frontend` kaniko builds, byte-identical steps, same secrets, same tags (`<sha7>`, `latest`). The trigger is narrowed to the default branches instead of every branch plus an `if`; same effective behaviour. - **Dropped dependency:** image builds used `needs: [lint-*, test-backend]`; they now build on every push to master without it (the merged commit was tested by its PR). - Existing contexts `CI / <job> (push)` no longer get reported. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
ci: split test CI from delivery, tests run only on pull requests
Some checks failed
CI / lint-backend (pull_request) Failing after 28s
CI / lint-frontend (pull_request) Successful in 45s
CI / test-backend (pull_request) Successful in 1m39s
0e59055ed1
Main is fast-forward only and blocks outdated branches, so the merged tree is exactly the tree the PR tested; re-running the tests on every push duplicates CI on a shared runner. Tests now live in their own workflow on pull_request (+ workflow_dispatch) with a concurrency group and a fork/AGit guard. Delivery (deploy webhooks, image builds) moves to its own workflow on push to the default branch, with the same secrets and commands, and no longer waits for the tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
fix: silence ruff UP042 on three str+Enum classes
Some checks failed
CI / lint-backend (pull_request) Successful in 26s
CI / lint-frontend (pull_request) Successful in 42s
CI / test-backend (pull_request) Successful in 1m32s
images / build-backend (push) Failing after 15s
images / build-frontend (push) Failing after 7s
0a303f7d18
The lint job installs the newest ruff, whose UP042 flags `class X(str, Enum)`. Switching to StrEnum would change str() of the members, so the three classes keep their bases and carry a noqa.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4EHDsxSUaKJC2q1H41t
maximus merged commit 0a303f7d18 into master 2026-11-22 10:58:04 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
public/office-betting!3
No description provided.