Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[beta] Automaticaly calculate beta prerelease numbers #47396
Conversation
rust-highfive
assigned
aturon
Jan 12, 2018
This comment has been minimized.
This comment has been minimized.
|
r? @aturon (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
r? @kennytm |
rust-highfive
assigned
kennytm
and unassigned
aturon
Jan 12, 2018
This comment has been minimized.
This comment has been minimized.
|
FWIW code looks reasonable to me. |
shepmaster
added
the
S-waiting-on-review
label
Jan 13, 2018
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
kennytm
reviewed
Jan 13, 2018
| self.try_run_quiet( | ||
| Command::new("git") | ||
| .arg("fetch") | ||
| .arg("--unshallow"), |
This comment has been minimized.
This comment has been minimized.
kennytm
Jan 13, 2018
•
Member
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.
This comment has been minimized.
This comment has been minimized.
alexcrichton
Jan 13, 2018
Author
Member
Gah right good point, what a bummer! I think I may try to fold this into the init_repo.sh script perhaps.
alexcrichton
force-pushed the
alexcrichton:beta-next
branch
2 times, most recently
from
edd1a2f
to
8152a1c
Jan 13, 2018
This comment has been minimized.
This comment has been minimized.
|
re r? @kennytm |
This comment has been minimized.
This comment has been minimized.
|
Travis's still failing. Try |
kennytm
approved these changes
Jan 13, 2018
|
r=me after Travis can successfully run |
alexcrichton
force-pushed the
alexcrichton:beta-next
branch
from
8152a1c
to
41bd3ce
Jan 14, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors: r=kennytm alright let's see if that works |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors r- Travis is still failing |
kennytm
reviewed
Jan 14, 2018
| .arg("origin") | ||
| .arg("beta") | ||
| ); | ||
| let beta = beta.trim().split(' ').next().unwrap(); |
This comment has been minimized.
This comment has been minimized.
kennytm
Jan 14, 2018
Member
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
force-pushed the
alexcrichton:beta-next
branch
from
41bd3ce
to
a57032f
Jan 14, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors: r=kennytm Oops indeed! |
This comment has been minimized.
This comment has been minimized.
|
|
kennytm
reviewed
Jan 14, 2018
| @@ -346,6 +348,7 @@ impl Build { | |||
|
|
|||
| /// Executes the entire build, as configured by the flags and configuration. | |||
| pub fn build(&mut self) { | |||
| println!("{}", self.beta_prerelease_version()); | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
alexcrichton
force-pushed the
alexcrichton:beta-next
branch
from
a57032f
to
9426dda
Jan 14, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors: r=kennytm |
This comment has been minimized.
This comment has been minimized.
|
|
kennytm
added
the
S-waiting-on-bors
label
Jan 14, 2018
kennytm
removed
the
S-waiting-on-review
label
Jan 14, 2018
This comment has been minimized.
This comment has been minimized.
|
@bors p=4 |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jan 17, 2018
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry
I think those macs are having a bad day... |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jan 18, 2018
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton commentedJan 12, 2018
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.