-
Notifications
You must be signed in to change notification settings - Fork 1.9k
config: add periodic job that runs upgrades using multistage tests #9489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
releases: | ||
initial: | ||
release: | ||
channel: stable | ||
version: "4.4" | ||
latest: | ||
candidate: | ||
product: ocp | ||
stream: ci | ||
version: "4.5" | ||
resources: | ||
'*': | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
tests: | ||
- as: e2e-upgrade-informer | ||
cron: 0 */6 * * * | ||
steps: | ||
cluster_profile: aws | ||
env: | ||
OPENSHIFT_UPGRADE: "true" | ||
workflow: openshift-e2e-aws | ||
zz_generated_metadata: | ||
branch: master | ||
org: openshift | ||
repo: release | ||
variant: ocp-4.5-ci |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
ref: | ||
as: ipi-conf | ||
from: base | ||
from_image: | ||
namespace: origin | ||
name: centos | ||
tag: '8' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change? |
||
commands: ipi-conf-commands.sh | ||
resources: | ||
requests: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,8 @@ ref: | |
requests: | ||
cpu: 1000m | ||
memory: 2Gi | ||
env: | ||
- name: OPENSHIFT_UPGRADE | ||
default: "false" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add
Not clear to me if |
||
documentation: |- | ||
The IPI install step runs the OpenShift Installer in order to bring up an OpenShift cluster, using the provided cluster profile to choose a target IaaS platform. Anything that needs to be configured using manifests should generate them before this step and put them in the SHARED_DIR with the filename manifest_(manifest_name).yml so that this step can pull in the manifest in. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,12 +62,23 @@ if [[ "${CLUSTER_TYPE}" == gcp ]]; then | |
popd | ||
fi | ||
|
||
test_suite=openshift/conformance/parallel | ||
if [[ -e "${SHARED_DIR}/test-suite.txt" ]]; then | ||
test_suite=$(<"${SHARED_DIR}/test-suite.txt") | ||
fi | ||
|
||
openshift-tests run "${test_suite}" \ | ||
--provider "${TEST_PROVIDER}" \ | ||
if [[ "${OPENSHIFT_UPGRADE:-false}" == "false" ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hrm. Not clear to me how much we want to pack into OPENSHIFT_UPGRADE=true # for the install switch.
TEST_COMMAND=run-upgrade
TEST_SUITE=all Or maybe even RELEASE_IMAGE=RELEASE_IMAGE_INITIAL and then use indirect expansion: $ RELEASE_IMAGE_INITIAL=A
$ RELEASE_IMAGE_LATEST=B
$ RELEASE_IMAGE=RELEASE_IMAGE_INITIAL
$ echo "${!RELEASE_IMAGE}"
A And then setting those variables appropriately when we define the job? |
||
test_suite=openshift/conformance/parallel | ||
if [[ -e "${SHARED_DIR}/test-suite.txt" ]]; then | ||
test_suite=$(<"${SHARED_DIR}/test-suite.txt") | ||
fi | ||
openshift-tests run "${test_suite}" \ | ||
--provider "${TEST_PROVIDER}" \ | ||
-o /tmp/artifacts/e2e.log \ | ||
--junit-dir /tmp/artifacts/junit | ||
else | ||
test_suite=all | ||
if [[ -e "${SHARED_DIR}/test-suite.txt" ]]; then | ||
test_suite=$(<"${SHARED_DIR}/test-suite.txt") | ||
fi | ||
openshift-tests run-upgrade "${test_suite}" \ | ||
--to-image "${IMAGE:-${RELEASE_IMAGE_LATEST}}" \ | ||
--provider "${TEST_PROVIDER:-}" \ | ||
-o /tmp/artifacts/e2e.log \ | ||
--junit-dir /tmp/artifacts/junit | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems orthogonal to the thrust of this PR and the
echo
dates back toipi-conf-commands.sh
from #6708. Can we spin this hunk out into a separate PR and get it landed while this one gets iterated on?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, reading down I see you adding a similar
echo
inipi-install-install-commands.sh
, so I'm meh on whether we pull this out into a separate PR or not. And while I'm talking aboutipi-install-install-commands.sh
, seems like a chance to remind folks that the stutter-removing PR is alive again: #7931.