-
Notifications
You must be signed in to change notification settings - Fork 63
Automation for adding ICEs #1529
base: master
Are you sure you want to change the base?
Conversation
Thanks for the PR! But this is potentially vulnerable, an attacker could do spamming or execute any code via issues. Moreover, some snippets need an external crate or setup, which means we have to create a shell script instead or just skip that issue. |
Thanks for the review!
Is that true? I assumed that In any case, what do you think about manual use?
Certainly, this automation can't be comprehensive. Right now, it tests which code snippets do in fact lead to ICEs and removes the ones that don't. Manual effort will generally still be required. |
Ah, I misunderstood this PR's purpose, sorry! I cannot unfortunately review this immediately, maybe Alex can do instead :) |
No worries, I think I didn't make it super clear! But yeah, I think this would be helpful for people running it locally, manually. And it doesn't need a thorough review right now - as long as there's some interest in including something like this, I'm happy to keep pushing on it until it's more polished. |
Okay, I've reviewed roughly and I tend to accept it. Indeed my all previous concerns are covered/resolved and yeah, this could help glacier have more ICEs largely, thank you for writing up! As a bonus point, I guess it'd be great if grabber outputs failed issues so that we can easily find issues that need manual effort. |
b93852d
to
bda6ec7
Compare
Great, thanks @JohnTitor! Things I want to get done before merge:
|
Assuming #1562 was created with this a nice addition would be to add a final newline to avoid that 🚫 You may want to avoid running
Whoops 😅 Thank you for looking at it @JohnTitor |
Indeed, the idea would be to only save formatted versions when formatting succeeds and doesn't de-ICE the test case, and otherwise to keep the original. |
The rustc Github repo has a standard form for ICE bug reports. This automation tries to add recent MREs of open ICE issues to the repo.
It's not finished yet, just wanted to check - is there interest in this?
This is how I did #1528, by the way.