Uh oh!
There was an error while loading. Please reload this page.
[beta] Automaticaly calculate beta prerelease numbers - #47396
Conversation
rust-highfive
commented
Jan 12, 2018
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
rust-highfive
commented
Jan 12, 2018
alexcrichton
commented
Jan 12, 2018
r? @kennytm |
shepmaster
commented
Jan 13, 2018
FWIW code looks reasonable to me. |
bors
commented
Jan 13, 2018
☔ The latest upstream changes (presumably #47399) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Jan 13, 2018
🔒 Merge conflict |
There was a problem hiding this comment.
Since the bootstrap is running inside Docker where the repository is mount as read-only, I'm not sure if git fetch --unshallow will succeed.
This command may need to be run before the docker is built (before src/ci/docker/run.sh finishes), but it should only be run in the beta channel.
There was a problem hiding this comment.
Gah right good point, what a bummer! I think I may try to fold this into the init_repo.sh script perhaps.
edd1a2f to
8152a1cComparealexcrichton
commented
Jan 13, 2018
re r? @kennytm |
kennytm
commented
Jan 13, 2018
Travis's still failing. Try |
kennytm
left a comment
There was a problem hiding this comment.
r=me after Travis can successfully run tidy (or is green).
alexcrichton
commented
Jan 14, 2018
@bors: r=kennytm alright let's see if that works |
bors
commented
Jan 14, 2018
📌 Commit 41bd3ce has been approved by |
kennytm
commented
Jan 14, 2018
@bors r- Travis is still failing |
There was a problem hiding this comment.
Perhaps use split_whitespace() here. The parts are separated by tabs.
[00:02:47] fatal: Not a valid object name bb9be9ecc0b2501802e50a5c35be14e539be1638 refs/heads/beta
[00:02:47] thread 'main' panicked at 'command did not execute successfully: "git" "merge-base" "bb9be9ecc0b2501802e50a5c35be14e539be1638\trefs/heads/beta" "e6072a7b3835f1875e81c9fd27799f9b20a0770c\trefs/heads/master"
alexcrichton
commented
Jan 14, 2018
@bors: r=kennytm Oops indeed! |
bors
commented
Jan 14, 2018
📌 Commit a57032f has been approved by |
There was a problem hiding this comment.
This is not essential, but maybe remove this println!?
There was a problem hiding this comment.
Er sorry yeah that was just debugging
This commit automatically calculates the beta prerelease number meaning we'll no longer need to manually change the beta version. Instead beta will automatically deploy any time a backport is merged, ensuring that backports are released for testing ASAP. More details about this can be found on the internal [forums] The only bit of trickiness here was that on CI we do shallow clones by default but the git history probing here requires some more information. Do cope with that this commit chooses the strategy of converting the repository to a full clone via the `--unshallow` flag to `git`. That way this should work for local developers as well as CI changes. Note that this commit is coming first to the beta branch to test it, and if successful we can go back and land it on master. [forums]: https://internals.rust-lang.org/t/tweaking-how-betas-are-produced/6526
alexcrichton
commented
Jan 14, 2018
@bors: r=kennytm |
bors
commented
Jan 14, 2018
📌 Commit 9426dda has been approved by |
kennytm
commented
Jan 17, 2018
@bors p=4 |
bors
commented
Jan 17, 2018
⌛ Testing commit 9426dda with merge 3732f64354c3b77ee728a0797a1a496724d47eea... |
bors
commented
Jan 18, 2018
💔 Test failed - status-travis |
alexcrichton
commented
Jan 18, 2018
@bors: retry I think those macs are having a bad day... |
bors
commented
Jan 18, 2018
[beta] Automaticaly calculate beta prerelease numbers This commit automatically calculates the beta prerelease number meaning we'll no longer need to manually change the beta version. Instead beta will automatically deploy any time a backport is merged, ensuring that backports are released for testing ASAP. More details about this can be found on the internal [forums] The only bit of trickiness here was that on CI we do shallow clones by default but the git history probing here requires some more information. Do cope with that this commit chooses the strategy of converting the repository to a full clone via the `--unshallow` flag to `git`. That way this should work for local developers as well as CI changes. Note that this commit is coming first to the beta branch to test it, and if successful we can go back and land it on master. [forums]: https://internals.rust-lang.org/t/tweaking-how-betas-are-produced/6526
bors
commented
Jan 18, 2018
☀️ Test successful - status-appveyor, status-travis |
We got rust-lang#47396 merged but it looks like rcs failed to deploy the beta because when it tried to calculate the beta version its cwd was different. Let's try to fix this bug and fix auto-deploy by explicitly setting the `current_dir` for git commands.
We got rust-lang#47396 merged but it looks like rcs failed to deploy the beta because when it tried to calculate the beta version its cwd was different. Let's try to fix this bug and fix auto-deploy by explicitly setting the `current_dir` for git commands.
This commit automatically calculates the beta prerelease number meaning we'll no
longer need to manually change the beta version. Instead beta will automatically
deploy any time a backport is merged, ensuring that backports are released for
testing ASAP. More details about this can be found on the internal forums
The only bit of trickiness here was that on CI we do shallow clones by default
but the git history probing here requires some more information. Do cope with
that this commit chooses the strategy of converting the repository to a full
clone via the
--unshallowflag togit. That way this should work for localdevelopers as well as CI changes.
Note that this commit is coming first to the beta branch to test it, and if
successful we can go back and land it on master.