') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); Add regression test for #96395 by JohnTitor · Pull Request #96950 · rust-lang/rust · GitHub
Skip to content

Add regression test for #96395 - #96950

Merged
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:issue-96395
May 29, 2022
Merged

Add regression test for #96395#96950
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:issue-96395

Conversation

@JohnTitor

Copy link
Copy Markdown
Member

Closes#96395
This repeats "fixed" and "ICE", see rust-lang/glacier#1243 (comment)
I think it's good to add a test before regressing again.
r? @compiler-errors for quick reviiew

cc @oli-obk you might want to check as you're familiar with MIR

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 11, 2022
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 11, 2022
@compiler-errors

Copy link
Copy Markdown
Contributor

I will approve this, but also I hope this test isn't as flaky as it is in glacier.

@bors r+

@bors

bors commented May 11, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit dc87ad2 has been approved by compiler-errors

@borsbors 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 May 11, 2022
@Alexendoo

Copy link
Copy Markdown
Member

further info: it became flaky around 2022-04-04

nightly-2022-03-01 ICE
nightly-2022-03-02 ICE
nightly-2022-03-03 ICE
... all ICEs
nightly-2022-04-02 ICE
nightly-2022-04-03 ICE
nightly-2022-04-04 ICE
nightly-2022-04-05 OK
nightly-2022-04-06 OK
nightly-2022-04-07 ICE
nightly-2022-04-08 ICE
nightly-2022-04-09 OK
nightly-2022-04-10 OK
nightly-2022-04-11 ICE
nightly-2022-04-12 ICE
nightly-2022-04-13 OK
nightly-2022-04-14 OK
nightly-2022-04-15 OK
nightly-2022-04-16 ICE
nightly-2022-04-17 OK
nightly-2022-04-18 OK
nightly-2022-04-19 OK
nightly-2022-04-20 OK
nightly-2022-04-21 ICE
nightly-2022-04-22 ICE
nightly-2022-04-23 ICE
nightly-2022-04-24 ICE
nightly-2022-04-25 ICE
nightly-2022-04-26 OK
nightly-2022-04-27 ICE
nightly-2022-04-28 OK
nightly-2022-04-29 ICE
nightly-2022-04-30 OK

@oli-obk

Copy link
Copy Markdown
Contributor

@bors r-

I want to look into the ICE. If it really is this flaky, having it in CI will only frustrate people, not actually make sure it doesn't regress again

@borsbors 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 May 11, 2022
@oli-obkoli-obk self-assigned this May 11, 2022
@oli-obk

Copy link
Copy Markdown
Contributor

I opened #96965 which should fix both the ICE and the flakiness

@JohnTitor

JohnTitor commented May 12, 2022

Copy link
Copy Markdown
MemberAuthor

Great! Do you want to keep this open for a while to see that PR fixes the issue actually?
EDIT: I should've read OP carefully, found this:

If this PR solves the flakiness on glacier, we can then merge #96950

I'm going to mark this blocked until we can say "it's okay".

@JohnTitorJohnTitor added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels May 12, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request May 13, 2022
Gracefully handle normalization failures in the prospective inliner cycle detector
Preliminary work for adding the regression test in rust-lang#96950 to our test suite (it was flaky on glacier).
If this PR solves the flakiness on glacier, we can then merge rust-lang#96950
@Alexendoo

Copy link
Copy Markdown
Member

It has been a fair while since #96965 and each nightly since then no longer ICEs, I think it did the trick 👍

@JohnTitor

Copy link
Copy Markdown
MemberAuthor

Thanks for confirming it! Moving back to waiting-on-review then.

@JohnTitorJohnTitor added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-blocked Status: Blocked on something else such as an RFC or other implementation work. labels May 28, 2022
@oli-obk

Copy link
Copy Markdown
Contributor

@bors r=compiler-errors,oli-obk

@JohnTitor

Copy link
Copy Markdown
MemberAuthor

Hm, bors ignored it?
@bors r=compiler-errors,oli-obk

@bors

bors commented May 28, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit dc87ad2 has been approved by compiler-errors,oli-obk

@borsbors 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 May 28, 2022
@JohnTitor

Copy link
Copy Markdown
MemberAuthor

@bors rollup

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request May 28, 2022
…rrors,oli-obk
Add regression test for rust-lang#96395Closesrust-lang#96395
This repeats "fixed" and "ICE", see rust-lang/glacier#1243 (comment)
I think it's good to add a test before regressing again.
r? `@compiler-errors` for quick reviiew
cc `@oli-obk` you might want to check as you're familiar with MIR
bors added a commit to rust-lang-ci/rust that referenced this pull request May 29, 2022
…laumeGomez
Rollup of 5 pull requests
Successful merges:
- rust-lang#96950 (Add regression test for rust-lang#96395)
- rust-lang#97028 (Add support for embedding pretty printers via `#[debugger_visualizer]` attribute)
- rust-lang#97478 (Remove FIXME on `ExtCtxt::fn_decl()`)
- rust-lang#97479 (Make some tests check-pass)
- rust-lang#97482 (ptr::invalid is not equivalent to a int2ptr cast)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 376163a into rust-lang:masterMay 29, 2022
@rustbotrustbot added this to the 1.63.0 milestone May 29, 2022
@JohnTitor
JohnTitor deleted the issue-96395 branch May 29, 2022 03:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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.

ICE: glacier fixed/82079.rs with -Zmir-opt-level=3: failed to normalize [closure@./82079.rs:13:25: 13:46]

7 participants

@JohnTitor@compiler-errors@bors@Alexendoo@oli-obk@rust-highfive@rustbot