mirror of https://github.com/containers/podman.git
Cirrus: Use F33beta VM image
Includes disk-space increase for all Fedora images to accommodate the static-build job disk space requirements. This job substantially leverages task-cache, which was previously failing to restore early on in the Cirrus-CI task setup, due to disk-space limitations. Also simplify .cirrus.yml slightly by removing an unncessary setup and run directory change step. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
55a1aecc74
commit
46498331a3
16
.cirrus.yml
16
.cirrus.yml
|
@ -21,13 +21,13 @@ env:
|
||||||
####
|
####
|
||||||
#### Cache-image names to test with (double-quotes around names are critical)
|
#### Cache-image names to test with (double-quotes around names are critical)
|
||||||
####
|
####
|
||||||
FEDORA_NAME: "fedora-32"
|
FEDORA_NAME: "fedora-33"
|
||||||
PRIOR_FEDORA_NAME: "fedora-31"
|
PRIOR_FEDORA_NAME: "fedora-32"
|
||||||
UBUNTU_NAME: "ubuntu-20"
|
UBUNTU_NAME: "ubuntu-20"
|
||||||
PRIOR_UBUNTU_NAME: "ubuntu-19"
|
PRIOR_UBUNTU_NAME: "ubuntu-19"
|
||||||
|
|
||||||
# Google-cloud VM Images
|
# Google-cloud VM Images
|
||||||
IMAGE_SUFFIX: "c4948709391728640"
|
IMAGE_SUFFIX: "c6323493627232256"
|
||||||
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
|
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
|
||||||
PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"
|
PRIOR_FEDORA_CACHE_IMAGE_NAME: "prior-fedora-${IMAGE_SUFFIX}"
|
||||||
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}"
|
UBUNTU_CACHE_IMAGE_NAME: "ubuntu-${IMAGE_SUFFIX}"
|
||||||
|
@ -74,12 +74,8 @@ ext_svc_check_task:
|
||||||
env:
|
env:
|
||||||
TEST_FLAVOR: ext_svc
|
TEST_FLAVOR: ext_svc
|
||||||
CTR_FQIN: ${FEDORA_CONTAINER_FQIN}
|
CTR_FQIN: ${FEDORA_CONTAINER_FQIN}
|
||||||
setup_script: &setup
|
setup_script: &setup '$GOSRC/$SCRIPT_BASE/setup_environment.sh'
|
||||||
- 'cd $GOSRC/$SCRIPT_BASE || exit 1'
|
main_script: &main '$GOSRC/$SCRIPT_BASE/runner.sh'
|
||||||
- './setup_environment.sh'
|
|
||||||
main_script: &main
|
|
||||||
- 'cd $GOSRC/$SCRIPT_BASE || exit 1'
|
|
||||||
- './runner.sh'
|
|
||||||
|
|
||||||
|
|
||||||
# Execute some quick checks to confirm this YAML file and all
|
# Execute some quick checks to confirm this YAML file and all
|
||||||
|
@ -339,7 +335,7 @@ static_alt_build_task:
|
||||||
- build
|
- build
|
||||||
# Community-maintained task, may fail on occasion. If so, uncomment
|
# Community-maintained task, may fail on occasion. If so, uncomment
|
||||||
# the next line and file an issue with details about the failure.
|
# the next line and file an issue with details about the failure.
|
||||||
# allow_failures: $CI == $CI
|
allow_failures: $CI == $CI
|
||||||
gce_instance: *bigvm
|
gce_instance: *bigvm
|
||||||
env:
|
env:
|
||||||
<<: *stdenvars
|
<<: *stdenvars
|
||||||
|
|
|
@ -10,6 +10,9 @@ set -a
|
||||||
# handling of the (otherwise) default shell setup is non-uniform. Rather
|
# handling of the (otherwise) default shell setup is non-uniform. Rather
|
||||||
# than attempt to workaround differences, simply force-load/set required
|
# than attempt to workaround differences, simply force-load/set required
|
||||||
# items every time this library is utilized.
|
# items every time this library is utilized.
|
||||||
|
_waserrexit=0
|
||||||
|
if [[ "$SHELLOPTS" =~ errexit ]]; then _waserrexit=1; fi
|
||||||
|
set +e # Assumed in F33 for setting global vars
|
||||||
source /etc/profile
|
source /etc/profile
|
||||||
source /etc/environment
|
source /etc/environment
|
||||||
if [[ -r "/etc/ci_environment" ]]; then source /etc/ci_environment; fi
|
if [[ -r "/etc/ci_environment" ]]; then source /etc/ci_environment; fi
|
||||||
|
@ -18,6 +21,7 @@ HOME="$(getent passwd $USER | cut -d : -f 6)"
|
||||||
# Some platforms set and make this read-only
|
# Some platforms set and make this read-only
|
||||||
[[ -n "$UID" ]] || \
|
[[ -n "$UID" ]] || \
|
||||||
UID=$(getent passwd $USER | cut -d : -f 3)
|
UID=$(getent passwd $USER | cut -d : -f 3)
|
||||||
|
if ((_waserrexit)); then set -e; fi
|
||||||
|
|
||||||
# During VM Image build, the 'containers/automation' installation
|
# During VM Image build, the 'containers/automation' installation
|
||||||
# was performed. The final step of installation sets the library
|
# was performed. The final step of installation sets the library
|
||||||
|
@ -25,11 +29,8 @@ HOME="$(getent passwd $USER | cut -d : -f 6)"
|
||||||
# default shell profile depending on distribution.
|
# default shell profile depending on distribution.
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
if [[ -n "$AUTOMATION_LIB_PATH" ]]; then
|
if [[ -n "$AUTOMATION_LIB_PATH" ]]; then
|
||||||
for libname in defaults anchors console_output utils; do
|
# shellcheck source=/usr/share/automation/lib/common_lib.sh
|
||||||
# There's no way shellcheck can process this location
|
source $AUTOMATION_LIB_PATH/common_lib.sh
|
||||||
# shellcheck disable=SC1090
|
|
||||||
source $AUTOMATION_LIB_PATH/${libname}.sh
|
|
||||||
done
|
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
echo "WARNING: It does not appear that containers/automation was installed."
|
echo "WARNING: It does not appear that containers/automation was installed."
|
||||||
|
|
|
@ -99,11 +99,12 @@ fi
|
||||||
case "$OS_RELEASE_ID" in
|
case "$OS_RELEASE_ID" in
|
||||||
ubuntu*) ;;
|
ubuntu*) ;;
|
||||||
fedora*)
|
fedora*)
|
||||||
if ((CONTAINER==0)); then # Not yet running inside a container
|
if ((CONTAINER==0)); then
|
||||||
msg "Configuring / Expanding host storage."
|
msg "Configuring / Expanding host storage."
|
||||||
# VM is setup to allow flexibility in testing alternate storage.
|
# VM is setup to allow flexibility in testing alternate storage.
|
||||||
# For general use, simply make use of all available space.
|
# For general use, simply make use of all available space.
|
||||||
ooe.sh bash "$SCRIPT_BASE/add_second_partition.sh"
|
bash "$SCRIPT_BASE/add_second_partition.sh"
|
||||||
|
$SCRIPT_BASE/logcollector.sh df
|
||||||
|
|
||||||
# All SELinux distros need this for systemd-in-a-container
|
# All SELinux distros need this for systemd-in-a-container
|
||||||
msg "Enabling container_manage_cgroup"
|
msg "Enabling container_manage_cgroup"
|
||||||
|
@ -215,4 +216,4 @@ echo -e "\n# End of global variable definitions" \
|
||||||
>> /etc/ci_environment
|
>> /etc/ci_environment
|
||||||
|
|
||||||
msg "Global CI Environment vars.:"
|
msg "Global CI Environment vars.:"
|
||||||
cat /etc/ci_environment | sort | indent
|
grep -Ev '^#' /etc/ci_environment | sort | indent
|
||||||
|
|
Loading…
Reference in New Issue