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
CONTRIBUTING.md shouldn't suggest submodules pinned to PRs #44597
Comments
cc @oli-obk |
While PRs go away, when they are merged, their commits stay. There's essentially no difference to creating a branch in each repo, other than that a PR could be closed or rebased. The same is true for branches, but less common. We could require a locked "upstream" branch in each tool's repository, but that would not really work in the presence of multiple PRs that change the submodule. These PRs would have to be ordered then. I don't think that's realistic. We will merge any clippy PRs the moment the rust PR is merged to ensure the commits never get lost, but I don't see what else we can do. |
That's not true if a PR is rebased, which happens very frequently. And yes up to now we've just created long-lived branches in upstream repos, for example see the LLVM repo. |
Github will deny loading a commit ID which isn't in a current PR. The moment you rebase in clippy, Rust's Travis will fail to load the old commit. So the rebase would have to happen after Rust's CI passes, but before we merge in clippy. If this is still too volatile, I'll figure out how to create branches easily. Maybe we can automatically create branches from PRs with some keyword in their description. I want to reduce the interactions required by tool maintainers to a minimum, so rust contributors don't have to wait for timezones or anything |
That's true, yes, but I think this is still too fragile because often development can happen on the master branch while a PR is waiting to land, and that may mean by the time the Rust PR is merged the clippy PR needs a rebase to land on clippy master.
My thinking is that the "easy path" here is to just disable submodules building (via |
Triage: so, what's the conclusion here? Happy to document whatever is decided. |
Traige: p-low, since i still don't have an answer ;) |
Triage: still waiting on what's to be decided, tagging in @rust-lang/compiler |
That's not a problem, We allow merging in the clippy repo. So instead of rebasing the PR you'd just merge master into it. @steveklabnik I don't think there was any concious decision. But a system evolved:
|
Great! Closing. |
Right now the documentation suggests updating a submodule to the commit in a PR, but we want the submodules in the rust-lang/rust repository to be as long-lived as possible, in theory allowing you to check out rust-lang/rust at any point in time and run the build. PRs, however, will go away!
The text was updated successfully, but these errors were encountered: