Skip to content

Toolstate tracking is broken #73274

Closed

Description

@RalfJung

./x.py test --stage 0 src/tools/miri fails currently due to #73272. However, the toolstate is green nevertheless. Looks like somehow toolstate tracking is broken.

Due to this, we currently ship a broken Miri via rustup.

Cc @rust-lang/infra @Mark-Simulacrum @kennytm

Activity

  1. added
    P-high
    T-infra
    on Jun 12, 2020
  2. oli-obk commented on Jun 12, 2020

    @oli-obk
    Contributor
  3. RalfJung commented on Jun 12, 2020

    @RalfJung
    MemberAuthor

    Yeah that's expected, the dist builders only build the tools and do not test them. The tools builder tests them.

    Manifest creation (when the final toolchain is added to rustup, as part of auto -> master promotion) reads the toolstate JSON files and omits Miri if its tests failed. (So far, no other tool opted into using that system, as far as I know.)

  4. RalfJung commented on Jun 12, 2020

    @RalfJung
    MemberAuthor
  5. oli-obk commented on Jun 12, 2020

    @oli-obk
    Contributor

    It runs the miri tests here and shows that they fail. The toolstate processing after that is just not verbose enough to tell us what's up

  6. RalfJung commented on Jun 12, 2020

    @RalfJung
    MemberAuthor

    It says

    2020-06-11T20:43:41.5188357Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test --no-fail-fast src/doc/book src/doc/nomicon src/doc/reference src/doc/rust-by-example src/doc/embedded-book src/doc/edition-guide src/tools/clippy src/tools/rls src/tools/rustfmt src/tools/miri
    

    But that did not even get to Miri. It stopped after another test failure:

    2020-06-11T20:43:00.3764050Z test [ui] ui/empty_line_after_outer_attribute.rs ... FAILED
    

    I think that's a clippy test. So what likely happened is that a clippy test failed, but for some reason, instead of aborting CI, that lead to all tools being marked as test-pass...

  7. RalfJung commented on Jun 12, 2020

    @RalfJung
    MemberAuthor

    It runs the miri tests here and shows that they fail.

    That line says Verifying status of book...? And above some tests fail, but those are not Miri's tests.

  8. oli-obk commented on Jun 12, 2020

    @oli-obk
    Contributor

    Oh... right... maybe clippy tests failing cause all other tools not to get tested at all, thus leading to "successful" test results

  9. RalfJung commented on Jun 12, 2020

    @RalfJung
    MemberAuthor

    And, notably, clippy tests failing do not block the PR from landing!

  10. oli-obk commented on Jun 12, 2020

    @oli-obk
    Contributor

    oh... right 🤦

    so... let's do this PR and figure out things in another try?

    @bors rollup-

  11. RalfJung commented on Jun 12, 2020

    @RalfJung
    MemberAuthor

    @bors rollup-

    You did this in an issue, not sure what that is going to accomplish. :D

  12. oli-obk commented on Jun 12, 2020

    @oli-obk
    Contributor

    oops. I thought we were on the PR

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

    P-highT-infra

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions