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

Add tests for Extension Gitlab pipeline build #13049

Open
jordojordo opened this issue Jan 10, 2025 · 0 comments
Open

Add tests for Extension Gitlab pipeline build #13049

jordojordo opened this issue Jan 10, 2025 · 0 comments
Labels
area/extensions kind/enhancement QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this
Milestone

Comments

@jordojordo
Copy link
Member

jordojordo commented Jan 10, 2025

Is your feature request related to a problem? Please describe.

Follow-on from #13032

We should add to the nightly extension workflow tests to ensure that the Gitlab reusable workflow (./shell/scripts/.gitlab/workflows/build-extension-catalog.gitlab-ci.yml) would pass in a Gitlab pipeline. This would also include the bundled workflow file that is shipped with the extension creator (./creators/extension/app/files/.gitlab-ci.yml).

Describe the solution you'd like

The simplest solution would be to replicate the GitLab CI logic as GitHub Actions steps with the same container image used.

Describe alternatives you've considered

  • Run a GitLab Runner container within the GitHub Action
  • Trigger a GitLab pipeline remotely from GitHub (would require a Rancher Gitlab org and repo)

Additional context

Since the build-extension-catalog.gitlab-ci.yml is fairly straightforward (it installs some packages, logs into a registry, etc.), the simplest way to test what GitLab does is to copy those steps into a GitHub workflow directly. Essentially, the GitHub Action would:

  • Spin up a registry.suse.com/bci/bci-base runner
  • Install the same system packages (podman, node.js, yq, etc.).
  • Perform the same build steps (yarn publish-pkgs, podman push --dry-run, etc.).
  • Check for collisions or version mismatches in the same way we do in check_version_collisions job.
@jordojordo jordojordo added kind/enhancement area/extensions QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this labels Jan 10, 2025
@jordojordo jordojordo added this to the v2.11.0 milestone Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extensions kind/enhancement QA/dev-automation Issues that engineers have written automation around so QA doesn't have look at this
Projects
None yet
Development

No branches or pull requests

1 participant