Skip to content

reclassify prepare failure #770

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Skgland
Copy link
Contributor

@Skgland Skgland commented Apr 25, 2025

Currently prepare failure gets classified as Error unless the crate is determined to be broken in which case its classified as Broken. This PR reclassifies the former.

Most if not all of the perpare errors are spurious and would benefit from being included in the retry-regressed-list.txt so that they can be retried.

This should cause instances such as https://crater-reports.s3.amazonaws.com/beta-1.86-rustdoc-1/1.85.0/reg/ssstar-0.7.3/log.txt to be classified as prepare-fail instead of error which means the are included in the retry-regressed-list.txt and have a change at properly regressing in a retry.

This should help prevent regression in beta crater run being missed due to running out of disk space as was the case with the above example.

The first commit fixes existing clippy problems.

The second commit removes a no longer existing crate from the config.toml (broke config check)

The third commit cleans-up the compare match.
Basically a regression is spurious if the test toolchain result is spurious
and a fix is spurious if the base toolchain result is spurious.
This only changes the classification of BuildFail(non-spurious) -> TestFail(spurious) from SpuriousFixed to Fixed.
I think the new classification is correct and the old one was wrong.

The fourth commit adds a new Comparison and TestResult variant to properly classify the failure mode of preparation failing for a non-broken crate.
It also adds crates with this new Comparison variant to the retry-regressed-list.txt.

I expect this to significantly increase the size of the retry-regressed-list.txt.

Edit: Including PrepareFail in the retry-regressed-list.txt makes the file a bit misnamed, maybe it should be renamed to retry-list.txt the function for filtering the crates gen_retry_list already doesn't contain regressed in its name.

@Skgland Skgland force-pushed the reclassify-no-space-on-fetch branch 2 times, most recently from 29fb04b to e2cd63d Compare April 26, 2025 01:05
@Skgland Skgland marked this pull request as ready for review April 26, 2025 02:15
@Skgland Skgland marked this pull request as draft April 28, 2025 07:51
Skgland added 4 commits May 3, 2025 21:02
…ious fixed

fixing the non-spurious build failure is a non-spurious fix
even if we then spuriously fail the tests

clean up the comparison logic a bit while at it
Prepare failure are likely spurious and as such are included in the retry-regressed-list.txt to give the crates another change in a retry.
This is different to a crate being Broken which is probably non-spurious.

Iif either base or test toolchain is a prepare failure the runs can't give any insight as we are missing either a base or a test result.
@Skgland Skgland force-pushed the reclassify-no-space-on-fetch branch from dd0acaf to ec7f45e Compare May 3, 2025 19:20
@Skgland Skgland changed the title reclassify no space left on device during fetch reclassify prepare failure May 3, 2025
@Skgland Skgland marked this pull request as ready for review May 3, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant