Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

build/bootstrap/.last-warned-change-id gets removed by workaround for #125578 #130449

Description

@lolbinarycat

bootstrap.py contains this snippet:

                # FIXME: A cheap workaround for https://github.com/rust-lang/rust/issues/125578,
                # remove this once the issue is closed.
                bootstrap_out = self.bootstrap_out()
                if os.path.exists(bootstrap_out):
                    shutil.rmtree(bootstrap_out)

                p.map(unpack_component, tarballs_download_info)

when updating to a new master, bootstrap gets rebuilt, causing the "last warned change id" file to be deleted, so you see all the "new changes to x.py", even if there are no new changes to x.py.

Activity

  1. added
    needs-triage
    on Sep 16, 2024
  2. added
    T-bootstrap
    on Sep 17, 2024
  3. added
    C-bug
    on Sep 17, 2024
  4. removed
    needs-triage
    on Sep 17, 2024
  5. added a commit that references this issue on Sep 27, 2024
  6. added a commit that references this issue on Sep 27, 2024
  7. lolbinarycat commented on Jul 10, 2025

    @lolbinarycat
    ContributorAuthor

    We are deleting .last-warned-change-id again.

    We probably want to write a regression test this time.

  8. Kobzol commented on Jul 12, 2025

    @Kobzol
    Member

    I wonder if we should just write that file to the source root and add it to .gitignore.. 🤔

  9. Kobzol commented on Jul 12, 2025

    @Kobzol
    Member

    Could you post some reproduction of how was the file deleted for you?

  10. lolbinarycat commented on Jul 12, 2025

    @lolbinarycat
    ContributorAuthor

    @Kobzol just running ./x clean deletes it (but not .rustc_info.json, weirdly).

    just tested and reproduced on bfc046a

    here's the config:

    profile = "tools"  # Includes one of the default files in src/bootstrap/defaults
    change-id = 143300
    
    rust.debuginfo-level = 1
    #rust.jemalloc = true
    rust.download-rustc = false
    rust.deny-warnings = false
    build.docs-minification = false
    #build.incremental = false
    build.tidy-extra-checks = "auto:py"
  11. Kobzol commented on Jul 12, 2025

    @Kobzol
    Member

    Looks like it's kind of expected?

    rm_rf(&build.out.join("bootstrap").join(".last-warned-change-id"));

  12. lolbinarycat commented on Jul 12, 2025

    @lolbinarycat
    ContributorAuthor

    strange, wonder why that is...

    I mean, the change-id system isn't actually super reliable, because PRs aren't always merged in the order they are opened, but removing .last-warned-change-id doesn't really seem like the best answer to that.

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

    C-bugT-bootstrap

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions