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

add fallback logic to git_upstream_merge_base #137994

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

onur-ozkan
Copy link
Member

Fixes #101907

cc @RalfJung

@rustbot
Copy link
Collaborator

rustbot commented Mar 4, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Mar 4, 2025
@onur-ozkan onur-ozkan force-pushed the git-first-parent-fallback branch 2 times, most recently from 8395e9b to 3ea9ed3 Compare March 4, 2025 12:09
Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan onur-ozkan force-pushed the git-first-parent-fallback branch from 3ea9ed3 to ee18c39 Compare March 4, 2025 12:10
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am personally reluctant to poke this in a hot-fix kind of way. CI does need different treatment, but merge-base being needed only in CI seems highly suspicious to me. I don't think we've landed on the right strategy for commit discovery, and I worry about incrementally adding conditions to it without a cohesive narrative on what we're trying to accomplish and without tests (even manual ones!).

// outdated very quickly.
"HEAD".to_string()
{
git_upstream_merge_base(config, git_dir).unwrap()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in my comment (#101907 (comment), footnote 1) this never executes in practice in (our) CI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure? We are running that on every pipeline (unless it's beta/stable channel) as far as I know.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As Mark explained, channel is "nightly\n", so I don't think we are...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooh, what the hack... lol

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe that is the reason why sometimes CI fails?

@onur-ozkan
Copy link
Member Author

I am personally reluctant to poke this in a hot-fix kind of way. CI does need different treatment, but merge-base being needed only in CI seems highly suspicious to me. I don't think we've landed on the right strategy for commit discovery, and I worry about incrementally adding conditions to it without a cohesive narrative on what we're trying to accomplish and without tests (even manual ones!).

I am fine with not merging this right away. I tried to unblock the contribution roadblock with the first solution that came to my mind but I agree that if it's not very critical, it's better not to apply a workaround.

@bors
Copy link
Contributor

bors commented Mar 7, 2025

☔ The latest upstream changes (presumably #138127) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge commits break LLVM CI download
5 participants