Skip to content

Commit

Permalink
Merge pull request #23805 from Luap99/cirrus-timeouts
Browse files Browse the repository at this point in the history
CI: some cirrus setup improvements/speedups
  • Loading branch information
openshift-merge-bot[bot] authored Aug 29, 2024
2 parents 2b3052e + 6a0ab6f commit f3db6b1
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 163 deletions.
60 changes: 14 additions & 46 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ env:
# Default timeout for each task
timeout_in: 60m
timeout_in: 20m


gcp_credentials: ENCRYPTED[a28959877b2c9c36f151781b0a05407218cda646c7d047fc556e42f55e097e897ab63ee78369dae141dcf0b46a9d0cdd]
Expand Down Expand Up @@ -240,15 +240,15 @@ alt_build_task:
# binary and archive installation zip file.
ALT_NAME: 'Windows Cross' # N/B: Referenced by URLencoded strings elsewhere
- env:
ALT_NAME: 'Alt Arch. x86 Cross' # N/B: Referenced by URLencoded strings elsewhere
ALT_NAME: 'Alt Arch. x86 Cross'
- env:
ALT_NAME: 'Alt Arch. ARM Cross' # N/B: Referenced by URLencoded strings elsewhere
ALT_NAME: 'Alt Arch. ARM Cross'
- env:
ALT_NAME: 'Alt Arch. MIPS Cross' # N/B: Referenced by URLencoded strings elsewhere
ALT_NAME: 'Alt Arch. MIPS Cross'
- env:
ALT_NAME: 'Alt Arch. MIPS64 Cross' # N/B: Referenced by URLencoded strings elsewhere
ALT_NAME: 'Alt Arch. MIPS64 Cross'
- env:
ALT_NAME: 'Alt Arch. Other Cross' # N/B: Referenced by URLencoded strings elsewhere
ALT_NAME: 'Alt Arch. Other Cross'
# This task cannot make use of the shared repo.tbz artifact.
clone_script: *full_clone
setup_script: *setup
Expand Down Expand Up @@ -559,9 +559,6 @@ apiv2_test_task:
(changesInclude('**/*.go', '**/*.c', '**/*.h') && !changesIncludeOnly('test/**', 'pkg/machine/e2e/**'))
depends_on: *build
gce_instance: *standardvm
# Test is normally pretty quick, about 10-minutes. If it hangs,
# don't make developers wait the full 1-hour timeout.
timeout_in: 20m
env:
<<: *stdenvars
TEST_FLAVOR: apiv2
Expand Down Expand Up @@ -628,7 +625,6 @@ local_integration_test_task: &local_integration_test_task
gce_instance: &fastvm
<<: *standardvm
cpu: 4
timeout_in: 30m
env:
TEST_FLAVOR: int
clone_script: *get_gosrc
Expand All @@ -639,9 +635,6 @@ local_integration_test_task: &local_integration_test_task
ginkgo_node_logs_artifacts:
path: ./test/e2e/ginkgo-node-*.log
type: text/plain
ginkgo_json_artifacts:
path: ./ginkgo-e2e.json
type: application/json


# Nearly identical to `local_integration_test` except all operations
Expand Down Expand Up @@ -674,7 +667,6 @@ container_integration_test_task:
CTR_FQIN: ${PRIOR_FEDORA_CONTAINER_FQIN}
CI_DESIRED_DATABASE: boltdb
gce_instance: *fastvm
timeout_in: 30m
env:
TEST_FLAVOR: int
TEST_ENVIRON: container
Expand All @@ -693,7 +685,6 @@ rootless_integration_test_task:
depends_on: *build
matrix: *platform_axis
gce_instance: *fastvm
timeout_in: 30m
env:
TEST_FLAVOR: int
PRIV_NAME: rootless
Expand All @@ -719,6 +710,7 @@ podman_machine_task:
image: "${VM_IMAGE_NAME}"
type: "${EC2_INST_TYPE}"
region: us-east-1
timeout_in: 30m
env:
EC2_INST_TYPE: "m5zn.metal" # Bare-metal instance is required
TEST_FLAVOR: "machine-linux"
Expand All @@ -738,6 +730,7 @@ podman_machine_aarch64_task:
depends_on: *build
ec2_instance:
<<: *standard_build_ec2_aarch64
timeout_in: 30m
env:
TEST_FLAVOR: "machine-linux"
EC2_INST_TYPE: c6g.metal
Expand Down Expand Up @@ -772,6 +765,7 @@ podman_machine_windows_task:
<<: *windows
type: m5zn.metal
platform: windows
timeout_in: 45m
env: *winenv
matrix:
- env:
Expand All @@ -794,6 +788,7 @@ podman_machine_mac_task:
skip: *skip_rhel_release
depends_on: *build
persistent_worker: *mac_pw
timeout_in: 35m
env:
<<: *mac_env
DISTRO_NV: "darwin"
Expand Down Expand Up @@ -850,6 +845,7 @@ local_system_test_task: &local_system_test_task
depends_on: *build
matrix: *platform_axis
gce_instance: *standardvm
timeout_in: 35m
env:
TEST_FLAVOR: sys
clone_script: *get_gosrc
Expand All @@ -864,8 +860,8 @@ local_system_test_aarch64_task: &local_system_test_task_aarch64
# Docs: ./contrib/cirrus/CIModes.md
only_if: *only_if_system_test
depends_on: *build
persistent_worker: *mac_pw
ec2_instance: *standard_build_ec2_aarch64
timeout_in: 35m
env:
<<: *stdenvars_aarch64
TEST_FLAVOR: sys
Expand Down Expand Up @@ -903,6 +899,7 @@ rootless_remote_system_test_task:
<<: *local_system_test_task
alias: rootless_remote_system_test
gce_instance: *standardvm
timeout_in: 35m
env:
TEST_FLAVOR: sys
PODBIN_NAME: remote
Expand All @@ -917,6 +914,7 @@ rootless_system_test_task:
depends_on: *build
matrix: *platform_axis
gce_instance: *standardvm
timeout_in: 35m
env:
TEST_FLAVOR: sys
PRIV_NAME: rootless
Expand Down Expand Up @@ -1118,36 +1116,6 @@ artifacts_task:
- $ARTCURL/Build%20for%20${FEDORA_NAME}/repo/repo.tbz
- tar xjf repo.tbz
- cp ./bin/* $CIRRUS_WORKING_DIR/
alt_binaries_intel_script:
- mkdir -p /tmp/alt
- cd /tmp/alt
- $ARTCURL/Alt%20Arch.%20x86%20Cross/repo/repo.tbz
- tar xjf repo.tbz
- mv ./*.tar.gz $CIRRUS_WORKING_DIR/
alt_binaries_arm_script:
- mkdir -p /tmp/alt
- cd /tmp/alt
- $ARTCURL/Alt%20Arch.%20ARM%20Cross/repo/repo.tbz
- tar xjf repo.tbz
- mv ./*.tar.gz $CIRRUS_WORKING_DIR/
alt_binaries_mips_script:
- mkdir -p /tmp/alt
- cd /tmp/alt
- $ARTCURL/Alt%20Arch.%20MIPS%20Cross/repo/repo.tbz
- tar xjf repo.tbz
- mv ./*.tar.gz $CIRRUS_WORKING_DIR/
alt_binaries_mips64_script:
- mkdir -p /tmp/alt
- cd /tmp/alt
- $ARTCURL/Alt%20Arch.%20MIPS64%20Cross/repo/repo.tbz
- tar xjf repo.tbz
- mv ./*.tar.gz $CIRRUS_WORKING_DIR/
alt_binaries_other_script:
- mkdir -p /tmp/alt
- cd /tmp/alt
- $ARTCURL/Alt%20Arch.%20Other%20Cross/repo/repo.tbz
- tar xjf repo.tbz
- mv ./*.tar.gz $CIRRUS_WORKING_DIR/
win_binaries_script:
- mkdir -p /tmp/win
- cd /tmp/win
Expand Down
10 changes: 0 additions & 10 deletions DOWNLOADS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,3 @@ matches corresponding changes in the artifacts task.
and
[darwin_arm64](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-remote-release-darwin_arm64.zip).
* Windows [podman-remote](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-remote-release-windows_amd64.zip) for x86_64 only.
* Other podman-remote release builds (includes configuration files & documentation):
* [podman-release-386.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-386.tar.gz)
* [podman-release-arm.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-arm.tar.gz)
* [podman-release-arm64.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-arm64.tar.gz)
* [podman-release-mips.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-mips.tar.gz)
* [podman-release-mips64.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-mips64.tar.gz)
* [podman-release-mips64le.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-mips64le.tar.gz)
* [podman-release-mipsle.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-mipsle.tar.gz)
* [podman-release-ppc64le.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-ppc64le.tar.gz)
* [podman-release-s390x.tar.gz](https://api.cirrus-ci.com/v1/artifact/github/containers/podman/Artifacts/binary/podman-release-s390x.tar.gz)
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ GINKGOTIMEOUT ?= -timeout=90m
GINKGOWHAT ?= test/e2e/.
GINKGO_PARALLEL=y
GINKGO ?= ./test/tools/build/ginkgo
# ginkgo json output is only useful in CI, not on developer runs
GINKGO_JSON ?= $(if $(CI),--json-report ginkgo-e2e.json,)

# Allow control over some Ginkgo parameters
GINKGO_FLAKE_ATTEMPTS ?= 0
Expand Down Expand Up @@ -652,7 +650,7 @@ ginkgo-run: .install.ginkgo
$(GINKGO) version
$(GINKGO) -vv $(TESTFLAGS) --tags "$(TAGS) remote" $(GINKGOTIMEOUT) --flake-attempts $(GINKGO_FLAKE_ATTEMPTS) \
--trace $(if $(findstring y,$(GINKGO_NO_COLOR)),--no-color,) \
$(GINKGO_JSON) $(if $(findstring y,$(GINKGO_PARALLEL)),-p,) $(if $(FOCUS),--focus "$(FOCUS)",) \
$(if $(findstring y,$(GINKGO_PARALLEL)),-p,) $(if $(FOCUS),--focus "$(FOCUS)",) \
$(if $(FOCUS_FILE),--focus-file "$(FOCUS_FILE)",) $(GINKGOWHAT)

.PHONY: ginkgo
Expand Down
22 changes: 0 additions & 22 deletions contrib/cirrus/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ if [[ "${DISTRO_NV}" == "$PRIOR_FEDORA_NAME" ]]; then
# Tests for pr-should-link-jira
showrun ${SCRIPT_BASE}/pr-should-link-jira.t

msg "Checking renovate config."
showrun podman run -it \
-v ./.github/renovate.json5:/usr/src/app/renovate.json5:z \
ghcr.io/renovatebot/renovate:latest \
renovate-config-validator

# Run this during daily cron job to prevent a GraphQL API change/breakage
# from impacting every PR. Down-side being if it does fail, a maintainer
# will need to do some archaeology to find it.
Expand All @@ -81,19 +75,3 @@ if [[ "${DISTRO_NV}" == "$PRIOR_FEDORA_NAME" ]]; then
showrun bash ${CIRRUS_WORKING_DIR}/.github/actions/check_cirrus_cron/test.sh
fi
fi

msg "Checking 3rd party network service connectivity"
# shellcheck disable=SC2154
cat ${CIRRUS_WORKING_DIR}/${SCRIPT_BASE}/required_host_ports.txt | \
while read host port
do
if [[ "$port" -eq "443" ]]
then
echo "SSL/TLS to $host:$port"
echo -n '' | \
err_retry 9 1000 "" openssl s_client -quiet -no_ign_eof -connect $host:$port
else
echo "Connect to $host:$port"
err_retry 9 1000 1 nc -zv -w 13 $host $port
fi
done
5 changes: 0 additions & 5 deletions contrib/cirrus/required_host_ports.txt

This file was deleted.

Loading

0 comments on commit f3db6b1

Please sign in to comment.