Skip to content

test-my-pr robustification#4756

Merged
firewave merged 2 commits intocppcheck-opensource:mainfrom
rikardfalkeborn:test-my-pr-robustification
Jan 31, 2023
Merged

test-my-pr robustification#4756
firewave merged 2 commits intocppcheck-opensource:mainfrom
rikardfalkeborn:test-my-pr-robustification

Conversation

@rikardfalkeborn
Copy link
Copy Markdown
Contributor

Make test-my-pr.py a little more robust by retrying if get_package() or get_package_count() fails. For get_package(), this meant moving the retry-logic already present in donate-cpu to the library (this fixes trac ticket #11045). For get_package_count(), which is only used in test-my-pr, this meant adding the retry-logic to the function.

Occasionally, get_packages_count() fails, which is a bit annoying since
it happens after compilation and therefore can take some time to detect.
Add try-retry to the function to make it more robust.
Moving it to the library means test-my-pr also benefits from it. This
fixes Trac ticket #11405.
@firewave firewave merged commit 9acc965 into cppcheck-opensource:main Jan 31, 2023
@rikardfalkeborn rikardfalkeborn deleted the test-my-pr-robustification branch January 31, 2023 21:48
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.

2 participants