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(ci): actually create a cached state image after running a sync #4669

Merged
merged 2 commits into from
Jun 22, 2022

Conversation

teor2345
Copy link
Contributor

@teor2345 teor2345 commented Jun 22, 2022

Motivation

A previous refactor made the cached state image job always get skipped.

Specifications

A default status check of success() is applied unless you include one of these functions.

https://docs.github.com/en/actions/learn-github-actions/expressions#status-check-functions

This means that if any dependent job is skipped, the current job also gets skipped.
But we want to run after a successful job and an unused (skipped) job.

Solution

  • use !failure() && !cancelled() to run after a skipped job

Review

This is blocking a bunch of work, and slowing down the tests.

Reviewer Checklist

@teor2345 teor2345 added C-bug Category: This is a bug A-devops Area: Pipelines, CI/CD and Dockerfiles P-Critical 🚑 I-integration-fail Continuous integration fails, including build and test failures labels Jun 22, 2022
@teor2345 teor2345 requested a review from a team as a code owner June 22, 2022 01:57
@teor2345 teor2345 self-assigned this Jun 22, 2022
@teor2345 teor2345 requested review from conradoplg and removed request for a team June 22, 2022 01:57
@teor2345
Copy link
Contributor Author

I'm running a full and checkpoint sync here:
https://github.com/ZcashFoundation/zebra/actions/runs/2539724706

We need to check that both checkpoint and tip cached state disks are created before we merge to main.

@gustavovalverde
Copy link
Member

gustavovalverde commented Jun 22, 2022

@teor2345
Copy link
Contributor Author

I'm running the Job again after some fixes
Normal run: https://github.com/ZcashFoundation/zebra/actions/runs/2542050120
Disk rebuild run: https://github.com/ZcashFoundation/zebra/actions/runs/2542263828

These seemed to work as intended.

The full sync timed out, and skipped creating the image (as expected), but that's going to be fixed in another PR.

@teor2345
Copy link
Contributor Author

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Jun 22, 2022

refresh

✅ Pull request refreshed

mergify bot added a commit that referenced this pull request Jun 22, 2022
@mergify mergify bot merged commit 20850b4 into main Jun 22, 2022
@mergify mergify bot deleted the fix-create-image branch June 22, 2022 21:54
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 C-bug Category: This is a bug I-integration-fail Continuous integration fails, including build and test failures
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants