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

Use exponential backoff when requeueing Done.xml files #1614

Merged
merged 4 commits into from
Aug 2, 2023

Conversation

zackgalbreath
Copy link
Contributor

After the recent upgrade of open.cdash.org, we noticed many builds were no longer marked as "Done". This was due to the Done.xml handler exhausting its 5 retries while a single large Test.xml file was in the process of being parsed.

We solve this problem by exponentially backing off the requeueing of Done.xml files to give CDash more time to finish parsing any such large XML files for a given build.

Fixes #1603

This PR also contains a couple other semi-related fixes dealing with parallel parsing of submission files.

Copy link
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

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

These changes seem reasonable to me. In the future, it might be worthwhile to look into Laravel's job batching and job chaining features instead. Doing so would require a significant refactor of the submission process though.

config/cdash.php Show resolved Hide resolved
After the recent upgrade of open.cdash.org, we noticed many builds were
no longer marked as "Done". This was due to the Done.xml handler exhausting
its 5 retries while a single large Test.xml file was in the process of
being parsed.

We solve this problem by exponentially backing off the requeueing of
Done.xml files to give CDash more time to finish parsing any such large
XML files for a given build.

Fixes #1603
It is possible for this method to return null if the build's Site cannot
be located for any reason.
@williamjallen williamjallen added this pull request to the merge queue Aug 2, 2023
Merged via the queue into master with commit 44f4fac Aug 2, 2023
2 checks passed
@williamjallen williamjallen deleted the fix_done branch August 2, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Submission of "Done" step no longer closes a build
2 participants