mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-21 09:25:19 +00:00
Merge pull request #11061 from RuoqingHe/2025-03-21-generalize-non-kvm
ci: Generalize `GITHUB_RUNNER_CI_ARM64`
This commit is contained in:
commit
17baa6199b
2
.github/workflows/build-checks.yaml
vendored
2
.github/workflows/build-checks.yaml
vendored
@ -115,7 +115,7 @@ jobs:
|
|||||||
- name: Skip tests that depend on virtualization capable runners when needed
|
- name: Skip tests that depend on virtualization capable runners when needed
|
||||||
if: ${{ endsWith(inputs.instance, '-arm') }}
|
if: ${{ endsWith(inputs.instance, '-arm') }}
|
||||||
run: |
|
run: |
|
||||||
echo "GITHUB_RUNNER_CI_ARM64=true" >> "$GITHUB_ENV"
|
echo "GITHUB_RUNNER_CI_NON_VIRT=true" >> "$GITHUB_ENV"
|
||||||
- name: Running `${{ matrix.command }}` for ${{ matrix.component.name }}
|
- name: Running `${{ matrix.command }}` for ${{ matrix.component.name }}
|
||||||
run: |
|
run: |
|
||||||
cd ${{ matrix.component.path }}
|
cd ${{ matrix.component.path }}
|
||||||
|
@ -25,7 +25,7 @@ func setupCheckHostIsVMContainerCapable(assert *assert.Assertions, cpuInfoFile s
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestCCCheckCLIFunction(t *testing.T) {
|
func TestCCCheckCLIFunction(t *testing.T) {
|
||||||
if os.Getenv("GITHUB_RUNNER_CI_ARM64") == "true" {
|
if os.Getenv("GITHUB_RUNNER_CI_NON_VIRT") == "true" {
|
||||||
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ func getExpectedHostDetails(tmpdir string) (HostInfo, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEnvGetEnvInfoSetsCPUType(t *testing.T) {
|
func TestEnvGetEnvInfoSetsCPUType(t *testing.T) {
|
||||||
if os.Getenv("GITHUB_RUNNER_CI_ARM64") == "true" {
|
if os.Getenv("GITHUB_RUNNER_CI_NON_VIRT") == "true" {
|
||||||
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
||||||
}
|
}
|
||||||
testEnvGetEnvInfoSetsCPUTypeGeneric(t)
|
testEnvGetEnvInfoSetsCPUTypeGeneric(t)
|
||||||
|
@ -375,7 +375,7 @@ func TestEnvGetMetaInfo(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEnvGetHostInfo(t *testing.T) {
|
func TestEnvGetHostInfo(t *testing.T) {
|
||||||
if os.Getenv("GITHUB_RUNNER_CI_ARM64") == "true" {
|
if os.Getenv("GITHUB_RUNNER_CI_NON_VIRT") == "true" {
|
||||||
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ func TestEnvGetHostInfoNoProcVersion(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEnvGetEnvInfo(t *testing.T) {
|
func TestEnvGetEnvInfo(t *testing.T) {
|
||||||
if os.Getenv("GITHUB_RUNNER_CI_ARM64") == "true" {
|
if os.Getenv("GITHUB_RUNNER_CI_NON_VIRT") == "true" {
|
||||||
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ func TestEnvGetEnvInfo(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEnvGetEnvInfoNoHypervisorVersion(t *testing.T) {
|
func TestEnvGetEnvInfoNoHypervisorVersion(t *testing.T) {
|
||||||
if os.Getenv("GITHUB_RUNNER_CI_ARM64") == "true" {
|
if os.Getenv("GITHUB_RUNNER_CI_NON_VIRT") == "true" {
|
||||||
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
t.Skip("Skipping the test as the GitHub self hosted runners for ARM64 do not support Virtualization")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user