-
Notifications
You must be signed in to change notification settings - Fork 20
Test quick start and clean workflow before releasing images #92
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
ggiguash
merged 5 commits into
microshift-io:main
from
ggiguash:ci-workflow-improvements
Oct 17, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
94f5ff1
Fix release.md instructions
ggiguash 0ae370f
Fix quick clean command in installers.yaml
ggiguash 3bc9b05
Move quick start and clean process into a separate action
ggiguash 1a29d7f
Add local container image quick test before publishing it
ggiguash 419268a
Implement debug-info action calling it before and after the build
ggiguash 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: debug-info | ||
| description: Reusable action to collect debug information | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Collect debug information | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| set -x | ||
|
|
||
| # Collect partition, volume and disk usage information | ||
| sudo fdisk -l | ||
| sudo lsblk -a | ||
| sudo df -h | ||
| sudo vgs || true | ||
| sudo lvs || true | ||
| sudo pvs || true | ||
|
|
||
| # Collect container and image information from the host | ||
| sudo podman system df | ||
| sudo podman ps -a | ||
| sudo podman images | ||
|
|
||
| # Collect logs from all running containers | ||
| for container in $(sudo podman ps -a --format "{{.Names}}") ; do | ||
| sudo podman logs "${container}" || true | ||
| done | ||
|
|
||
| # List the contents of the /mnt directory to debug any issues | ||
| # with the disk space | ||
| sudo ls -lah /mnt | ||
| sudo du -h -d1 /mnt |
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,39 @@ | ||
| name: quick-start-clean | ||
| description: Reusable action to run the quick start and clean scripts | ||
|
|
||
| inputs: | ||
| image-ref: | ||
| description: Image reference to use for the MicroShift container | ||
| required: false | ||
| default: "" | ||
| type: string | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Run the quick start script | ||
| shell: bash | ||
| run: | | ||
| set -xeuo pipefail | ||
| sudo IMAGE_REF=${{ inputs.image-ref }} bash -xeuo pipefail < ./src/quickstart.sh | ||
|
|
||
| # Wait until the MicroShift service is ready and healthy | ||
| make run-ready | ||
| make run-healthy | ||
|
|
||
| - name: Run the quick clean script | ||
| shell: bash | ||
| run: | | ||
| set -xeuo pipefail | ||
| sudo bash -xeuo pipefail < ./src/quickclean.sh | ||
|
|
||
| # Verify the container and its image are removed | ||
| sudo podman ps -a | grep microshift-okd && exit 1 | ||
| sudo podman images | grep microshift-okd && exit 1 | ||
|
|
||
| # Verify the LVM volume group and backing storage are removed | ||
| sudo vgs | grep myvg1 && exit 1 | ||
| if [ -e /var/lib/microshift-okd ]; then | ||
| ls -la /var/lib/microshift-okd/ | ||
| exit 1 | ||
| fi |
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.
Uh oh!
There was an error while loading. Please reload this page.