Repository navigation
ci: run nightly e2e against release-1.10 and other test branches #349
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
24986e1
ci: run nightly e2e against release-1.10
NiallTwomey2 adbc9e4
Merge branch 'main' into RHDHBUGS-3560-nightly-release-branches
NiallTwomey2 f1cddc6
Update .github/workflows/nightly.yaml
NiallTwomey2 ef66be0
Update .github/workflows/nightly.yaml
NiallTwomey2 8d9cd13
Update .github/workflows/nightly.yaml
NiallTwomey2 e21d3ab
Update .github/workflows/nightly.yaml
NiallTwomey2 9485377
Merge branch 'main' into RHDHBUGS-3560-nightly-release-branches
NiallTwomey2 ece13bd
Update .github/workflows/nightly.yaml
NiallTwomey2 72c484c
Update .github/workflows/nightly.yaml
NiallTwomey2 ca75d84
Merge branch 'main' into RHDHBUGS-3560-nightly-release-branches
NiallTwomey2 626c53a
ci: drop unused nighly dispatch input and fix auto heap-dump make args
NiallTwomey2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,26 +4,39 @@ on: | |
| schedule: | ||
| - cron: '38 21 * * *' | ||
| workflow_dispatch: | ||
| inputs: | ||
| target-branch: | ||
| description: 'Target branch for E2E tests (must exist in rhdh-chart and rhdh-operator repos)' | ||
| required: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| e2e-tests: | ||
| name: Nightly E2E Tests | ||
| name: Nightly E2E Tests (${{ matrix.branch }}) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
|
rm3l marked this conversation as resolved.
|
||
| matrix: | ||
| branch: | ||
| - main | ||
| - release-1.10 | ||
|
rm3l marked this conversation as resolved.
NiallTwomey2 marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 4. Release tests cannot find the chart The new release-1.10 matrix entry selects that branch of rhdh-chart, but the checked-in run-e2e-tests.sh sets the chart path to charts/rhdh while that repository’s release-1.10 application chart is at charts/backstage. If the release-1.10 checkout uses this E2E script, `helm dependency build` fails before either the standard or heap-dump job can run its tests. Agent Prompt
|
||
| - release-2.1 | ||
|
rm3l marked this conversation as resolved.
rm3l marked this conversation as resolved.
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| ref: ${{ matrix.branch }} | ||
| fetch-depth: 0 | ||
|
|
||
|
|
||
| - name: Set branch test variables | ||
| run: | | ||
| branch="${{ matrix.branch }}" | ||
| echo "TARGET_BRANCH=${branch}" >> "$GITHUB_ENV" | ||
| if [ "$branch" = "main" ]; then | ||
| echo "IMAGE_TAG=latest" >> "$GITHUB_ENV" | ||
| else | ||
| echo "IMAGE_TAG=latest-${branch#release-}" >> "$GITHUB_ENV" | ||
| fi | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
|
|
@@ -39,7 +52,11 @@ jobs: | |
| wait: 120s | ||
|
|
||
| - name: Run E2E tests | ||
| run: make test-e2e LOCAL=false TARGET_BRANCH="${{ inputs.target-branch || github.ref_name }}" HELM_TIMEOUT=${{ vars.E2E_HELM_TIMEOUT || '25m' }} | ||
| run: | | ||
| make test-e2e LOCAL=false \ | ||
| TARGET_BRANCH="${{ env.TARGET_BRANCH }}" \ | ||
| IMAGE_TAG="${{ env.IMAGE_TAG }}" \ | ||
|
rm3l marked this conversation as resolved.
|
||
| HELM_TIMEOUT=${{ vars.E2E_HELM_TIMEOUT || '25m' }} | ||
|
|
||
| - name: Display must-gather process logs | ||
| if: ${{ success() || failure() }} | ||
|
|
@@ -50,35 +67,50 @@ jobs: | |
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: e2e-must-gather-output-nightly | ||
| name: e2e-must-gather-output-nightly-${{ matrix.branch }} | ||
| path: e2e-cluster.mustgather.tar.gz | ||
| retention-days: 7 | ||
|
|
||
| - name: Upload must-gather output | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: must-gather-output-nightly | ||
| name: must-gather-output-nightly-${{ matrix.branch }} | ||
| path: | | ||
| rhdh-must-gather-output.k8s.*.tar.gz | ||
| rhdh-must-gather-output.k8s.*/ | ||
| retention-days: 7 | ||
|
|
||
| e2e-tests-heap-dumps: | ||
| name: Nightly E2E Tests (Heap Dumps - ${{ matrix.method }}) | ||
| name: Nightly E2E Tests Heap Dumps (${{ matrix.branch }} - ${{ matrix.method }}) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| branch: | ||
| - main | ||
| - release-1.10 | ||
|
NiallTwomey2 marked this conversation as resolved.
|
||
| - release-2.1 | ||
| method: [auto, inspector, sigusr2] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | ||
| with: | ||
| ref: ${{ matrix.branch }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set branch test variables | ||
| run: | | ||
| branch="${{ matrix.branch }}" | ||
| echo "TARGET_BRANCH=${branch}" >> "$GITHUB_ENV" | ||
| if [ "$branch" = "main" ]; then | ||
| echo "IMAGE_TAG=latest" >> "$GITHUB_ENV" | ||
| else | ||
| echo "IMAGE_TAG=latest-${branch#release-}" >> "$GITHUB_ENV" | ||
| fi | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
|
|
@@ -96,10 +128,17 @@ jobs: | |
| - name: Run E2E tests with heap dumps (${{ matrix.method }} method) | ||
| run: | | ||
| if [ "${{ matrix.method }}" = "auto" ]; then | ||
| # Auto: let the tool use its built-in default method (inspector) | ||
| make test-e2e LOCAL=false WITH_HEAP_DUMPS=true TARGET_BRANCH="${{ inputs.target-branch || github.ref_name }}" HELM_TIMEOUT=${{ vars.E2E_HELM_TIMEOUT || '25m' }} | ||
| # Auto: let the tool use its built in default method (inspector) | ||
| make test-e2e LOCAL=false WITH_HEAP_DUMPS=true \ | ||
| TARGET_BRANCH="${{ env.TARGET_BRANCH }}" \ | ||
| IMAGE_TAG="${{ env.IMAGE_TAG }}" \ | ||
| HELM_TIMEOUT=${{ vars.E2E_HELM_TIMEOUT || '25m' }} | ||
| else | ||
| make test-e2e LOCAL=false WITH_HEAP_DUMPS=true HEAP_DUMP_METHOD=${{ matrix.method }} TARGET_BRANCH="${{ inputs.target-branch || github.ref_name }}" HELM_TIMEOUT=${{ vars.E2E_HELM_TIMEOUT || '25m' }} | ||
| make test-e2e LOCAL=false WITH_HEAP_DUMPS=true \ | ||
| HEAP_DUMP_METHOD="${{ matrix.method }}" \ | ||
| TARGET_BRANCH="${{ env.TARGET_BRANCH }}" \ | ||
| IMAGE_TAG="${{ env.IMAGE_TAG }}" \ | ||
| HELM_TIMEOUT=${{ vars.E2E_HELM_TIMEOUT || '25m' }} | ||
| fi | ||
|
|
||
| - name: Display must-gather process logs | ||
|
|
@@ -111,15 +150,15 @@ jobs: | |
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: e2e-must-gather-output-heap-dumps-${{ matrix.method }}-nightly | ||
| name: e2e-must-gather-output-heap-dumps-${{ matrix.method }}-${{ matrix.branch }}-nightly | ||
| path: e2e-cluster.mustgather.tar.gz | ||
| retention-days: 7 | ||
|
|
||
| - name: Upload must-gather output | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: must-gather-output-heap-dumps-${{ matrix.method }}-nightly | ||
| name: must-gather-output-heap-dumps-${{ matrix.branch }}-${{ matrix.method }}-nightly | ||
| path: | | ||
| rhdh-must-gather-output.k8s.*.tar.gz | ||
| rhdh-must-gather-output.k8s.*/ | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.