tests: fix: parallel frontend test failures: different alloc ids#156716
Conversation
This comment has been minimized.
This comment has been minimized.
f681281 to
5abbf45
Compare
|
|
|
Reminder, once the PR becomes ready for a review, use |
5abbf45 to
bb760c1
Compare
|
@rustbot ready |
|
r? @RalfJung My assumptions were that
So it's better to just normalize the IDs away and enable these tests during parallel frontend testing, instead of ignoring them or waiting for some potential fix in the compiler. |
|
|
This comment has been minimized.
This comment has been minimized.
Spurious failure. |
|
A while back @oli-obk wrote some code somewhere to renumber AllocId while ensuring different ID remain differentiable. Those are the IDs that you are currently seeing in the test output ( On the one hand it is a bit unfortunate if we have no way of testing whether we actually print consistent IDs. On the other hand these IDs are mostly meaningless and using them in diagnostics isn't great to begin with. |
|
Seems fine as a short term solution. Having it as a global filter does seem better than repeating it. There's basically two orthogonal things that we should probably do:
|
@heinwol could you try this today? |
Unfortunately not. There are obvious ones like the ones pointing to statics or fns, but we don't have spans in |
This comment has been minimized.
This comment has been minimized.
|
Yeah getting span info is a Project on its own. It'd be nice to have but shouldn't block the parallel frontend IMO. Personally I could live with normalizing all AllocId away. |
in `tests/ui/consts/const-eval/raw-bytes.rs` as we now handle this in our modified regex in `runtest`
Specifically, all `//@ ignore-parallel-frontend different alloc ids`
across other tests because they fail with our normalization strategy: `ALLOC0` -> `ALLOC$ID`
f63e293 to
c7a0991
Compare
|
@rustbot ready |
|
r=me after squashing commits. |
…llel-frontend, r=petrochenkov tests: fix: parallel frontend test failures: different alloc ids Removed the `//@ ignore-parallel-frontend different alloc ids` directive from all the ui tests applicable and replaced it with `//@ normalize-stderr` so that all alloc ids mentions are converted into a single placeholder. Thus the tests are passed Part of [rust-lang#154314](rust-lang#154314) r? @petrochenkov
…uwer Rollup of 8 pull requests Successful merges: - #150075 (Implement clamp_to) - #156716 (tests: fix: parallel frontend test failures: different alloc ids) - #158397 (delegation: support simplest output `Self` mapping) - #158613 (Fix getrandom fallback test on platforms with `panic=abort`) - #158620 (Remove skip_norm_w/i/p().def_id with a helper) - #158633 (Remove unnecessary `Clone` derives on resolver types) - #158634 (Add missing `needs_drop` check to `DroplessArena`.) - #158647 (Document `strip_circumfix` behavior on overlapping prefix and suffix.)
…uwer Rollup of 8 pull requests Successful merges: - #158294 (Use .drectve for MSVC DLL exports) - #156716 (tests: fix: parallel frontend test failures: different alloc ids) - #158397 (delegation: support simplest output `Self` mapping) - #158613 (Fix getrandom fallback test on platforms with `panic=abort`) - #158620 (Remove skip_norm_w/i/p().def_id with a helper) - #158633 (Remove unnecessary `Clone` derives on resolver types) - #158634 (Add missing `needs_drop` check to `DroplessArena`.) - #158647 (Document `strip_circumfix` behavior on overlapping prefix and suffix.)
Rollup merge of #156716 - heinwol:fix-ui-tests-alloc-id-parallel-frontend, r=petrochenkov tests: fix: parallel frontend test failures: different alloc ids Removed the `//@ ignore-parallel-frontend different alloc ids` directive from all the ui tests applicable and replaced it with `//@ normalize-stderr` so that all alloc ids mentions are converted into a single placeholder. Thus the tests are passed Part of [#154314](#154314) r? @petrochenkov
View all comments
Removed the
//@ ignore-parallel-frontend different alloc idsdirective from all the ui tests applicable and replaced it with//@ normalize-stderrso that all alloc ids mentions are converted into a single placeholder. Thus the tests are passedPart of #154314
r? @petrochenkov