Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch origin HEAD on checkout #1684

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

Mark-Simulacrum
Copy link
Member

This ensures that git merge-base can find the right merge point; otherwise, our history looks to have diverged when the original checkout was made, which might be years ago.

cc @RalfJung rust-lang/rust#101907

This ensures that git merge-base can find the right merge point;
otherwise, our history looks to have diverged when the original checkout
was made, which might be years ago.
@Mark-Simulacrum
Copy link
Member Author

Before we merge we should do some testing to try to figure out the right incantation. I think HEAD might do the wrong thing here, we might need git fetch origin master as the invocation...

@RalfJung
Copy link
Member

RalfJung commented Aug 2, 2023

Oh so this has an origin/master branch, but it is ancient, and new things are fetched in a way that does not update that remove? Yeah that would cause problems.

Just not having that branch is the other alternative, then my PR will fall back to the old logic.

@RalfJung
Copy link
Member

@Mark-Simulacrum @lqd what is the status of this? I just ran into rust-lang/rust#101907 again...

collector/src/compile/execute/rustc.rs Outdated Show resolved Hide resolved
Co-authored-by: Rémy Rakic <[email protected]>
@Mark-Simulacrum Mark-Simulacrum enabled auto-merge (squash) August 31, 2023 13:23
@Mark-Simulacrum Mark-Simulacrum merged commit 4393fa0 into rust-lang:master Aug 31, 2023
9 checks passed
@Mark-Simulacrum Mark-Simulacrum deleted the fix-merge-base branch August 31, 2023 13:30
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 2, 2023
bootstrap: use git merge-base for LLVM CI download logic

This re-lands rust-lang#113588, now that the perf issues are hopefully fixed by rust-lang/rustc-perf#1684.
r? `@lqd` `@Mark-Simulacrum`

Fixes rust-lang#101907
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Sep 3, 2023
bootstrap: use git merge-base for LLVM CI download logic

This re-lands rust-lang/rust#113588, now that the perf issues are hopefully fixed by rust-lang/rustc-perf#1684.
r? `@lqd` `@Mark-Simulacrum`

Fixes rust-lang/rust#101907
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants