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

Exit codes for missing blocks auditor #9899

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

psteckler
Copy link
Member

Add an exit code to missing_blocks_auditor to indicate errors, to help scripting.

Each possible error is associated with a prime number. When an error occurs, multiply an exit code by that prime number.
A script can check divisibility by a particular prime to see if that error occurred.

If no error occurs, exit with 0.

Tested by running the auditor on an archive db with known errors.

@psteckler psteckler added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Dec 9, 2021
@bkase
Copy link
Member

bkase commented Dec 9, 2021

I like the prime number trick

@psteckler psteckler merged commit 6079465 into rosetta-1.2.1-safe Dec 9, 2021
@psteckler psteckler deleted the feature/blocks-auditor-exit-codes branch December 9, 2021 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants