Repository navigation
Repository automation: Dependabot, labeler, CodeQL, mutation testing and the issue forms - #2
Merged
Merged
Conversation
Dependabot with the shape get_MNV settled on, after its first attempt opened one pull request per dependency and led with majors: monthly, grouped, majors kept apart, and the routine group merging itself once CI passes. fuzz/ is deliberately left out. It is a separate workspace that CI never builds, so a bump there would merge on the strength of a green run that never compiled it. The labeler, with globs for this project rather than get_MNV's: parser, distances, cli, tests, ci, packaging, documentation. Twelve labels created to go with it. CodeQL over rust and the workflows themselves, which is not a curiosity: those queries know about unsafe uses of pull_request_target, and the labeler runs on exactly that trigger. Dependency review to refuse a new dependency with a known advisory, which is the half Dependabot does not cover. Issue forms, a pull request template, and the community health files. The stale sweep is the one scheduled workflow, the same exception you asked for in get_MNV: a maintenance sweep has nothing to hang off except time. Which is also why crossvalidate.yml lost its weekly cron in this commit. I put it there and should not have: it builds and tests, and a build-or-test job on a timer is the thing you asked not to have. Mutation testing, scoped to the library. It was run first rather than added blind: 478 mutants, 397 caught. The survivors in main.rs are argument handling and warning text, so the scope excludes it; the ten in the library are documented one by one in .cargo/mutants.toml, including the two that looked like real gaps and turned out not to be. One of them took a probe to settle: skip_whitespace_bytes looks dead, and making it panic if it ever skipped anything proved it is not, because a malformed quote leaves whitespace the stripper could not see.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
Rust 1.98's clippy added chunks_exact_to_as_chunks, so this turned CI red on the next run against stable. The code is already on main, which means main is red too until this lands: it is a new lint on old code rather than anything this branch introduced. Same reading, one less unwrap: as_chunks gives [u8; 8] directly instead of a slice that has to be converted at every element.
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.
Ports get_MNV's repository automation, adapted to what distree actually has: no
npm, no Python test runners, one crate instead of a workspace.
What arrives
parser,distances,cli,tests,ci,packaging,documentation, from the files a pull request touchesbug,securityorpinnedTwelve labels were created on the repository to match, so nothing here
references a label that does not exist.
Two things worth reading rather than skimming
A cron I should not have added.
crossvalidate.ymlhad a weekly schedule.That is a build-and-test job on a timer, which is exactly what you asked not to
have: it spends minutes every week and reports failures nobody asked for, with
nobody watching when it goes wrong. It is
workflow_dispatchonly now. Thestale sweep keeps its cron, as the same exception you made in get_MNV, and the
file says so.
Mutation testing was run before it was configured. 478 mutants, 397 caught,
58 survivors. Two survivors looked like real test gaps and neither was:
skip_whitespace_byteslooks dead, because whitespace outside quoted labelsis stripped before the parser runs. Making it panic if it ever skipped
anything and running the suite proved otherwise: the torture test reaches it,
because a malformed quote leaves whitespace inside what the stripper took for
a quoted region. It stays.
+ 1in the LCA table'slevelssurvives removal. Two attempts to killit, a ladder and two deep chains, both passed without it. The second phase of
mrcais a greedy descent that accumulates jumps rather than taking one, soit can climb
2^levels - 1, which is already enough. The+ 1is margin, andit stays.
The rest are equivalent mutants or error-message wording, and all ten in the
library scope are named individually in
.cargo/mutants.toml.The one thing the run did produce is a test: nothing put a tree deep enough to
stress the lifting table through the LCA path at all, so
test_lifting_table_is_deep_enough_for_a_laddernow does. 97 tests, up from 96.src/main.rsis outside the mutation scope. Its survivors are the batch andbuffer size constants, which change how fast the run is and not what it prints,
and warning conditions, which change wording. The integration tests cover its
behaviour end to end, which is the right granularity for a command line. The one
numerically load-bearing part,
write_fixed_fast, is already checked directlyagainst the standard formatter over 200,000 values.
Not included
fuzz/is deliberately absent from Dependabot. It is a separate workspace thatresolves its own versions and CI never builds it, so a bump there would be
merged on the strength of a green run that never compiled the thing being
bumped.
There is no Q&A contact link in the issue template config, because Discussions
are not enabled here. Worth turning on: an answer in Q&A gets marked as the
answer and the next person finds it, while an answer in an issue is seen once.
Note on this pull request
The labeler cannot label the pull request that introduces it:
pull_request_targetruns the workflow from the base branch, which does not have the file yet. Labels
applied by hand, from the same globs the automation will use from now on.