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 infinite loop in det-match script #957

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

jlashner
Copy link
Contributor

@jlashner jlashner commented Sep 16, 2024

Currently SATP3 detmatches are being held up because the script loops infinitely if a match fails but is too new to add to the file cache. This addresses that bug, and resolves #956.

This has been tested by rebuilding the satp3 detmatch db in my home dir.

Copy link
Member

@mhasself mhasself left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving but consider my comment.

Comment on lines 439 to 440
run_match(runner, remaining_detsets[0])
update_manifests_all(runner)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense here to keep trying to run a remaining_detset until one actually succeeds?

In the current code, if it gets hung up on a failed one, but can't add it to failed cache, then it will not be able to run anything else in the mean time.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, that makes sense to me.

@mhasself mhasself merged commit 0f998cc into master Sep 16, 2024
5 checks passed
@mhasself mhasself deleted the fix-det-match-infinite-loop branch September 16, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants