Skip to content
/ os Public
forked from openshift/os

Commit

Permalink
Merge pull request openshift#1189 from travier/ci-cleanup
Browse files Browse the repository at this point in the history
Set RHCOS 9 by default & cleanup CI
  • Loading branch information
openshift-merge-robot authored Mar 10, 2023
2 parents f5fa98f + a5eb84a commit ce6776c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
30 changes: 11 additions & 19 deletions ci/prow-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ prepare_repos() {
# Figure out which version we're building
rhelver=$(rpm-ostree compose tree --print-only "${manifest}" | jq -r '.["automatic-version-prefix"]' | cut -f2 -d.)

# Temporary workaround until we publish builds for other versions
if [[ "${rhelver}" == "86" ]]; then
prev_build_url="${REDIRECTOR_URL}/rhcos-${ocpver}/"
# Temporary workaround until we publish builds in the default path
if [[ "${rhelver}" == "92" ]]; then
prev_build_url="${REDIRECTOR_URL}/rhcos-${ocpver}-9.2/"
# Fetch the previous build
cosa buildfetch --url="${prev_build_url}"
fi

# Fetch the repos corresponding to the release we are building
case "${rhelver}" in
86|90|92)
92)
# 92 doesn't exist in release controller right now
if [[ "${rhelver}" == "92" ]]; then rhelver=90; fi
curl --fail -L "http://base-${ocpver_mut}-rhel${rhelver}.ocp.svc.cluster.local" -o "src/config/ocp.repo"
Expand Down Expand Up @@ -243,27 +243,15 @@ main () {
prepare_repos
;;
"build" | "init-and-build-default") # TODO: change prow job to use init-and-build-default
cosa_init "rhel-coreos-8"
cosa_init "rhel-coreos-9"
cosa_build
;;
"rhcos-cosa-prow-pr-ci")
setup_user
cosa_init "rhel-coreos-8"
cosa_build
kola_test_qemu
;;
"rhcos-86-build-test-qemu")
setup_user
cosa_init "rhel-coreos-8"
cosa_init "rhel-coreos-9"
cosa_build
kola_test_qemu
;;
"rhcos-86-build-test-metal")
setup_user
cosa_init "rhel-coreos-8"
cosa_build
kola_test_metal
;;
"rhcos-92-build-test-qemu"|"rhcos-90-build-test-qemu")
setup_user
cosa_init "rhel-coreos-9"
Expand All @@ -282,12 +270,16 @@ main () {
cosa_build
kola_test_qemu
;;
"scos-9-build-test-metal" )
"scos-9-build-test-metal")
setup_user
cosa_init "scos"
cosa_build
kola_test_metal
;;
"rhcos-86-build-test-qemu"|"rhcos-86-build-test-metal")
# Disabled tests
exit 0
;;
*)
# This case ensures that we exhaustively list the tests that should
# pass for a PR. To add a new test in openshift/os:
Expand Down
2 changes: 1 addition & 1 deletion extensions.yaml
2 changes: 1 addition & 1 deletion image.yaml
2 changes: 1 addition & 1 deletion manifest.yaml

0 comments on commit ce6776c

Please sign in to comment.