Skip to content

ci: the MSRV job is a required check, under a name that does not carry the version - #540

Merged
DrunkOnJava merged 3 commits into
mainfrom
ci/msrv-required-check
Sep 30, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
ci/msrv-required-check

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Makes the MSRV job a required check, under a name that does not carry the version, so a pull request that needs a newer Rust than rust-version cannot merge, and an MSRV bump does not mean editing the ruleset.

Motivation

The MSRV job builds on the release rust-version names and runs the real-file checks that need no corpus. It has been advisory, so auto-merge and gh pr merge went past it: Dependabot's earcut 0.4.11 update (#531) failed it (earcut 0.4.11 needs Rust 1.87 on a 1.85 MSRV) and GitHub still called the pull request UNSTABLE, not blocked. docs/maintaining.md (#535) says such a pull request is not merged as it is; this makes the ruleset say it instead of leaving it to the maintainer's attention. The check's name embedded the version (build + real files / ubuntu-latest / 1.87), which the ruleset would have to follow at every bump; it is now build + real files / ubuntu-latest / msrv.

Changes

  • .github/workflows/ci.yml: the matrix entry for the MSRV gets label: msrv, and the job name uses ${{ matrix.label || matrix.rust }}, so the stable jobs keep their names and the MSRV job is build + real files / ubuntu-latest / msrv.
  • .github/rulesets/main-protection.json: build + real files / ubuntu-latest / msrv is a required status check. It is applied to the live ruleset with the API after this merges and after the pull requests already in flight have landed or been brought up to date, since one whose workflow predates this change never reports the check and would wait on it forever.
  • docs/maintaining.md: the required checks, the MSRV section, and a paragraph on how an update to a parser dependency is measured (the rvt-info diff from ci(measure): rvt-info reads every model and family, and the compare job diffs it, so the PartAtom parser is measured #538, and fuzz.yml dispatched on the branch for the PartAtom reader), which is how build(deps): raise the MSRV to 1.87 and take quick-xml 0.42 and earcut 0.4.11 #535 was measured.
  • CHANGELOG.md.

Testing

No product code changes; actionlint and a YAML parse are clean.

  • The check build + real files / ubuntu-latest / msrv reports on this pull request and passes (job 109994622314); the stable, macOS and Windows jobs keep their names and pass too
  • Not checked by this pull request, and done after it merges: the live ruleset is updated from the file (gh api -X PUT repos/DrunkOnJava/rvt-rs/rulesets/15270879 --input .github/rulesets/main-protection.json), and python3 tools/maintainer/audit.py says the live rulesets match the file

Audit-honesty checklist

  • Every open pull request that predates this change lacks the new check until it is brought up to date with main, and is blocked until then; the maintainer updates them
  • The MSRV job builds without the corpora (with_corpus: false), so it is a compile and contract check on the oldest supported Rust, not a real-file measurement; the stable job on Linux is where the corpus is read
  • No emojis, private paths or PII

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk content
  • No fixtures

Breaking changes

None for users. A contributor's pull request must pass the MSRV job to merge.

Related issues

Follows #535.

…y the version

The MSRV job was advisory, so a pull request that needs a newer Rust than
`rust-version` could merge past it: Dependabot's earcut 0.4.11 update (#531)
failed it and GitHub still called the pull request `UNSTABLE`, not blocked.
docs/maintaining.md (#535) says such a pull request is not merged as it is;
this makes the ruleset say it.

The job's name embedded the version (`build + real files / ubuntu-latest /
1.87`), which the ruleset would have to follow at every MSRV bump, so the
matrix entry gets `label: msrv` and the job is named
`build + real files / ubuntu-latest / msrv`; the stable and platform jobs keep
their names. The check is added to main-protection.json, and to the required
checks listed in docs/maintaining.md.
@DrunkOnJava DrunkOnJava added area:ci Work in the ci area. priority:P2 Important quality, usability, or hardening work. type:ci Continuous integration or automation work. labels Sep 30, 2026
@cursor

cursor Bot commented Sep 30, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_1021069c-780f-42b1-8220-9c9fbdb735eb)

…diff and the fuzz target, not only built

The quick-xml 0.42 migration (#535) showed that Measure's IFC hashes and
scorers never reach the PartAtom parser: no reference model has a PartAtom
stream. #538 added the rvt-info diff over the six models and the eleven
families; this says in the maintainer guide when to use it, and to dispatch
fuzz.yml on the branch for the PartAtom reader, so the next update to quick-xml,
flate2, encoding_rs or cfb is measured the way that one was.
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 30, 2026 16:54
DrunkOnJava added a commit that referenced this pull request Sep 30, 2026
…ad once returned a non-gzip body (#542)

## Summary

The CI Python wheel job now retries its maturin build once. A transient
failure to install maturin inside the manylinux container fails the job
on a change that touched no code; a build that really fails still fails
it. Nothing in the crate changes.

## Motivation

On #540, which changed a check name, a ruleset file and docs, the
`Python wheel / ubuntu-latest` job failed in "Build wheel via maturin"
([job
109992040259](https://github.com/DrunkOnJava/rvt-rs/actions/runs/36745942918/job/109992040259)):

```
gzip: stdin: not in gzip format
tar: Child died with signal 13
curl: (23) Failed writing body (0 != 1364)
Error: The process '/usr/bin/docker' failed with exit code 2
```

`PyO3/maturin-action` installs maturin inside the manylinux2014
container from a download off GitHub releases, and that download
answered with something that was not a gzip. Over the last 200 CI runs
the wheel job had one other failure, a genuine one (the quick-xml 0.42
compile error on Dependabot's branch), so this is rare, but a red check
that a rerun clears is a defect in the job, not a result. The wheel job
is not a required check, which is why it did not block #540; the
maintainer still cannot tell a flake from a failure without reading the
log.

## Changes

- `.github/workflows/ci.yml`: the build step has `continue-on-error:
true`, and a second step with the identical inputs runs only when the
first one's outcome was `failure`. A download that fails once is
absorbed; a build that fails fails both attempts, and the second one
fails the job. The steps after it (install, smoke, upload) are
unchanged.
- `publish.yml` is left as it is: a failed release job is recovered by
re-running it, and the release wheels are the ones a change to this
should be most careful about.

## Testing

No product code changes; `actionlint` and a YAML parse are clean.

- [x] The job builds the wheel on this pull request's run ([run
36746505696](https://github.com/DrunkOnJava/rvt-rs/actions/runs/36746505696)):
`Build wheel via maturin` succeeds, `Build wheel via maturin (retry)` is
skipped, and the install, the wheel smoke on Revit files and the upload
succeed
- [x] Not established: the retry path itself has not run. It fires only
when the first attempt fails, and this change's wiring
(`continue-on-error` on the first step, `if: steps.maturin.outcome ==
'failure'` on the second, where `outcome` is the result before
`continue-on-error` is applied) is the documented GitHub Actions
behaviour, not something this pull request forced to happen

## Audit-honesty checklist

- [x] What this does not cover: the same download in `publish.yml`, and
any other transient failure of the wheel job (the install of the wheel,
the smoke) which still fails the job
- [x] No emojis, private paths or PII

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk content
- [x] No fixtures

## Breaking changes

None.

## Related issues

Found on #540.
@DrunkOnJava
DrunkOnJava merged commit a4077aa into main Sep 30, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/msrv-required-check branch September 30, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci Work in the ci area. priority:P2 Important quality, usability, or hardening work. type:ci Continuous integration or automation work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant