-
Notifications
You must be signed in to change notification settings - Fork 12
Frontend charm integration test run bugfix #20
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
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
0d44757
Define the dependencies more exactly to get the integration tests run…
mz2 97e8d4c
juju 3.1/stable -> 3.0/stable
mz2 a055701
Install strictly confined versions of juju and microk8s.
mz2 672ea62
Use microk8s 1.27-strict/stable
mz2 6c11eb5
Adds package repo access to the integration test job
mz2 5c149e2
Add the containerd template modification
mz2 11cf30b
Adds some missing sudoing
mz2 6e8375a
From >> to tee -a
mz2 97f1531
Drop the docker login
mz2 1478f45
Oops, escaping quotes did not work quite right there.
mz2 b03e015
Adjust the integration test scenario, expecting rather than raising o…
mz2 55b9436
Drops the debugging intended branch from the list of branches to trig…
mz2 cde6b80
Change to maintenance status instead for clarity, since configuration…
mz2 1ed9d5f
Adds the "integration-test-fix" branch into the rule still
mz2 0a30cee
Adds a 503 response / maintenance status to the frontend application …
mz2 bf2859c
Removs the redundant import StoredState
mz2 2fc065f
Add a `microk8s status --wait-ready`
mz2 06a258e
Adds missing sudo
mz2 4af3b2a
Merge branch 'main' into integration-test-fix
nadzyah 0db5736
Merge branch 'main' into integration-test-fix
nadzyah 8417af7
Merge branch 'main' into integration-test-fix
nadzyah a3a5404
Let's try with the microk8s version + libpyjuju < 3.1
mz2 e90849c
Merge branch 'integration-test-fix' of github.com:canonical/test_obse…
mz2 234b1aa
Back to 5.13/stable for lxd
mz2 fd3ed35
2.9/stable -> 3.0/stable
mz2 63f4d6f
Trying with the non-strictly confined microk8s
mz2 acf47ce
Adds "publish-charm" job
mz2 b03dddb
Adds promotion action
mz2 7348559
Swap to self-hosted runners
mz2 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
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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Promote Charm | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| promotion: | ||
| type: choice | ||
| description: Channel to promote from | ||
| options: | ||
| - edge -> beta | ||
| - beta -> candidate | ||
| - candidate -> stable | ||
|
|
||
| jobs: | ||
| promote: | ||
| name: Promote Charm | ||
| runs-on: [self-hosted, linux] | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Set target channel | ||
| env: | ||
| PROMOTE_FROM: ${{ github.event.inputs.promotion }} | ||
| run: | | ||
| if [ "${PROMOTE_FROM}" == "edge -> beta" ]; then | ||
| echo "promote-from=edge" >> ${GITHUB_ENV} | ||
| echo "promote-to=beta" >> ${GITHUB_ENV} | ||
| elif [ "${PROMOTE_FROM}" == "beta -> candidate" ]; then | ||
| echo "promote-from=beta" >> ${GITHUB_ENV} | ||
| echo "promote-to=candidate" >> ${GITHUB_ENV} | ||
| elif [ "${PROMOTE_FROM}" == "candidate -> stable" ]; then | ||
| echo "promote-from=candidate" >> ${GITHUB_ENV} | ||
| echo "promote-to=stable" >> ${GITHUB_ENV} | ||
| fi | ||
| - name: Promote Charm | ||
| uses: canonical/charming-actions/release-charm@2.2.0 | ||
| with: | ||
| base-channel: 22.04 | ||
| credentials: ${{ secrets.CHARMHUB_TOKEN }} | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
| destination-channel: latest/${{ env.promote-to }} | ||
| origin-channel: latest/${{ env.promote-from }} | ||
| charmcraft-channel: latest/stable |
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest that we actually keep this in there because I imagine this will not be the last case where we have to open a branch & PR to fix integration tests issues, and it's awkward having to add a rule each time (or to tag all the time).