Skip to content

just test covers 5 of the 22 packages CI tests, so just check passes while CI fails #728

Closed

Description

@vyncint

Justfile's check recipe is the documented "run all checks" entry point:

check: fmt-check clippy test doc-check

But test runs five packages:

test:
    cargo test -p cuda-host -p cuda-macros -p llvm-export -p dialect-mir -p dialect-nvvm --lib --tests

while .github/workflows/unit-tests.yml runs 21 in its matrix, plus a
separate rustc-codegen-cuda job — 22 in total.

The sixteen it never runs include the entire compiler middle-end, which is where
most changes land:

mir-lower  mir-importer  mir-transforms  nvvm-transforms  cuda-oxide-codegen
cargo-oxide  oxide-artifacts  cuda-device  cuda-core  cuda-async
cuda-intrinsics  cuda-intrinsics-gen  reserved-oxide-symbols
libnvvm-sys  nvjitlink-sys  cuda-artifact-finalizer

So a contributor edits mir-lower, runs just check, sees green, pushes, and
CI fails on tests they had no local way to run short of reading the workflow
matrix by hand.

Two smaller problems come with it:

  • The recipe's comment says it "excludes rustc_private and device-only crates",
    but two of the five it does run — cuda-host and cuda-macros — are exactly
    the ones CI marks needs_cuda, because they transitively pull cuda-bindings
    and need cuda.h. The selection is close to the opposite of the comment.
  • It uses --lib --tests, while the CI matrix defaults to --all-targets and
    carries deliberate per-package overrides: oxide-artifacts needs
    --features object (without it, eight ELF emit/extract tests are skipped) and
    cuda-core needs --lib (to skip the GPU-only tests/vmm_p2p.rs). None of
    that is reflected locally.

Suggested fix

Make test mirror the CI matrix, including its two per-package overrides and
the separate rustc-codegen-cuda workspace, so just check predicts CI.

Activity

  1. added
    bug
    build-related
    on Aug 10, 2026
  2. added a commit that references this issue on Aug 10, 2026
    91bbc35
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

    bugbuild-related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions