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

ci(lightwalletd): Zebra's Dockerfile needs latest lwd image #4599

Merged
merged 1 commit into from
Jun 13, 2022

Conversation

gustavovalverde
Copy link
Member

Motivation

We need to add this condition to lightwalletd docker build, to always create a latest tag when merging to the default branch: main, as we're fetching this tag from the Zebra Dockerfile build, but this tag is not being added when building lightwalletd

Fixes #4590

Designs

By default docker/metadata-action creates tags based on the event being triggered, but the latest tag is reserved for releases. As we can't wait releases for this specific use case, we're building the latest when merging to the default branch.

Solution

  • Add this condition to docker/metadata-action --> type=raw,value=latest,enable={{is_default_branch}}

Review

Anyone from @ZcashFoundation/devops-reviewers or @conradoplg

We need to add this condtion to lightwalletd docker build, to always create a `latest` tag when merging to the default branch: `main`
@gustavovalverde gustavovalverde 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 I-build-fail Zebra fails to build labels Jun 13, 2022
@gustavovalverde gustavovalverde requested a review from a team as a code owner June 13, 2022 20:47
@gustavovalverde gustavovalverde self-assigned this Jun 13, 2022
@gustavovalverde gustavovalverde requested review from dconnolly and removed request for a team June 13, 2022 20:47
mergify bot added a commit that referenced this pull request Jun 13, 2022
@mergify mergify bot merged commit 3ec6bd4 into main Jun 13, 2022
@mergify mergify bot deleted the fix-lightwalletd-tag branch June 13, 2022 21:38
@conradoplg
Copy link
Collaborator

I'm not sure if this completely solves the problem. What happens if we need to update the image? The PR that changes it will use the latest image which will not be the updated one and it will fail CI.

upbqdn pushed a commit that referenced this pull request Jun 14, 2022
We need to add this condtion to lightwalletd docker build, to always create a `latest` tag when merging to the default branch: `main`
@teor2345
Copy link
Contributor

I'm not sure if this completely solves the problem. What happens if we need to update the image? The PR that changes it will use the latest image which will not be the updated one and it will fail CI.

I had the same thought, it makes testing a bit tricky.

We might want to use the same algorithm we use for the state:

  • wait for the image from the current PR, if it is being rebuilt, or
  • use the image from main

@upbqdn
Copy link
Member

upbqdn commented Jun 14, 2022

I can't figure out why GitHub says this:
image
above Teor's comment.

@teor2345
Copy link
Contributor

teor2345 commented Jun 14, 2022

I can't figure out why GitHub says this: image above Teor's comment.

The commit text contains #4599, so GitHub automatically mentions that commit on PR #4599.

@upbqdn upbqdn restored the fix-lightwalletd-tag branch June 14, 2022 23:20
@upbqdn upbqdn deleted the fix-lightwalletd-tag branch June 14, 2022 23:21
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-build-fail Zebra fails to build I-integration-fail Continuous integration fails, including build and test failures
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: correct lightwalletd image not being fetched
5 participants