generated from canonical/template-operator
-
Notifications
You must be signed in to change notification settings - Fork 18
[DPE-8315] Split integration and release tests #702
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
9 commits
Select commit
Hold shift + click to select a range
4a89f05
Move integration tests to own folder
sinclert-canonical 3898e72
Move release tests to own folder
sinclert-canonical a8f5d8b
Simplify arch inferring helper
sinclert-canonical a376ec7
Update integration spread suite
sinclert-canonical 1ef9acf
Define release spread suite
sinclert-canonical d536165
Refactor CI and release workflow
sinclert-canonical e4a7bcd
Make release tests parallelizable
sinclert-canonical a7789c0
Apply Carl suggestions
sinclert-canonical 4fc8f84
Apply Paulo suggestions
sinclert-canonical 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
Some comments aren't visible on the classic Files Changed page.
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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Copyright 2022 Canonical Ltd. | ||
| # See LICENSE file for licensing details. | ||
| name: Tests | ||
| name: Pull request | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
|
|
@@ -12,14 +12,6 @@ on: | |
| - '**.md' | ||
| - '.github/renovate.json5' | ||
| - 'docs/**' | ||
| schedule: | ||
| - cron: '53 0 * * *' # Daily at 00:53 UTC | ||
| # Triggered on push to branch "main" by .github/workflows/release.yaml | ||
| workflow_call: | ||
| outputs: | ||
| artifact-prefix: | ||
| description: build_charm.yaml `artifact-prefix` output | ||
| value: ${{ jobs.build.outputs.artifact-prefix }} | ||
|
|
||
| jobs: | ||
| lint: | ||
|
|
@@ -76,7 +68,7 @@ jobs: | |
| uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
|
|
||
| integration-test: | ||
| name: Integration test charm | ||
| name: Integration tests | ||
| needs: | ||
| - lint | ||
| - unit-test | ||
|
|
||
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
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 |
|---|---|---|
|
|
@@ -9,20 +9,46 @@ | |
| paths-ignore: | ||
| - 'docs/**' | ||
| - '.github/renovate.json5' | ||
| - '.github/workflows/automatic-doc-checks.yml' | ||
| - '.github/workflows/ci.yaml' | ||
| - '.github/workflows/check_libs.yaml' | ||
| - '.github/workflows/check_pr.yaml' | ||
| - '.github/workflows/schedule.yaml' | ||
| - '.github/workflows/tiobe_scan.yaml' | ||
|
|
||
| jobs: | ||
| ci-tests: | ||
| name: Tests | ||
| uses: ./.github/workflows/ci.yaml | ||
| build: | ||
| name: Build charm | ||
| uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
|
|
||
| integration-tests: | ||
| name: Integration tests | ||
| needs: | ||
| - build | ||
| uses: ./.github/workflows/integration_test.yaml | ||
| with: | ||
| artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | ||
| secrets: inherit | ||
| permissions: | ||
| contents: write # Needed for Allure Report | ||
|
|
||
| release-tests: | ||
| name: Release tests | ||
| needs: | ||
| - build | ||
| uses: ./.github/workflows/release_test.yaml | ||
| with: | ||
| artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | ||
| secrets: inherit | ||
| permissions: | ||
| contents: write # Needed for Allure Report | ||
sinclert-canonical marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| release-libraries: | ||
| name: Release libraries | ||
| needs: | ||
| - ci-tests | ||
| - build | ||
| - integration-tests | ||
| - release-tests | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 60 | ||
| steps: | ||
|
|
@@ -42,11 +68,13 @@ | |
| release: | ||
| name: Release charm | ||
| needs: | ||
| - ci-tests | ||
| - build | ||
| - integration-tests | ||
| - release-tests | ||
| uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
| with: | ||
| track: '8.0' | ||
| artifact-prefix: ${{ needs.ci-tests.outputs.artifact-prefix }} | ||
| artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} | ||
| secrets: | ||
| charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | ||
| permissions: | ||
|
|
||
Oops, something went wrong.
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.