mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
CI Maintenance: Disable machine tests
Older versions of podman machine do not support being run against the latest version of the machine VM images. As there is no built-in provision to pin older machine VM image versions, these tests will simply fail forever. Disable them. Also disable 'bench_stuff' as it is everywhere else. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
97
.cirrus.yml
97
.cirrus.yml
@ -671,93 +671,6 @@ rootless_integration_test_task:
|
||||
always: *int_logs_artifacts
|
||||
|
||||
|
||||
podman_machine_task:
|
||||
name: *std_name_fmt
|
||||
alias: podman_machine
|
||||
# Don't create task for tags, or if using [CI:DOCS], [CI:BUILD], multiarch
|
||||
# Docs: ./contrib/cirrus/CIModes.md
|
||||
only_if: ¬_tag_build_docs_multiarch >-
|
||||
$CIRRUS_TAG == '' &&
|
||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
|
||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:BUILD.*' &&
|
||||
$CIRRUS_CRON != 'multiarch'
|
||||
depends_on:
|
||||
- build
|
||||
- local_integration_test
|
||||
- remote_integration_test
|
||||
- container_integration_test
|
||||
- rootless_integration_test
|
||||
experimental: true # Enable labeling of EC2 VMs with cirrus task ID
|
||||
ec2_instance:
|
||||
image: "${VM_IMAGE_NAME}"
|
||||
type: "${EC2_INST_TYPE}"
|
||||
region: us-east-1
|
||||
env:
|
||||
EC2_INST_TYPE: "m5zn.metal" # Bare-metal instance is required
|
||||
TEST_FLAVOR: "machine"
|
||||
PRIV_NAME: "rootless" # intended use-case
|
||||
DISTRO_NV: "${FEDORA_NAME}"
|
||||
VM_IMAGE_NAME: "${FEDORA_AMI}"
|
||||
CI_DESIRED_NETWORK: netavark
|
||||
clone_script: *get_gosrc
|
||||
setup_script: *setup
|
||||
main_script: *main
|
||||
always: &machine_logs_benchmarks
|
||||
<<: *int_logs_artifacts
|
||||
benchmark_artifacts:
|
||||
path: ./data/*
|
||||
|
||||
|
||||
podman_machine_aarch64_task:
|
||||
name: *std_name_fmt
|
||||
alias: podman_machine_aarch64
|
||||
only_if: *not_tag_build_docs_multiarch
|
||||
depends_on:
|
||||
- build_aarch64
|
||||
- validate_aarch64
|
||||
- local_integration_test
|
||||
- remote_integration_test
|
||||
- container_integration_test
|
||||
- rootless_integration_test
|
||||
experimental: true # Enable labeling of EC2 VMs with cirrus task ID
|
||||
ec2_instance:
|
||||
<<: *standard_build_ec2_aarch64
|
||||
env:
|
||||
TEST_FLAVOR: "machine"
|
||||
EC2_INST_TYPE: c6g.metal
|
||||
PRIV_NAME: "rootless" # intended use-case
|
||||
DISTRO_NV: "${FEDORA_AARCH64_NAME}"
|
||||
VM_IMAGE_NAME: "${FEDORA_AARCH64_AMI}"
|
||||
CI_DESIRED_NETWORK: netavark
|
||||
clone_script: *get_gosrc_aarch64
|
||||
setup_script: *setup
|
||||
main_script: *main
|
||||
always: *machine_logs_benchmarks
|
||||
|
||||
|
||||
bench_stuff_task:
|
||||
name: Record machine benchmarks
|
||||
alias: bench_stuff
|
||||
# Only run on merge and never for cirrus-cron.
|
||||
only_if: $CIRRUS_BRANCH == 'main' && $CIRRUS_CRON == ''
|
||||
depends_on:
|
||||
- podman_machine
|
||||
- podman_machine_aarch64
|
||||
gce_instance: *standardvm
|
||||
env:
|
||||
<<: *stdenvars
|
||||
PR: podman run -it --rm -v /tmp/data:/tmp/data:Z -w /tmp/data
|
||||
GACJSON: ENCRYPTED[acd4a8bd843dab6dd135c379a2819546187fd2c7ce43e5839c6db4c798ed652f5b456f5d1716afef662554ee94e098ee]
|
||||
clone_script: &noop mkdir -p $CIRRUS_WORKING_DIR
|
||||
script:
|
||||
- mkdir /tmp/data
|
||||
# Download benchmark.env and benchmark.csv from podman-machine tasks
|
||||
- $PR quay.io/libpod/ccia $CIRRUS_BUILD_ID benchmark/data
|
||||
- podman secret create --env GACJSON GACJSON
|
||||
# Parse and upload benchmark data to GCE firestore database
|
||||
- $PR --secret GACJSON -e GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/GACJSON quay.io/libpod/bench_stuff ./$CIRRUS_BUILD_ID
|
||||
|
||||
|
||||
# Always run subsequent to integration tests. While parallelism is lost
|
||||
# with runtime, debugging system-test failures can be more challenging
|
||||
# for some golang developers. Otherwise the following tasks run across
|
||||
@ -765,7 +678,11 @@ bench_stuff_task:
|
||||
local_system_test_task: &local_system_test_task
|
||||
name: *std_name_fmt
|
||||
alias: local_system_test
|
||||
only_if: *not_tag_build_docs_multiarch
|
||||
only_if: ¬_tag_build_docs_multiarch >-
|
||||
$CIRRUS_TAG == '' &&
|
||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*' &&
|
||||
$CIRRUS_CHANGE_TITLE !=~ '.*CI:BUILD.*' &&
|
||||
$CIRRUS_CRON != 'multiarch'
|
||||
depends_on: *build_unit
|
||||
matrix: *platform_axis
|
||||
gce_instance: *standardvm
|
||||
@ -1019,7 +936,7 @@ meta_task:
|
||||
GCPJSON: ENCRYPTED[3a198350077849c8df14b723c0f4c9fece9ebe6408d35982e7adf2105a33f8e0e166ed3ed614875a0887e1af2b8775f4]
|
||||
GCPNAME: ENCRYPTED[2f9738ef295a706f66a13891b40e8eaa92a89e0e87faf8bed66c41eca72bf76cfd190a6f2d0e8444c631fdf15ed32ef6]
|
||||
GCPPROJECT: libpod-218412
|
||||
clone_script: *noop
|
||||
clone_script: &noop mkdir -p $CIRRUS_WORKING_DIR
|
||||
script: /usr/local/bin/entrypoint.sh
|
||||
|
||||
|
||||
@ -1049,8 +966,6 @@ success_task:
|
||||
- remote_integration_test
|
||||
- container_integration_test
|
||||
- rootless_integration_test
|
||||
- podman_machine
|
||||
- podman_machine_aarch64
|
||||
- local_system_test
|
||||
- local_system_test_aarch64
|
||||
- remote_system_test
|
||||
|
@ -26,7 +26,7 @@ class TestCaseBase(unittest.TestCase):
|
||||
class TestDependsOn(TestCaseBase):
|
||||
|
||||
ALL_TASK_NAMES = None
|
||||
SUCCESS_DEPS_EXCLUDE = set(['success', 'bench_stuff', 'artifacts',
|
||||
SUCCESS_DEPS_EXCLUDE = set(['success', 'artifacts',
|
||||
'test_image_build', 'release', 'release_test'])
|
||||
|
||||
def setUp(self):
|
||||
|
Reference in New Issue
Block a user