Repository navigation
ci: add manual runs and share run rules - #26
Open
npmccallum wants to merge 2 commits into
Open
npmccallum wants to merge 2 commits into
npmccallum wants to merge 2 commits into
Conversation
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
force-pushed
the
bot/devmap/ci-dispatch-concurrency
branch
from
November 8, 2026 04:34
d0d6d1b to
67efdd4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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
d0d6d1b — ci: share workspace and docs run rules
Windows and macOS were not run locally because those machines are not available to the developer; CI runs them.
Fixes #24