Skip to content

download-rustc fails to detect when profiler settings differ from local settings #133675

Closed

Description

@RalfJung

See #133499 (comment) for context: the x86_64-gnu-aux runner builds rustc without profiling support. The CI build that is downloaded via download-rustc does have profiling support. This means if a test relies on profiling support, it will incorrectly pass on x86_64-gnu-aux if download-rustc is used, only to fail later on an unrelated PR when download-rustc cannot be used.

bootstrap tries to ensure that all the settings are the same between the local configuration and the prebuilt rustc, but that does not seem to fully work.

Cc @onur-ozkan

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 30, 2024
  2. RalfJung commented on Nov 30, 2024

    @RalfJung
    MemberAuthor

    @onur-ozkan wrote

    That PR doesn't change any contig at all? I guess we are on different points, I am talking about config.toml here.

    The PR doesn't change the config indeed. x86_64-gnu-aux locally changes its config in CI (if I understood correctly). The download-rustc logic should detect that and never use the prebuilt rustc on that runner, since it was built with a different configuration than what is being locally set up.

  3. onur-ozkan commented on Nov 30, 2024

    @onur-ozkan
    Contributor

    Probably, this happens because we are not checking "--set" flags yet.

  4. added
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-bugCategory: This is a bug.
    A-download-rustcArea: The `rust.download-rustc` build option.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Dec 1, 2024
  5. onur-ozkan commented on Dec 1, 2024

    @onur-ozkan
    Contributor

    "profiler" option is not part of the "rust" section in config.toml, which is why it was missed in the config compatibility check logic (it was designed to check "rust" section only). #133705 makes it to be handled properly.

  6. added a commit that references this issue on Dec 2, 2024
    7d67af9
  7. added a commit that references this issue on Dec 3, 2024
    3c8a7ec
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-download-rustcArea: The `rust.download-rustc` build option.C-bugCategory: This is a bug.T-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