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

change(ci): Remove check for custom configs from GCP deployments #9280

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

upbqdn
Copy link
Member

@upbqdn upbqdn commented Feb 20, 2025

Motivation

The test-zebra-conf-path check in cd-deploy-nodes-gcp.yml tries to configure Zebra running in a Docker container with a custom config file. However, it always fails because the container doesn't contain the file as it is built for the runtime target and contains only files needed in production. This test used to falsely pass because the entrypoint script used to create a new config file on the fly if the specified one was missing. We have the same check for a Docker container built for the tests target in sub-ci-unit-tests-docker.yml. This check works as intended because those containers contain the custom config file.

Solution

  • Remove the test-zebra-conf-path from cd-deploy-noes-gcp.yml.

An alternative solution would be to move the custom config file to the container, but that would require a lot more work, and I thought it wasn't worth it since we test the same functionality elsewhere.

Tests

N/A

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.

@upbqdn upbqdn added C-bug Category: This is a bug A-devops Area: Pipelines, CI/CD and Dockerfiles P-Low ❄️ C-exclude-from-changelog Category: The PR should be excluded from the changelog and release notes labels Feb 20, 2025
@upbqdn upbqdn self-assigned this Feb 20, 2025
@github-actions github-actions bot added the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Feb 20, 2025
@upbqdn upbqdn changed the title fix(ci): Re-enable test-zebra-conf-path change(ci): Remove check for custom configs from GCP deployments Feb 21, 2025
@upbqdn upbqdn marked this pull request as ready for review February 21, 2025 16:07
@upbqdn upbqdn requested a review from a team as a code owner February 21, 2025 16:07
@upbqdn upbqdn requested review from conradoplg and gustavovalverde and removed request for a team and conradoplg February 21, 2025 16:07
Copy link
Member

@gustavovalverde gustavovalverde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gustavovalverde gustavovalverde merged commit 2a184e7 into main Feb 24, 2025
102 checks passed
@gustavovalverde gustavovalverde deleted the fix-test-conf branch February 24, 2025 09:17
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 C-exclude-from-changelog Category: The PR should be excluded from the changelog and release notes C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG P-Medium ⚡
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants