You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue to track the problem described on PR #45
Demonstration:
Here is a file that does not expose any regression in rustc (or cargo):
src/main.rs:
fnmain(){println!("Hello world");}
Here is a transcript of my interactions in the shell (note the use of -v -v to observe the actual runs and their output):
% rustup default
nightly-x86_64-apple-darwin (default)
% rustc --version
rustc 1.43.0-nightly (e620d0f33 2020-02-18)
% cargo-bisect-rustc --start 2020-02-17 -v -v
checking nightly-2020-02-17
std for x86_64-apple-darwin: 16.47 MB / 16.47 MB [=========] 100.00 % 4.91 MB/s Compiling bisect-area v0.1.0 (/Users/felixklock/Dev/Mozilla/bisect-area)
Finished dev [unoptimized + debuginfo] target(s) in 1.03s
uninstalling nightly-2020-02-17
verifying the start of the range does not reproduce the regression
std for x86_64-apple-darwin: 16.47 MB / 16.47 MB [=========] 100.00 % 4.57 MB/s Compiling bisect-area v0.1.0 (/Users/felixklock/Dev/Mozilla/bisect-area)
Finished dev [unoptimized + debuginfo] target(s) in 0.97s
uninstalling nightly-2020-02-17
tested nightly-2020-02-17, got No
confirmed the start of the range does not reproduce the regression
verifying the end of the range reproduces the regression
error: toolchain 'bisector-nightly-2020-02-18-x86_64-apple-darwin' is not installed
tested nightly-2020-02-18, got Yes
confirmed the end of the range reproduces the regression
searched toolchains nightly-2020-02-17 through nightly-2020-02-18
error: toolchain 'bisector-nightly-2020-02-18-x86_64-apple-darwin' is not installed
regression in nightly-2020-02-18
fetching https://static.rust-lang.org/dist/2020-02-18/channel-rust-nightly-git-commit-hash.txt
nightly manifest 2020-02-18: 40 B / 40 B [================] 100.00 % 66.08 KB/s converted 2020-02-18 to 0176a9eef845e7421b7e2f7ef015333a41a7c027
fetching https://static.rust-lang.org/dist/2020-02-17/channel-rust-nightly-git-commit-hash.txt
nightly manifest 2020-02-17: 40 B / 40 B [===============] 100.00 % 105.10 KB/s converted 2020-02-17 to 5e7af4669f80e5f682141f050193ab679afdb4b1
looking for regression commit between 2020-02-18 and 2020-02-17
This is the problematic part of the transcript:
verifying the end of the range reproduces the regression
error: toolchain 'bisector-nightly-2020-02-18-x86_64-apple-darwin' is not installed
tested nightly-2020-02-18, got Yes
That is, a internal bug in cargo-bisect-rustc leads to a problem with a particular rustc +{} ... invocation (where it substitutes bisector-nightly-2020-02-18 for {}) and then cargo-bisect-rustc treats the failure of that invocation as a regression, rather than a problem external to rustc/cargo.
The text was updated successfully, but these errors were encountered:
pnkfelix
added a commit
to pnkfelix/cargo-bisect-rustc
that referenced
this issue
Feb 21, 2020
Before, we would just skip attempts to install a current nightly. (And then, we
would unconditionally fail the run as documented on issue rust-lang#54, regardless
whether of whether the regression was actually visible on that version, due to
it not being installed with the name "bisector-nightly-xxx" that we expect.)
This commit fixes that. It makes `install` call out to `rustup toolchain link`
to link the currently installed nightly up to the new new "bisector-nightly-xxx"
that we expect.
(I also refactored the code to construct `DownloadParams`, so that I could add a
comment in only one place noting an invariant that this commit is relying on.)
Before, we would just skip attempts to install a current nightly. (And then, we
would unconditionally fail the run as documented on issue rust-lang#54, regardless
whether of whether the regression was actually visible on that version, due to
it not being installed with the name "bisector-nightly-xxx" that we expect.)
This commit fixes that. It makes `install` call out to `rustup toolchain link`
to link the current rustc (as reported via `rustc --print sysroot`) up to the
new "bisector-nightly-xxx" that we expect.
(I also refactored the code to construct `DownloadParams`; that refactoring was
more relevant in an earlier version of the code that was linking in a different
(buggy) way.)
This is an issue to track the problem described on PR #45
Demonstration:
Here is a file that does not expose any regression in
rustc
(orcargo
):src/main.rs:
Here is a transcript of my interactions in the shell (note the use of
-v -v
to observe the actual runs and their output):This is the problematic part of the transcript:
That is, a internal bug in
cargo-bisect-rustc
leads to a problem with a particularrustc +{} ...
invocation (where it substitutesbisector-nightly-2020-02-18
for{}
) and thencargo-bisect-rustc
treats the failure of that invocation as a regression, rather than a problem external torustc
/cargo
.The text was updated successfully, but these errors were encountered: