Skip to content

ci: add manual runs and share run rules - #26

Open
npmccallum wants to merge 2 commits into
mainfrom
bot/devmap/ci-dispatch-concurrency
Open

npmccallum wants to merge 2 commits into
mainfrom
bot/devmap/ci-dispatch-concurrency

Conversation

@npmccallum

@npmccallum npmccallum commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A workflow is a set of jobs GitHub runs on the code. The workspace
workflow checks the code, and the docs workflow builds its documentation.
This change adds a manual run button to the workspace workflow and gives
both workflows the same run rules, so runs on main, the main branch, are
never stopped by another run.

When docs cancels a run on main, the check result for that main commit is
never reported. A commit is a saved version of the code. Cancel means
stop a run.

Approach

The first commit adds workflow_dispatch, the manual run button, to the
workspace workflow so a maintainer can start its checks when needed.

The second commit gives workspace and docs the same rules pichi-vm/pichi uses (pichi#43).
pichi is a related project in the same organization.

A concurrency group is a label GitHub uses to limit runs that share it.
The workflow name keeps workspace and docs in separate groups. Each main
run gets its own group and has cancellation disabled, so another run
cannot stop it or replace it while it waits. Other runs share a group by
pull request number or branch or tag name. A pull request is a proposed
code change; a tag names a saved version of the code. A newer run cancels
an older run in the same group. These rules also apply to manual runs.

Verification

  • All local tests were run and passed for every commit in this series independently

CI means continuous integration: the automatic checks GitHub runs.
Rust is the programming language used here. Cargo is its build and test
tool. Clippy checks Rust code for mistakes; formatting checks its layout.
Dependency boundaries are rules about which project libraries may use
each other. License headers are copyright and license notices at the tops
of files. The whitespace check looks for unwanted spaces and tabs. A
feature selects optional code for a build.

The dependency policy checks rules for the libraries the code uses:
their licenses, known security problems, allowed versions, and sources.
The security audit checks known security problems in locked dependencies,
the exact library versions saved in Cargo.lock. Packaging prepares the
files for publishing and checks that they build.

Each commit was checked separately on Linux with Rust and Cargo 1.99.1
and the minimum supported Rust version, 1.87.0, the oldest Rust version
this project supports.

The Unit column says what each number counts. A command passes when it finishes without an error.
Test counts repeat across optional code settings and Rust versions.
The ignored entries are tests skipped by a normal test command. They
need administrator access and repeat across those settings.

A virtual machine (VM) is a computer running inside another computer.
QEMU is the program that runs the virtual machine; KVM is Linux's
hardware support that makes it fast.
All 59 required combinations of test and setting passed in the VM for
each commit, covering 28 distinct tests. The VM confirmed its commit,
and its device-mapper and loop-device lists were empty after testing.
Device-mapper creates virtual disks, and loop devices let files act as
disks.

The self-check uses sample cases, made-up build results, to check that
the kernel test script rejects bad results before running tests and runs
the sample program once for valid results. The kernel is the part of
Linux that manages hardware; these sample cases do not test the kernel.

8193a6a — ci: allow workspace checks by hand

Check Unit Passed Failed Ignored
Workflow files follow GitHub's rules files 3 0 0
gitlint, the commit message checker: commits since main commits 1 0 0
Format, Clippy, dependency boundaries, license headers, whitespace commands 5 0 0
Self-check of the kernel test script sample cases 9 0 0
Cargo tests, including examples in documentation (25 commands) tests 569 0 61
Build with the oldest supported Rust version commands 1 0 0
Dependency policy categories 4 0 0
Security audit locked dependencies 50 0 0
Documentation build commands 1 0 0
Packaging commands 1 0 0
Tests with administrator access in the VM (5 feature settings) test runs 59 0 0

d0d6d1b — ci: share workspace and docs run rules

Check Unit Passed Failed Ignored
Workflow files follow GitHub's rules files 3 0 0
gitlint, the commit message checker: commits since main commits 2 0 0
gitlint: the second commit alone commits 1 0 0
Format, Clippy, dependency boundaries, license headers, whitespace commands 5 0 0
Self-check of the kernel test script sample cases 9 0 0
Cargo tests, including examples in documentation (25 commands) tests 569 0 61
Build with the oldest supported Rust version commands 1 0 0
Dependency policy categories 4 0 0
Security audit locked dependencies 50 0 0
Documentation build commands 1 0 0
Packaging commands 1 0 0
Tests with administrator access in the VM (5 feature settings) test runs 59 0 0

Windows and macOS were not run locally because those machines are not available to the developer; CI runs them.

Fixes #24

A workflow is a set of jobs GitHub runs on the code. The workspace
workflow cannot be started by hand, so checking the code without a
code change is hard.

Add workflow_dispatch, the manual run button, so a maintainer can
start the workspace checks when needed.

Fixes #24
A workflow is a set of jobs GitHub runs on the code. The workspace
and docs workflows use different run rules, and docs can cancel a
run on main, the main branch. Cancel means stop a run.

Use the same rules pichi-vm/pichi uses. pichi is a related project
in the same organization. A concurrency group is a label GitHub
uses to limit runs that share it. Include the workflow name to
keep workspace and docs in separate groups.

Give each main run its own group and disable cancellation so
another run cannot stop it or replace it while it waits. For other
runs, group by pull request number or ref. A pull request is a
proposed code change; a ref is the branch name GitHub provides.
A newer run cancels an older run in the same group.

Fixes #24
@npmccallum
npmccallum force-pushed the bot/devmap/ci-dispatch-concurrency branch from d0d6d1b to 67efdd4 Compare November 8, 2026 04:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align run groups and allow manual checks

1 participant