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): improve workflow conditions for cached disk jobs #9274

Merged
merged 2 commits into from
Feb 19, 2025

Conversation

gustavovalverde
Copy link
Member

@gustavovalverde gustavovalverde commented Feb 19, 2025

Motivation

Deployments are running successfully, but as we do not have healthcheck in place (yet), the instances were not being raised as the image digest was missing.

This was causing the Zebra nodes to get deployed with an unusable image reference in GCP.

Depends-On: #9269

Solution

Refactored GitHub workflow conditions to:

  • Handle workflow dispatch events more precisely
  • Prevent running cached disk jobs on forked PRs
  • Ensure consistent behavior across different deployment workflows
  • Avoid skipping main branch deployments
  • Updated the if condition for the deploy-nodes job to ensure it only runs when the build job runs successfully and is not skipped.

Follow-up Work

We need healtchecks

PR Author's Checklist

  • The PR name will make sense to users.
  • The PR provides a CHANGELOG summary.
  • The solution is tested.
  • The documentation is up to date.
  • The PR has a priority label.

PR Reviewer's Checklist

  • The PR Author's checklist is complete.
  • The PR resolves the issue.

@gustavovalverde gustavovalverde added C-bug Category: This is a bug A-infrastructure Area: Infrastructure changes A-devops Area: Pipelines, CI/CD and Dockerfiles P-Critical 🚑 labels Feb 19, 2025
@gustavovalverde gustavovalverde self-assigned this Feb 19, 2025
@gustavovalverde gustavovalverde requested a review from a team as a code owner February 19, 2025 16:50
@gustavovalverde gustavovalverde requested review from oxarbitrage and removed request for a team February 19, 2025 16:50
@gustavovalverde gustavovalverde changed the title fix(ci): Improve workflow conditions for cached disk jobs fix(ci): improve workflow conditions for cached disk jobs Feb 19, 2025
@github-actions github-actions bot added C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG labels Feb 19, 2025
upbqdn
upbqdn previously approved these changes Feb 19, 2025
@gustavovalverde
Copy link
Member Author

I made this depend on #9269 as it will need those fixes for full validation

Copy link
Contributor

mergify bot commented Feb 19, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 ⛓️ Depends-On Requirements

Wonderful, this rule succeeded.

Requirement based on the presence of Depends-On in the body of the pull request

@gustavovalverde
Copy link
Member Author

@mergify rebase

Refactor GitHub workflow conditions to:
- Handle workflow dispatch events more precisely
- Prevent running cached disk jobs on forked PRs
- Ensure consistent behavior across different deployment workflows
- Avoid skipping main branch deployments
- Updated the if condition for the deploy-nodes job to ensure it only runs when the build job runs successfully and is not skipped.
Copy link
Contributor

mergify bot commented Feb 19, 2025

rebase

✅ Branch has been successfully rebased

- Comment out the `test-zebra-conf-path` job in the deployment workflow
- Fix a syntax error in the GCP resource deletion workflow's condition
- Remove an extra single quote in the `if` condition for the `clean-registries` job
@mergify mergify bot merged commit 14459e7 into main Feb 19, 2025
98 checks passed
@mergify mergify bot deleted the fix-deploy-conditions branch February 19, 2025 19:31
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-infrastructure Area: Infrastructure changes C-bug Category: This is a bug C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG P-Critical 🚑
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants