Skip to content

//@ needs-matching-clang is misleading #126180

Description

@Zalathar

Via #126155, I discovered that the //@ needs-matching-clang compiletest header is a lot more strict than one might assume from its name.

Tests with this header are not run by default, regardless of whether a “matching clang” is available or not. Instead, they only run if environment variable RUSTBUILD_FORCE_CLANG_BASED_TESTS is set.

The only test job that sets this variable is x86_64-gnu-debug, but that job currently doesn't actually run any tests! (Though that might change as a result of #126155.)

@rustbot label +A-compiletest +A-testsuite

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    A-compiletestArea: The compiletest test runner
    A-testsuiteArea: The testsuite used to check the correctness of rustc
    on Jun 9, 2024
  2. Zalathar commented on Jun 9, 2024

    @Zalathar
    MemberAuthor

    For example, this might have caused the test added by #116264 to never actually run in CI.

  3. changed the title [-]`needs-matching-clang` is misleading[/-] [+]`//@ needs-matching-clang` is misleading[/+] on Jun 9, 2024
  4. Zalathar commented on Jun 9, 2024

    @Zalathar
    MemberAuthor

    Looks like there are a few tests that are broken, as a result of not actually being run in CI:

    #126155 (comment)

  5. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.
    C-bugCategory: This is a bug.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Jun 9, 2024
  6. added a commit that references this issue on Jun 11, 2024
  7. added a commit that references this issue on Jun 11, 2024
  8. Zalathar commented on Jun 13, 2024

    @Zalathar
    MemberAuthor

    Mitigated by #126257; fixing the remaining tests can be tracked by #126375.

  9. added a commit that references this issue on Jul 31, 2024
  10. added a commit that references this issue on Jul 31, 2024
  11. added 4 commits that reference this issue on Aug 1, 2024
  12. added 3 commits that reference this issue on Aug 2, 2024
  13. added a commit that references this issue on Aug 3, 2024
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

    A-compiletestArea: The compiletest test runnerA-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions