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

sync_past_mandatory_checkpoint_mainnet fails, but CI job succeeds #3664

Closed
3 tasks done
teor2345 opened this issue Feb 28, 2022 · 4 comments · Fixed by #3968
Closed
3 tasks done

sync_past_mandatory_checkpoint_mainnet fails, but CI job succeeds #3664

teor2345 opened this issue Feb 28, 2022 · 4 comments · Fixed by #3968
Assignees
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles A-rust Area: Updates to Rust code C-bug Category: This is a bug C-testing Category: These are tests

Comments

@teor2345
Copy link
Contributor

teor2345 commented Feb 28, 2022

Motivation

The sync_past_mandatory_checkpoint_mainnet test is currently failing:

0: stdout of command did not contain any matches for the given regex

Match Regex:
"stopping at configured height"

https://github.com/ZcashFoundation/zebra/runs/5329552803?check_suite_focus=true#step:10:199

But the CI job succeeds anyway.

Tasks

Related Work

@teor2345 teor2345 added C-bug Category: This is a bug A-rust Area: Updates to Rust code A-devops Area: Pipelines, CI/CD and Dockerfiles S-needs-triage Status: A bug report needs triage P-High 🔥 C-testing Category: These are tests labels Feb 28, 2022
@ftm1000
Copy link

ftm1000 commented Feb 28, 2022

@gustavovalverde
Copy link
Member

gustavovalverde commented Mar 3, 2022

The issue here is that I'm basically just reading the logs, and there's not an exit code when the logs stop capturing data. So I'll just find a way to capture the status of the container after the logs finished. This might require an extra step, but it will ensure an exit code is captured after we have no output from the logs

@teor2345
Copy link
Contributor Author

teor2345 commented Mar 3, 2022

The issue here is that I'm basically just reading the logs, and there's not an exit code when the logs stop capturing data. So I'll just find a way to capture the status of the container after the logs finished. This might require an extra step, but it will ensure an exit code is captured after we have no output from the logs

The test harness is the same as other tests, and produces the same exit statuses:

fn sync_past_mandatory_checkpoint_mainnet() {
zebra_test::init();
let network = Mainnet;
sync_past_mandatory_checkpoint(network).unwrap();
}

Can we do the same checks for the test exit status?

@teor2345
Copy link
Contributor Author

teor2345 commented Mar 3, 2022

Does the full sync test also have the same exit status issue?
It uses a similar test harness, but it produces a lot more logs.

(We know the lightwalletd integration test doesn't have the same issue, because it is failing right now 🤣)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles A-rust Area: Updates to Rust code C-bug Category: This is a bug C-testing Category: These are tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants