Skip to content

Bootstrap re-builds everything after "x.py check" #130108

Closed

Description

@RalfJung

Some time over the last days, this started happening:

$ ./x.py test ui --bless -- null
$ ./x.py check miri
$ ./x.py test ui --bless -- null

The third invocation should finish immediately, but instead it rebuilds everything. So what is usually a 1s edit-test cycle now takes a full minute.

Cc @rust-lang/bootstrap

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 8, 2024
  2. added
    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to Rust
    on Sep 8, 2024
  3. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    on Sep 8, 2024
  4. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Sep 8, 2024
  5. onur-ozkan commented on Sep 8, 2024

    @onur-ozkan
    Contributor

    I wonder if #128871 has anything to do with this.

  6. RalfJung commented on Sep 8, 2024

    @RalfJung
    MemberAuthor
  7. RalfJung commented on Sep 9, 2024

    @RalfJung
    MemberAuthor

    Should we revert that PR then? Or is there some other short-term fix?

    This is a significant hurdle for rustc development right now.

  8. Kobzol commented on Sep 9, 2024

    @Kobzol
    Member

    I suppose that we could for now just skip the check command from #128871. I tried the three commands that you have posted, and the last command did not rebuild anything (or rather, everything was fresh). What code should I modify between running these commands to reproduce the behavior that the third command rebuilds a lot of stuff?

  9. Kobzol commented on Sep 9, 2024

    @Kobzol
    Member

    Nevermind, I reproduced it. And the fix with removing check from configuring the linker works. I'll send a PR.

  10. onur-ozkan commented on Sep 9, 2024

    @onur-ozkan
    Contributor

    I think excluding check is quite good short-term fix.

  11. added a commit that references this issue on Sep 9, 2024
  12. added a commit that references this issue on May 4, 2025
  13. added a commit that references this issue on May 5, 2025
  14. added 2 commits that reference this issue on May 5, 2025
  15. added a commit that references this issue on May 6, 2025
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-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustT-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions