mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-25 08:15:18 -04:00
AB#2288: Fix/kernel panic (#328)
* More debug info & don't use guestfish * Sync image runner script with deployed code * Add missing = for --wait in sonobuoy action Co-authored-by: <mp@edgeless.systems>
This commit is contained in:
parent
19871ee422
commit
1859dc1718
4 changed files with 35 additions and 43 deletions
16
.github/actions/sonobuoy/action.yml
vendored
16
.github/actions/sonobuoy/action.yml
vendored
|
@ -2,14 +2,14 @@ name: sonobuoy
|
||||||
description: "Executed the e2e test framework sonobuoy."
|
description: "Executed the e2e test framework sonobuoy."
|
||||||
inputs:
|
inputs:
|
||||||
sonobuoyVersion:
|
sonobuoyVersion:
|
||||||
description: 'Version of sonobuoy test CLI to use.'
|
description: "Version of sonobuoy test CLI to use."
|
||||||
default: '0.56.4'
|
default: "0.56.4"
|
||||||
required: true
|
required: true
|
||||||
sonobuoyTestSuiteCmd:
|
sonobuoyTestSuiteCmd:
|
||||||
description: 'Which tests should be run?'
|
description: "Which tests should be run?"
|
||||||
required: true
|
required: true
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Install sonobuoy
|
- name: Install sonobuoy
|
||||||
run: |
|
run: |
|
||||||
|
@ -22,7 +22,7 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Run quick e2e test
|
- name: Run quick e2e test
|
||||||
run: sonobuoy run --wait 300 ${{ inputs.sonobuoyTestSuiteCmd }} --kubeconfig constellation-admin.conf
|
run: sonobuoy run --wait=300 ${{ inputs.sonobuoyTestSuiteCmd }} --kubeconfig constellation-admin.conf
|
||||||
shell: bash
|
shell: bash
|
||||||
- name: Download results
|
- name: Download results
|
||||||
run: sonobuoy retrieve -x --kubeconfig constellation-admin.conf
|
run: sonobuoy retrieve -x --kubeconfig constellation-admin.conf
|
||||||
|
@ -30,12 +30,12 @@ runs:
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
|
||||||
with:
|
with:
|
||||||
name: 'junit_01.xml'
|
name: "junit_01.xml"
|
||||||
path: '**/junit_01.xml'
|
path: "**/junit_01.xml"
|
||||||
if: ${{ always() && !env.ACT }}
|
if: ${{ always() && !env.ACT }}
|
||||||
- name: Publish test results
|
- name: Publish test results
|
||||||
uses: mikepenz/action-junit-report@1b47bb811362f3d8d753fc148cb7a13ec9e55570
|
uses: mikepenz/action-junit-report@1b47bb811362f3d8d753fc148cb7a13ec9e55570
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
report_paths: '**/junit_01.xml'
|
report_paths: "**/junit_01.xml"
|
||||||
fail_on_failure: true
|
fail_on_failure: true
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -xeuo pipefail
|
||||||
|
|
||||||
# Show progress on pipes if `pv` is installed
|
# Show progress on pipes if `pv` is installed
|
||||||
# Otherwise use plain cat
|
# Otherwise use plain cat
|
||||||
|
@ -14,11 +14,6 @@ mount_partition () {
|
||||||
local partition_file=$1
|
local partition_file=$1
|
||||||
local mountpoint=$2
|
local mountpoint=$2
|
||||||
|
|
||||||
# use guestmount if possible
|
|
||||||
if command -v guestmount &> /dev/null && guestmount -a "${partition_file}" -m /dev/sda "${mountpoint}"; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# second, try to mount as current user
|
# second, try to mount as current user
|
||||||
if mount -o loop "${partition_file}" "${mountpoint}"; then
|
if mount -o loop "${partition_file}" "${mountpoint}"; then
|
||||||
return
|
return
|
||||||
|
@ -31,13 +26,9 @@ mount_partition () {
|
||||||
}
|
}
|
||||||
|
|
||||||
umount_partition () {
|
umount_partition () {
|
||||||
|
sync
|
||||||
local mountpoint=$1
|
local mountpoint=$1
|
||||||
|
|
||||||
# use guestunmount if possible
|
|
||||||
if command -v guestunmount &> /dev/null && guestunmount "${mountpoint}"; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
# second, try to umount as current user
|
# second, try to umount as current user
|
||||||
if umount "${mountpoint}"; then
|
if umount "${mountpoint}"; then
|
||||||
return
|
return
|
||||||
|
|
|
@ -18,6 +18,7 @@ packages:
|
||||||
- lsb-release
|
- lsb-release
|
||||||
- jq
|
- jq
|
||||||
- pv
|
- pv
|
||||||
|
- sed
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
- [sudo, chmod, "+r", "/boot/vmlinuz*"]
|
- [sudo, chmod, "+r", "/boot/vmlinuz*"]
|
||||||
|
|
|
@ -85,7 +85,7 @@ def create_instance(
|
||||||
zone: str = 'us-central1-c',
|
zone: str = 'us-central1-c',
|
||||||
instance_name: str = 'coreos-builder',
|
instance_name: str = 'coreos-builder',
|
||||||
machine_type: str = "n2-highmem-4",
|
machine_type: str = "n2-highmem-4",
|
||||||
source_image: str = "projects/ubuntu-os-cloud/global/images/ubuntu-2110-impish-v20220118",
|
source_image: str = "projects/ubuntu-os-cloud/global/images/family/ubuntu-2004-lts",
|
||||||
network_name: str = "global/networks/default",
|
network_name: str = "global/networks/default",
|
||||||
disk_size_gb: int = 64,
|
disk_size_gb: int = 64,
|
||||||
enable_nested_virtualization: bool = True,
|
enable_nested_virtualization: bool = True,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue