-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline workflow for the release branch (#1025)
* Add pipeline workflow for the release branch * Add separate workflow for int tests pr int tests * Add proper dependencies for jobs
- Loading branch information
1 parent
8914392
commit 7280f48
Showing
5 changed files
with
208 additions
and
26 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,57 @@ | ||
# This workflow is responsible for all kinds of integration tests run on pull request. | ||
# Those tests depend on a container image so in the first job we wait for the image build to succeed. | ||
|
||
name: Release Pull Request integration tests | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
k8s-compatibility-test: | ||
name: Kubernetes version compatibility test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/k8s-compatibility-test | ||
with: | ||
operator-image-name: "europe-docker.pkg.dev/kyma-project/dev/istio-manager:PR-${{github.event.number}}" | ||
|
||
istio-upgrade-integration-test: | ||
name: Istio upgrade integration test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/upgrade-integration-test | ||
with: | ||
operator-image-name: "europe-docker.pkg.dev/kyma-project/dev/istio-manager:PR-${{github.event.number}}" | ||
target_branch: ${{ github.base_ref }} | ||
|
||
istio-integration-test: | ||
name: Istio integration test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/integration-test | ||
with: | ||
evaluation: false | ||
operator-image-name: "europe-docker.pkg.dev/kyma-project/dev/istio-manager:PR-${{github.event.number}}" | ||
servers-memory: "16" | ||
agents: 2 | ||
|
||
istio-integration-test-evaluation: | ||
name: Istio integration test evaluation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/integration-test | ||
with: | ||
evaluation: true | ||
operator-image-name: "europe-docker.pkg.dev/kyma-project/dev/istio-manager:PR-${{github.event.number}}" | ||
servers-memory: "4" | ||
agents: 0 |
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,147 @@ | ||
name: Release Pull Request pipeline | ||
on: | ||
pull_request_target: | ||
types: [ synchronize, opened, reopened, ready_for_review ] | ||
branches: | ||
- 'release-**' | ||
jobs: | ||
check-build-image: | ||
outputs: | ||
check: ${{ steps.changed-files.outputs.any_modified }} | ||
name: Check whether build image should run | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.pull_request.draft == false }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 | ||
id: changed-files | ||
with: | ||
files_ignore: | | ||
docs/** | ||
**/*.md | ||
tests/performance/** | ||
OWNERS | ||
CODEOWNERS | ||
.reuse/** | ||
- name: List all changed files | ||
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' >> $GITHUB_STEP_SUMMARY | ||
build-image: | ||
name: Build manager image | ||
needs: [check-build-image] | ||
environment: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' && 'restricted' || 'internal' }} | ||
if: ${{ github.event.pull_request.draft == false && needs.filter-changes.outputs.check == 'true' }} | ||
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main | ||
with: | ||
name: istio-manager | ||
dockerfile: Dockerfile | ||
context: . | ||
build-args: | | ||
VERSION=PR-${{ github.event.number }} | ||
check-unit-test: | ||
outputs: | ||
check: ${{ steps.changed-files.outputs.any_modified }} | ||
name: Check whether unit test & lint should run based on the changed files | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 | ||
id: changed-files | ||
with: | ||
files_ignore: | | ||
docs/** | ||
**/*.md | ||
tests/performance/** | ||
OWNERS | ||
CODEOWNERS | ||
sec-scanners-config.yaml | ||
.reuse/** | ||
- name: List all changed files | ||
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' >> $GITHUB_STEP_SUMMARY | ||
dispatch-unit-test: | ||
name: Dispatch unit test | ||
needs: [check-unit-test] | ||
uses: ./.github/workflows/pull-unit-lint.yaml | ||
if: ${{ needs.check-unit-test.outputs.check == 'true' }} | ||
secrets: inherit | ||
|
||
check-integration: | ||
outputs: | ||
check: ${{ steps.changed-files.outputs.any_modified }} | ||
name: Check whether integration tests should run based on the changed files | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 | ||
id: changed-files | ||
with: | ||
files_ignore: | | ||
docs/** | ||
**/*.md | ||
tests/performance/** | ||
OWNERS | ||
CODEOWNERS | ||
sec-scanners-config.yaml | ||
.reuse/** | ||
- name: List all changed files | ||
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' >> $GITHUB_STEP_SUMMARY | ||
dispatch-integration: | ||
name: Dispatch integration tests | ||
needs: [check-integration,build-image] | ||
uses: ./.github/workflows/pull-integration-release.yaml | ||
if: ${{ needs.check-integration.outputs.check == 'true' }} | ||
secrets: inherit | ||
dispatch-integration-gardener: | ||
name: Dispatch Gardener integration tests | ||
needs: [check-integration,build-image] | ||
uses: ./.github/workflows/pull-integration-gardener-release.yaml | ||
if: ${{ needs.check-integration.outputs.check == 'true' }} | ||
secrets: inherit | ||
|
||
check-ui: | ||
outputs: | ||
check: ${{ steps.changed-files.outputs.any_modified }} | ||
name: Check whether UI tests should run based on the changed files | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 | ||
id: changed-files | ||
with: | ||
files: | | ||
config/ui-extensions/** | ||
config/crd/** | ||
tests/ui/** | ||
.github/workflows/ui-tests.yaml | ||
- name: List all changed files | ||
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' >> $GITHUB_STEP_SUMMARY | ||
dispatch-ui: | ||
name: Dispatch UI tests | ||
needs: [check-ui,build-image] | ||
uses: ./.github/workflows/ui-tests.yaml | ||
if: ${{ needs.check-ui.outputs.check == 'true' }} | ||
secrets: inherit | ||
|
||
check-verify-pins: | ||
outputs: | ||
check: ${{ steps.changed-files.outputs.any_modified }} | ||
name: Check whether to run verify-commit-pins | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 | ||
id: changed-files | ||
with: | ||
files: | | ||
.github/workflows/** | ||
- name: List all changed files | ||
run: echo '${{ steps.changed-files.outputs.all_changed_files }}' >> $GITHUB_STEP_SUMMARY | ||
dispatch-verify-pins: | ||
name: Dispatch verify-commit-pins | ||
needs: [check-verify-pins] | ||
uses: ./.github/workflows/verify-commit-pins.yaml | ||
if: ${{ needs.check-verify-pins.outputs.check == 'true' }} | ||
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