Skip to content

fmt gate and cargo oxide fmt have no automated parity check #1048

Closed

Description

@nihalpasham

The fmt CI gate (.github/workflows/fmt.yml) and cargo oxide fmt are two implementations of the same scope list that mirror each other by convention only. That is how the drift fixed in #1047 happened: the gate grew a fourth scope and the command kept three, so contributors could format everything locally and still fail CI.

#1047 restores parity and documents the mirroring invariant on both sides, but nothing enforces it. Two options, either closes this:

  • a small check that parses fmt.yml's scope steps and compares them against collect_example_manifests plus the fixed scopes, failing when the sets diverge;
  • have the fmt job run cargo oxide fmt --check directly so there is only one implementation. The catch today is the job runs on a bare checkout with a 10-minute timeout, and compiling cargo-oxide first costs more than the check itself, so this needs a cached or prebuilt binary to be viable.

Until one of these lands, any PR touching fmt.yml scopes must remember to touch format_all in crates/cargo-oxide/src/commands.rs too.

Activity

  1. added
    cargo-oxide
    build-related
    QoL-improvement
    on Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    QoL-improvementbuild-relatedcargo-oxide

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions