Merge pull request from cevich/revert_emergency_fix

[CI:BUILD] Cirrus: Fix GraphQL ownerRepository:null error
This commit is contained in:
OpenShift Merge Robot
2023-02-07 10:46:19 -05:00
committed by GitHub
2 changed files with 10 additions and 4 deletions
.github/actions/check_cirrus_cron
contrib/cirrus

@ -19,7 +19,7 @@ confirm_gha_environment
mkdir -p ./artifacts mkdir -p ./artifacts
cat > ./artifacts/query_raw.json << "EOF" cat > ./artifacts/query_raw.json << "EOF"
query { query {
ownerRepository(platform: "LINUX", owner: "@@OWNER@@", name: "@@REPO@@") { ownerRepository(platform: "github", owner: "@@OWNER@@", name: "@@REPO@@") {
cronSettings { cronSettings {
name name
lastInvocationBuild { lastInvocationBuild {

@ -45,9 +45,15 @@ if [[ "${DISTRO_NV}" =~ fedora ]]; then
# Tests for lib.sh # Tests for lib.sh
showrun ${SCRIPT_BASE}/lib.sh.t showrun ${SCRIPT_BASE}/lib.sh.t
export PREBUILD=1 # Run this during daily cron job to prevent a GraphQL API change/breakage
# TODO: Disabled due to test failure breaking all PRs # from impacting every PR. Down-side being if it does fail, a maintainer
# showrun bash ${CIRRUS_WORKING_DIR}/.github/actions/check_cirrus_cron/test.sh # will need to do some archaeology to find it.
# Defined by CI system
# shellcheck disable=SC2154
if [[ "$CIRRUS_CRON" == "main" ]]; then
export PREBUILD=1
showrun bash ${CIRRUS_WORKING_DIR}/.github/actions/check_cirrus_cron/test.sh
fi
fi fi
msg "Checking 3rd party network service connectivity" msg "Checking 3rd party network service connectivity"