-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run integration tests on konflux built images
Try different branch filter Finer control on when konflux tests run Debug Fix colliding concurrency group Fix if condition Singular... Image Remove debug job Deep fetch Fix quotes Use the correct tag everywhere Tag format, maybe? Add k8s based tests Checkout head branch on PRs Fix collector-qa-tag Use rhacs-eng image for k8s based tests Test push actions Make PR testing easier Properly wait for the integration tests containers Exclude multiarch builds from konflux tests
- Loading branch information
Showing
4 changed files
with
139 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Run konflux tests | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
init: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
collector-tag: ${{ steps.generate-tag.outputs.collector-tag }} | ||
collector-qa-tag: ${{ steps.generate-tag.outputs.collector-qa-tag }} | ||
rebuild-qa-containers: ${{ steps.filter.outputs.container }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref || github.ref_name }} | ||
submodules: true | ||
fetch-depth: 0 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
list-files: shell | ||
|
||
# Only trigger a rebuild when the QA tag has changed | ||
filters: | | ||
container: | ||
- integration-tests/container/QA_TAG | ||
- id: generate-tag | ||
run: | | ||
echo "collector-tag=$(make tag)-fast" >> "$GITHUB_OUTPUT" | ||
COLLECTOR_QA_TAG="$(cat ${{ github.workspace }}/integration-tests/container/QA_TAG)" | ||
if [[ "${GITHUB_EVENT_NAME}" == "pull_request" && "${{ steps.filter.outputs.container }}" == "true" ]]; then | ||
COLLECTOR_QA_TAG="${COLLECTOR_QA_TAG}-${COLLECTOR_TAG}" | ||
fi | ||
echo "collector-qa-tag=${COLLECTOR_QA_TAG}" >> "$GITHUB_OUTPUT" | ||
wait-for-images: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- init | ||
steps: | ||
- uses: stackrox/actions/release/wait-for-image@v1 | ||
with: | ||
token: ${{ secrets.QUAY_RHACS_ENG_BEARER_TOKEN }} | ||
image: rhacs-eng/collector:${{ needs.init.outputs.collector-tag }} | ||
|
||
integration-tests-containers: | ||
uses: ./.github/workflows/integration-test-containers.yml | ||
needs: | ||
- init | ||
with: | ||
collector-tag: ${{ needs.init.outputs.collector-tag }} | ||
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }} | ||
rebuild-qa-containers: ${{ needs.init.outputs.rebuild-qa-containers == 'true' }} | ||
secrets: inherit | ||
|
||
run-konflux-tests: | ||
uses: ./.github/workflows/integration-tests.yml | ||
needs: | ||
- init | ||
- wait-for-images | ||
- integration-tests-containers | ||
with: | ||
collector-tag: ${{ needs.init.outputs.collector-tag }} | ||
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }} | ||
is-konflux: true | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-integration-tests') }} | ||
secrets: inherit | ||
|
||
k8s-integration-tests: | ||
uses: ./.github/workflows/k8s-integration-tests.yml | ||
with: | ||
collector-tag: ${{ needs.init.outputs.collector-tag }} | ||
collector-qa-tag: ${{ needs.init.outputs.collector-qa-tag }} | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-integration-tests') }} | ||
needs: | ||
- init | ||
- wait-for-images | ||
- integration-tests-containers | ||
secrets: inherit | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Run konflux workflows | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- release-* | ||
- mauro/* | ||
tags: | ||
- 3.*.* | ||
- mauro-test-* | ||
pull_request: | ||
types: | ||
- labeled | ||
- unlabeled | ||
- synchronize | ||
- opened | ||
- reopened | ||
|
||
concurrency: | ||
group: ${{ github.head_ref || github.run_id }}-konflux | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
run-tests: | ||
uses: ./.github/workflows/konflux-tests.yml | ||
if: github.event_name == 'push' || | ||
contains(github.head_ref, 'konflux') || | ||
contains(github.head_ref, 'rhtap') | ||
secrets: inherit | ||
|