Skip to content
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

Fix hang when buggy (unaltered) OK comes after STOP #162

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

emaxx-google
Copy link
Contributor

@emaxx-google emaxx-google commented Jan 21, 2025

Make sure that we don't proceed when a buggy pass returns an
unmodified file - for this, consistently validate the pass' results on
both codepaths (in process_done_futures() and wait_for_first_success()).

Besides fixing the hang that was possible when a pass misbehaved,
there are a couple of other side effects:

  • more cases of ERRORs in a pass will be reported - previously only
    the ones on the first codepath were handled;
  • max_improvement is enforced stricter now - previously the second
    codepath allowed a larger reduction to sneak in.

This fixes #156.

@emaxx-google emaxx-google changed the title Fix misbehave after stop hang [to be rebased] Fix hang when buggy (unaltered) OK comes after STOP Jan 21, 2025
@emaxx-google emaxx-google force-pushed the fix-misbehave-after-stop-hang branch 2 times, most recently from 0b47c5c to 7f2e6cd Compare January 21, 2025 02:45
Make sure that we don't proceed with an unmodified file - for this,
consistently validate the pass' results on both codepaths (in
process_done_futures() and wait_for_first_success()).

Besides fixing the hang that was possible when a pass misbehaved,
there are a couple of other side effects:

* more cases of ERRORs in a pass will be reported - previously only
  the ones on the first codepath were handled;
* max_improvement is enforced stricter now - previously the second
  codepath allowed a larger reduction to sneak in.

This fixes marxin#156.
@emaxx-google emaxx-google force-pushed the fix-misbehave-after-stop-hang branch from 7f2e6cd to b23e6b2 Compare January 21, 2025 22:30
@emaxx-google emaxx-google changed the title [to be rebased] Fix hang when buggy (unaltered) OK comes after STOP Fix hang when buggy (unaltered) OK comes after STOP Jan 21, 2025
@emaxx-google emaxx-google marked this pull request as ready for review January 21, 2025 22:33
@marxin marxin merged commit 16a76f7 into marxin:master Jan 22, 2025
11 checks passed
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.

Hang when pass failed to modify the variant shortly before STOP
2 participants