Skip to content

run-make regression test for issue #70924. #72952

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jun 7, 2020

Conversation

pnkfelix
Copy link
Member

@pnkfelix pnkfelix commented Jun 3, 2020

Sometime after my PR #72767 (to fix issue #70924) landed, I realized that I could make a local regression test, thanks to rustc --print sysroot: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 3, 2020
@pnkfelix pnkfelix changed the title run-make regression test for issue #70924. [WIP] run-make regression test for issue #70924. Jun 3, 2020
@pnkfelix
Copy link
Member Author

pnkfelix commented Jun 4, 2020

(okay it looks like this test won't break the windows build. I'll remove the test commit pnkfelix@56d185f now )

@pnkfelix pnkfelix force-pushed the regression-test-for-issue-70924 branch from 56d185f to 94605b9 Compare June 4, 2020 12:57
@pnkfelix pnkfelix changed the title [WIP] run-make regression test for issue #70924. run-make regression test for issue #70924. Jun 4, 2020
@pnkfelix pnkfelix added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 4, 2020
@nikomatsakis
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 4, 2020

📌 Commit 94605b9 has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 4, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jun 5, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jun 5, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
@mati865
Copy link
Member

mati865 commented Jun 5, 2020

Failed in rollup: https://dev.azure.com/rust-lang/rust/_build/results?buildId=31133&view=logs&j=a6a2dd6f-5140-5fa9-b933-dfe57be2bdd5&t=53c32ceb-c4c2-54e8-ee5b-d47a390af72f

make[1]: Entering directory '/d/a/1/s/src/test/run-make-fulldeps/incr-add-rust-src-component'
mkdir /d/a/1/s/build/x86_64-pc-windows-msvc/test/run-make-fulldeps/incr-add-rust-src-component/incr-add-rust-src-component/fakeroot
ln -s C:\MORE_SPACE\x86_64-pc-windows-msvc\stage2/* /d/a/1/s/build/x86_64-pc-windows-msvc/test/run-make-fulldeps/incr-add-rust-src-component/incr-add-rust-src-component/fakeroot
make[1]: Leaving directory '/d/a/1/s/src/test/run-make-fulldeps/incr-add-rust-src-component'

------------------------------------------
stderr:
------------------------------------------
ln: failed to create symbolic link '/d/a/1/s/build/x86_64-pc-windows-msvc/test/run-make-fulldeps/incr-add-rust-src-component/incr-add-rust-src-component/fakeroot/*': No such file or directory
make[1]: *** [Makefile:25: all] Error 1

@Dylan-DPC-zz
Copy link

@bors r-

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 5, 2020
@pnkfelix
Copy link
Member Author

pnkfelix commented Jun 5, 2020

argh, I specifically thought I tested windows-msvc in pnkfelix@56d185f

I'll see what I can do about making this test only run on compatible platforms. And also check with the infrastructure team about what I did wrong in my attempt to do a test run.

@pnkfelix
Copy link
Member Author

pnkfelix commented Jun 5, 2020

@bors r=nikomatsakis rollup

@bors
Copy link
Collaborator

bors commented Jun 5, 2020

📌 Commit a9d5dff has been approved by nikomatsakis

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 5, 2020
@pnkfelix
Copy link
Member Author

pnkfelix commented Jun 5, 2020

argh, I specifically thought I tested windows-msvc in pnkfelix@56d185f

I'll see what I can do about making this test only run on compatible platforms. And also check with the infrastructure team about what I did wrong in my attempt to do a test run.

(the answer to what I did wrong: I added my test commit, but I never actually asked bors to do a try run! 🤦)

Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jun 5, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jun 5, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jun 6, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Jun 6, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
RalfJung added a commit to RalfJung/rust that referenced this pull request Jun 6, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
RalfJung added a commit to RalfJung/rust that referenced this pull request Jun 6, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
RalfJung added a commit to RalfJung/rust that referenced this pull request Jun 6, 2020
…70924, r=nikomatsakis

run-make regression test for issue rust-lang#70924.

Sometime after my PR rust-lang#72767 (to fix issue rust-lang#70924) landed, I realized that I *could* make a local regression test, thanks to `rustc --print sysroot`: I can make a fresh "copy" (really mostly symlinks) of the sysroot, and then modify it to recreate the terms of this bug.
@RalfJung
Copy link
Member

RalfJung commented Jun 6, 2020

This is one of only a few PRs that are in the intersection of 4 rollups that all failed the same way: #72952, #72977, #73007.

The failure is on 32bit Windows, a bunch of tests show

------------------------------------------
stderr:
------------------------------------------
thread 'rustc' panicked at 'assertion failed: self.ptr <= self.end', D:\a\1\s\src\libstd\macros.rs:13:23
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The line number is utterly useless, it points to the macro definition (how is that possible?!?).

Affected tests:

failures:
    [ui] ui\fn\expr-fn-panic.rs
    [ui] ui\imports\glob-use-std.rs
    [ui] ui\macros\die-macro-2.rs
    [ui] ui\macros\die-macro-pure.rs
    [ui] ui\macros\unimplemented-macro-panic.rs
    [ui] ui\macros\unreachable-macro-panic.rs
    [ui] ui\macros\unreachable.rs
    [ui] ui\meta-revision-ok.rs#bar
    [ui] ui\meta-revision-ok.rs#foo
    [ui] ui\mir\mir_codegen_calls_diverging.rs
    [ui] ui\panics\doublepanic.rs
    [ui] ui\panics\explicit-panic.rs
    [ui] ui\panics\main-panic.rs
    [ui] ui\panics\panic-macro-explicit.rs
    [ui] ui\panics\panic-macro-owned.rs
    [ui] ui\panics\panic-macro-static.rs
    [ui] ui\panics\panic-main.rs
    [ui] ui\rfc-1937-termination-trait\termination-trait-for-never.rs

All 3 PRs in the intersection seem impossible to be the cause here, so I'd appreciate help with figuring out what is going on.^^

@Dylan-DPC-zz
Copy link

I am going to put 2 of them in a rollup so we can bisect (or trisect) which PR is causing the failure

@Dylan-DPC-zz
Copy link

@bors rollup=maybe

bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 7, 2020
Rollup of 2 pull requests

Successful merges:

 - rust-lang#72952 (run-make regression test for issue rust-lang#70924.)
 - rust-lang#72977 (Fix codegen tests for RISC-V)

Failed merges:

r? @ghost
@bors bors merged commit b733368 into rust-lang:master Jun 7, 2020
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Dec 26, 2024
…-component, r=wesleywiser

Migrate `incr-add-rust-src-component` to rmake

This PR partially supersedes rust-lang#128562, and ports the Makefile-based `tests/run-make/incr-add-rust-src-component` to use rmake.rs infra.

Part of rust-lang#121876.

This run-make test is a regression test for rust-lang#70924. It (tries to) checks that if we add the `rust-src` component in between two incremental compiles, that the compiler doesn't ICE on the second invocation.

- Original issue:rust-lang#70924
- Fix PR: rust-lang#72767
- PR adding this regression test: rust-lang#72952

However, the Makefile version of this used `$SYSROOT/lib/rustlib/src/rust/src/libstd/lib.rs`, but that actually got moved around and reorganized over the years. As of Dec 2024, the `rust-src` component is more like (specific for our purposes):

```
$SYSROOT/lib/rustlib/src/rust/
    library/std/src/lib.rs
    src/
```

However, this run-make test is ancient and it exercises incr-comp system logic. I'm not sure if this test would actually catch the original regression.

This PR was co-authored with `@Oneirical.`

r? incremental

try-job: i686-msvc
try-job: x86_64-mingw-1
try-job: x86_64-msvc
try-job: aarch64-apple
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Dec 26, 2024
Rollup merge of rust-lang#134656 - jieyouxu:migrate-incr-add-rust-src-component, r=wesleywiser

Migrate `incr-add-rust-src-component` to rmake

This PR partially supersedes rust-lang#128562, and ports the Makefile-based `tests/run-make/incr-add-rust-src-component` to use rmake.rs infra.

Part of rust-lang#121876.

This run-make test is a regression test for rust-lang#70924. It (tries to) checks that if we add the `rust-src` component in between two incremental compiles, that the compiler doesn't ICE on the second invocation.

- Original issue:rust-lang#70924
- Fix PR: rust-lang#72767
- PR adding this regression test: rust-lang#72952

However, the Makefile version of this used `$SYSROOT/lib/rustlib/src/rust/src/libstd/lib.rs`, but that actually got moved around and reorganized over the years. As of Dec 2024, the `rust-src` component is more like (specific for our purposes):

```
$SYSROOT/lib/rustlib/src/rust/
    library/std/src/lib.rs
    src/
```

However, this run-make test is ancient and it exercises incr-comp system logic. I'm not sure if this test would actually catch the original regression.

This PR was co-authored with `@Oneirical.`

r? incremental

try-job: i686-msvc
try-job: x86_64-mingw-1
try-job: x86_64-msvc
try-job: aarch64-apple
poliorcetics pushed a commit to poliorcetics/rust that referenced this pull request Dec 28, 2024
…-component, r=wesleywiser

Migrate `incr-add-rust-src-component` to rmake

This PR partially supersedes rust-lang#128562, and ports the Makefile-based `tests/run-make/incr-add-rust-src-component` to use rmake.rs infra.

Part of rust-lang#121876.

This run-make test is a regression test for rust-lang#70924. It (tries to) checks that if we add the `rust-src` component in between two incremental compiles, that the compiler doesn't ICE on the second invocation.

- Original issue:rust-lang#70924
- Fix PR: rust-lang#72767
- PR adding this regression test: rust-lang#72952

However, the Makefile version of this used `$SYSROOT/lib/rustlib/src/rust/src/libstd/lib.rs`, but that actually got moved around and reorganized over the years. As of Dec 2024, the `rust-src` component is more like (specific for our purposes):

```
$SYSROOT/lib/rustlib/src/rust/
    library/std/src/lib.rs
    src/
```

However, this run-make test is ancient and it exercises incr-comp system logic. I'm not sure if this test would actually catch the original regression.

This PR was co-authored with `@Oneirical.`

r? incremental

try-job: i686-msvc
try-job: x86_64-mingw-1
try-job: x86_64-msvc
try-job: aarch64-apple
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants