mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Merge pull request #7920 from cevich/fix_new_ci_smoke
Cirrus: Fix branch-validation failure
This commit is contained in:
@ -76,11 +76,12 @@ CIRRUS_CI="${CIRRUS_CI:-false}"
|
|||||||
DEST_BRANCH="${DEST_BRANCH:-master}"
|
DEST_BRANCH="${DEST_BRANCH:-master}"
|
||||||
CONTINUOUS_INTEGRATION="${CONTINUOUS_INTEGRATION:-false}"
|
CONTINUOUS_INTEGRATION="${CONTINUOUS_INTEGRATION:-false}"
|
||||||
CIRRUS_REPO_NAME=${CIRRUS_REPO_NAME:-podman}
|
CIRRUS_REPO_NAME=${CIRRUS_REPO_NAME:-podman}
|
||||||
CIRRUS_BASE_SHA=${CIRRUS_BASE_SHA:-unknown$(date +%s)} # difficult to reliably discover
|
# N/B: CIRRUS_BASE_SHA is empty on branch and tag push.
|
||||||
|
CIRRUS_BASE_SHA=${CIRRUS_BASE_SHA:-${CIRRUS_LAST_GREEN_CHANGE:-YOU_FOUND_A_BUG}}
|
||||||
CIRRUS_BUILD_ID=${CIRRUS_BUILD_ID:-$RANDOM$(date +%s)} # must be short and unique
|
CIRRUS_BUILD_ID=${CIRRUS_BUILD_ID:-$RANDOM$(date +%s)} # must be short and unique
|
||||||
|
|
||||||
# Needed for linting and code validation
|
# The starting place for linting and code validation
|
||||||
EPOCH_TEST_COMMIT=${CIRRUS_BASE_SHA:-$CIRRUS_LAST_GREEN_CHANGE}
|
EPOCH_TEST_COMMIT="$CIRRUS_BASE_SHA"
|
||||||
|
|
||||||
# Regex of env. vars. to explicitly pass when executing tests
|
# Regex of env. vars. to explicitly pass when executing tests
|
||||||
# inside a container or as a rootless user
|
# inside a container or as a rootless user
|
||||||
|
@ -179,7 +179,13 @@ case "$TEST_FLAVOR" in
|
|||||||
ext_svc) $SCRIPT_BASE/ext_svc_check.sh ;;
|
ext_svc) $SCRIPT_BASE/ext_svc_check.sh ;;
|
||||||
smoke)
|
smoke)
|
||||||
make gofmt
|
make gofmt
|
||||||
|
# There is little value to validating commits after tag-push
|
||||||
|
# and it's very difficult to automatically determine a starting commit.
|
||||||
|
# $CIRRUS_TAG is only non-empty when executing due to a tag-push
|
||||||
|
# shellcheck disable=SC2154
|
||||||
|
if [[ -z "$CIRRUS_TAG" ]]; then
|
||||||
make .gitvalidation
|
make .gitvalidation
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
automation)
|
automation)
|
||||||
$SCRIPT_BASE/cirrus_yaml_test.py
|
$SCRIPT_BASE/cirrus_yaml_test.py
|
||||||
|
Reference in New Issue
Block a user