From 46a5d65715a8576bfef05eae3064ff1642312b47 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Oct 2026 17:48:56 +0000 Subject: [PATCH] CI off: checks run by hand, only package builds run by themselves The checks no longer run on pushes, pull requests or a schedule, on GitHub or Gitea: ci.yml, audit.yml, fuzz.yml and Gitea's ci.yml run by hand only (Run workflow). Only the package builds still run by themselves, on v* tags (release.yml, docker.yml, Gitea's release.yml), and the release workflows no longer run the checks first: GitHub's drops its checks and Windows test jobs, Gitea's the shared checks step. The docs say so. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FEpqsPES27Eacue91u3d2Q --- .gitea/workflows/ci.yml | 14 +------------- .gitea/workflows/release.yml | 1 - .github/workflows/audit.yml | 3 +-- .github/workflows/ci.yml | 25 ++++--------------------- .github/workflows/fuzz.yml | 3 +-- .github/workflows/release.yml | 24 ++---------------------- docs/building.md | 6 +++--- docs/ci.md | 26 ++++++++++++++------------ docs/release.md | 13 ++++++------- 9 files changed, 32 insertions(+), 83 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 1aea1ea..6a68b0b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,20 +1,8 @@ name: CI # Linux checks for Gitea act_runner; runner setup and scope: docs/ci.md. +# Off for pushes and pull requests: run by hand only. on: - push: - branches: [main, master] - paths: - - "**" - - "!docs/**" - - "!**/*.md" - - "THIRD_PARTY_NOTICES.md" - pull_request: - paths: - - "**" - - "!docs/**" - - "!**/*.md" - - "THIRD_PARTY_NOTICES.md" workflow_dispatch: env: diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 0a4f2e6..6b18187 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -27,7 +27,6 @@ jobs: - uses: https://github.com/actions/checkout@v4 with: persist-credentials: false - - uses: ./.gitea/actions/checks - name: Check release tools run: | set -euo pipefail diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 667df80..57bb930 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -4,9 +4,8 @@ name: Security audit # new advisories show up without a push. CI's cargo-deny job checks the same # on every push together with licenses and sources. +# Not scheduled: run by hand only. on: - schedule: - - cron: "41 4 * * *" workflow_dispatch: jobs: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b4ef11..6cff5b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,27 +1,10 @@ name: CI -# Fast checks on every push to main and every PR: lint, tests, license and -# advisory checks, and the integration tests against TS3/TS6 servers. -# Packages are built only by release.yml (tags, or by hand), which also runs -# these checks through workflow_call. - -# Changes to documentation only need no build (same list twice: no YAML -# anchors in workflows). THIRD_PARTY_NOTICES.md is compiled into the app -# (About page) and checked below. +# Checks: lint, tests, license and advisory checks, and the integration +# tests against TS3/TS6 servers. Off for pushes and pull requests: run by +# hand only (Actions → CI → Run workflow). Packages are built by release.yml +# (tags, or by hand), which does not wait for these checks. on: - push: - branches: [main, master] - paths: - - "**" - - "!docs/**" - - "!**/*.md" - - "THIRD_PARTY_NOTICES.md" - pull_request: - paths: - - "**" - - "!docs/**" - - "!**/*.md" - - "THIRD_PARTY_NOTICES.md" workflow_dispatch: workflow_call: diff --git a/.github/workflows/fuzz.yml b/.github/workflows/fuzz.yml index 8f4fc75..3e04841 100644 --- a/.github/workflows/fuzz.yml +++ b/.github/workflows/fuzz.yml @@ -1,8 +1,7 @@ name: Fuzz +# Not scheduled: run by hand only. on: - schedule: - - cron: "17 3 * * *" workflow_dispatch: jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6559f9a..207c671 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,8 +3,7 @@ name: Release # The packages (docs/building.md), made by scripts/package.sh like the Docker # builds in docker/. A v* tag attaches them to a draft GitHub release; run by # hand (Actions → Release → Run workflow) they are only uploaded as artifacts. -# The package jobs run alongside the checks, so a manual run yields packages -# even when a check fails; a release needs everything green. +# Only the packages are built: the checks (ci.yml) run by hand. on: push: @@ -25,25 +24,6 @@ env: CARGO_INCREMENTAL: "0" jobs: - # The same checks as every push (lint, Linux tests, Windows and Android - # clippy, deny, notices, integration tests). - checks: - uses: ./.github/workflows/ci.yml - - test-windows: - name: test (Windows) - runs-on: windows-2025 - steps: - - uses: actions/checkout@v4 - - uses: ./.github/actions/system-deps - - name: Install toolchain (rust-toolchain.toml) - run: rustup toolchain install - - uses: Swatinem/rust-cache@v2 - - name: Build - run: cargo build --workspace --all-targets --locked - - name: Test - run: cargo test --workspace --locked - package-linux: name: package (Linux) runs-on: ubuntu-24.04 @@ -226,7 +206,7 @@ jobs: release: name: draft release if: startsWith(github.ref, 'refs/tags/v') - needs: [checks, test-windows, package-linux, package-windows, package-flatpak, package-gateway-image, package-android] + needs: [package-linux, package-windows, package-flatpak, package-gateway-image, package-android] runs-on: ubuntu-24.04 permissions: contents: write diff --git a/docs/building.md b/docs/building.md index f227b9b..b441864 100644 --- a/docs/building.md +++ b/docs/building.md @@ -3,8 +3,8 @@ Every platform has installable packages. The release workflow builds them, and the Dockerfiles in `docker/` build the same kinds of packages on any machine with Docker. Both use `scripts/package.sh`, so file names and -contents match. Regular CI (`ci.yml`, every push and PR) only runs the fast -checks and builds no packages. +contents match. CI (`ci.yml`, run by hand only) runs the checks and builds +no packages; the release workflow builds packages without running them. The packages hold the app, Voelin. The gateway `tsgw` runs on servers and is packaged for Linux only, separately. `voelinctl` is a development tool and is @@ -43,7 +43,7 @@ and [runner setup](ci.md#gitea-release-runner) for host requirements. - **A version tag** `v*` (`git tag -s v0.2.0 && git push origin v0.2.0`): the packages and a `SHA256SUMS` are attached to a **draft** GitHub release once - all checks pass (the same checks as CI, plus the Windows tests); review and + every package is built (no checks run; run CI by hand first); review and publish it by hand ([release.md](release.md#checklist)). - **By hand**, for a build to test without a release: Actions → Release → Run workflow (or `gh workflow run release.yml --ref `). The packages are diff --git a/docs/ci.md b/docs/ci.md index 59cd4f7..0de20b5 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -1,9 +1,12 @@ # CI GitHub Actions runs `.github/workflows/ci.yml`, including Linux checks, -Windows and Android Clippy, and TeamSpeak integration smoke tests. Both -GitHub and Gitea provide release packaging; see [release.md](release.md) and -[building.md](building.md). +Windows and Android Clippy, and TeamSpeak integration smoke tests. Automatic +runs are off: CI, the dependency audit and fuzzing run only by hand +(Actions → the workflow → Run workflow; the same on Gitea). Only the package +builds run by themselves, on `v*` tags, and they run none of these checks. +Both GitHub and Gitea provide release packaging; see [release.md](release.md) +and [building.md](building.md). Cargo builds use one job in CI so the generated UI library and its test target do not compile concurrently. The release profile uses ThinLTO and @@ -15,10 +18,8 @@ runtime performance has not been benchmarked for this change. ## Gitea Actions -`.gitea/workflows/ci.yml` runs a single Linux job on pushes to `main` and -`master`, pull requests, and manual dispatch. Documentation-only changes -are excluded; `THIRD_PARTY_NOTICES.md` is not excluded because the app embeds -it and CI verifies it. +`.gitea/workflows/ci.yml` runs a single Linux job when dispatched by hand +(automatic runs on pushes and pull requests are off). The job runs: @@ -147,10 +148,11 @@ ENDLESS_TASK_TIMEOUT = 9h Keep sufficient RAM/swap and free disk for all package builds and their Docker caches. Builds run sequentially and limit Cargo to one job. The -workflow never prunes shared Docker state or creates host swap. The token and optional Android signing -secrets are documented in [Gitea releases](release.md#gitea-releases). +workflow never prunes shared Docker state or creates host swap. The token +and optional Android signing secrets are documented in +[Gitea releases](release.md#gitea-releases). -Gitea packages pass the shared Linux checks but do not gain native Windows, -Android Clippy or TS3/TS6 smoke-test acceptance from a successful release -job. Full hosted builds and a draft upload must be verified on the registered +The Gitea release job builds packages only: it runs no formatting, Clippy, +tests, native Windows, Android Clippy or TS3/TS6 smoke tests; run CI by hand +for those. Full hosted builds and a draft upload must be verified on the registered runner; local shell/API fixtures do not establish deployment acceptance. diff --git a/docs/release.md b/docs/release.md index a5a694c..b39590d 100644 --- a/docs/release.md +++ b/docs/release.md @@ -13,13 +13,12 @@ requirements differ. `.gitea/workflows/release.yml` builds Linux tarballs and `.deb` files, Windows zip and NSIS installer (MinGW cross-build), Android debug APK (arm64-v8a and -x86_64), a Flatpak bundle, and the gateway container image. It shares Linux -checks with Gitea CI, and reuses the Dockerfiles and `scripts/package.sh`. -Unlike GitHub's release pipeline, it does not run native Windows tests, -Android Clippy, TeamSpeak smoke tests or browser interop; complete those -checks in GitHub or separately before accepting a release. +x86_64), a Flatpak bundle, and the gateway container image. It reuses the +Dockerfiles and `scripts/package.sh`, and builds packages only: it runs none +of the checks (formatting, Clippy, tests, TeamSpeak smoke tests); run CI by +hand for those before accepting a release. -- **Manual dispatch:** after checks and all builds pass, download the +- **Manual dispatch:** after all builds pass, download the `voelin-packages` artifact from the run. Manual runs never publish a draft, even when dispatched against a tag. - **Push a `v*` tag:** the same artifact is uploaded, then packages and a @@ -218,7 +217,7 @@ Release: 7. Tag `v` (signed) on the release commit and push it. 8. The tag's release workflow (`release.yml`, [building.md](building.md)) - runs the checks and the Windows tests and builds every package: the app's + builds every package (it runs no checks: run CI by hand first): the app's Linux tarball and `.deb`, Flatpak bundle, Windows zip and installer and Android APKs (signed when the secrets are set), and the gateway's Linux tarball, `.deb` and image; its `release` job attaches them with a