Files
computer-playbook/docs/contributing/artefact/git/pipeline.md
T
Environment TestandClaude Sonnet 4.6 0b8e16a45d test(lint): add markdown link checker and fix all broken links
Add tests/lint/repository/test_markdown_links.py — a hard-fail lint
test that scans all git-tracked markdown files for broken relative and
repo-root-absolute links. Skips external URLs, anchor-only links, fenced
code blocks, and placeholder targets.

Apply documentation.md rules to all staged files: add emojis after
headlines in docs files, remove emojis from role README headings,
standardize Credits sections to the canonical format, remove empty
sections and orphaned sentences referring to missing documentation files,
fix raw URLs and incorrect link text across role READMEs and docs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 22:00:46 +02:00

5.2 KiB

Continuous Integration 🔄

This document describes the CI pipeline structure, entry points, and gates used in Infinito.Nexus.

Overview 🗺️

CI is triggered automatically on pull request events and push to latest. The pipeline is composed of reusable workflow files under .github/workflows/. The central coordinator is ci-orchestrator.yml, which is called by the entry workflows.

Entry Points 🚪

Trigger Workflow Description
Pull request (opened, synchronize, reopened, ready_for_review) entry-pull-request-change.yml Detects PR scope and conditionally runs the full orchestrator
Push to latest entry-push-latest.yml Runs the full orchestrator on the main branch
Manual dispatch entry-manual.yml Allows triggering CI for a specific role or whitelist

PR Scope Detection 🔎

Before the full pipeline runs, CI detects the scope of the PR based on the changed files and the branch prefix (see branch.md).

  • Documentation-only and agent-only PRs MUST pass a lightweight gate without running the full orchestrator.
  • All other scopes MUST run the full ci-orchestrator.yml.
  • The branch prefix MUST match the detected scope, otherwise the validate-pr-branch-prefix job fails.

Pipeline Stages 🏗️

The orchestrator runs the following stages in order:

1. Fork Prerequisites ⏳

For fork PRs, CI waits for privileged images to be built by the pull_request_target event before proceeding. This ensures untrusted code never runs with elevated permissions.

2. Security 🛡️

3. Linting 🧹

All linting jobs run in parallel:

All four MUST pass the lint-gate before the pipeline continues.

4. CI Image Build 🐳

images-build-ci.yml builds Docker images for the target distributions (arch, debian, ubuntu, fedora, centos). These images are used by all subsequent test jobs.

5. Code Tests 🧪

Run in parallel after images are available:

All three MUST pass the test-code-gate.

6. Code Quality Gate 🚦

The code-quality-gate requires linting, code tests, and security checks to all pass before deploy tests are triggered.

7. DNS Tests 🌐

test-dns.yml validates DNS configuration across all target distributions.

8. Image Mirroring 🪞

images-mirror-missing.yml mirrors any missing upstream images in parallel with the DNS tests. See mirror.md for a full explanation of the mirroring architecture and naming convention. Authentication for GHCR is configured via repository secrets. See authentication.md.

9. Deploy Tests 🚀

Run in parallel after DNS and mirroring:

10. Installation Tests 📦

Run in parallel after the code quality gate:

Both MUST pass the test-install-gate.

11. Development Environment 🛠️

test-environment.yml validates the development environment setup.

12. Done 🏁

The final done job aggregates all deploy, install, and development gates. CI is considered green only when this job succeeds.

Concurrency 🔀

  • PR pipelines use cancel-in-progress: true so only the newest run per PR and event type is active.
  • The orchestrator uses cancel-in-progress: false to avoid interrupting long-running deploy tests mid-flight.

Fork PRs 🍴

Fork PRs run under the pull_request event without write permissions. Privileged steps (image builds, package writes) run via pull_request_target after a maintainer review. The fork CI waits for those privileged images before proceeding. See pull-request.md for the contributor-facing fork workflow.