ci: move functional tests from Konflux to GitHub Actions#1242
Open
decko wants to merge 4 commits into
Open
Conversation
Contributor
Reviewer's GuideMoves functional test execution from the Konflux Tekton pipeline into a new GitHub Actions workflow that builds and runs the dev container, executes six focused functional test suites, and uploads JUnit artifacts, while simplifying the Konflux deploy-and-test pipeline dependencies. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The workflow repeats the same
docker exec pulp-dev+ environment setup across all six test steps; consider factoring shared env vars into a job-levelenv:block or a small wrapper script to reduce duplication and keep the test commands easier to maintain. - Add an explicit cleanup step (e.g.
docker rm -f pulp-devwithif: always()) to ensure the dev container is removed in all cases, which will help avoid stray containers on reused or locally-run GitHub Actions runners.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The workflow repeats the same `docker exec pulp-dev` + environment setup across all six test steps; consider factoring shared env vars into a job-level `env:` block or a small wrapper script to reduce duplication and keep the test commands easier to maintain.
- Add an explicit cleanup step (e.g. `docker rm -f pulp-dev` with `if: always()`) to ensure the dev container is removed in all cases, which will help avoid stray containers on reused or locally-run GitHub Actions runners.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Run the 6 functional test suites (pulp_rpm, pulpcore, pulp_maven, pulp_npm, pulp_service) in a GHA workflow using the dev container instead of the Konflux deploy-and-test pipeline. This frees Konflux resources for what only it can do: image build, security scans, and deployment verification. Konflux pipeline retains: deploy → build bindings → install bindings → push API schemas → publish to PyPI. The pulp-functional-tests task is removed and push-api-json-files-to-pulp now runs after install-bindings. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dc6bda7 to
1dd2f8b
Compare
These tests require an external entitlement service not available in the dev container. Matches the deselects already in pulp-test script. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test fixture needs to read the private key to sign test attestations. The file was chmod 600 (root-only) but the container runs as UID 700 in GID 0. Changed to 640 with root:0 ownership so the pulp user can read it via group permissions. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- chown attestation keys to 700:0 so pulp user can read via ownership - Switch from --deselect to -k filter for feature_service tests since --deselect paths don't match --pyargs site-packages resolution Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pulp-functional-teststask from the Konflux deploy-and-test pipeline (-127 lines)push-api-json-files-to-pulpto run afterinstall-bindingsdirectlyKonflux keeps only what requires its infrastructure: image build, security scans, deployment verification, API schema push, and PyPI publishing.
Test plan
🤖 Generated with Claude Code
Summary by Sourcery
Move functional test execution from the Konflux pipeline to a new GitHub Actions workflow using the dev container while keeping Konflux focused on image build, scans, deployment verification, API schema publishing, and PyPI releases.
CI: