Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,22 @@ tests:
IP_STACK=v4v6
NETWORK_TYPE=OVNKubernetes
workflow: baremetalds-e2e
- as: e2e-metal-ipi-ovn-ipv6-trigger
steps:
cluster_profile: packet
env:
DEVSCRIPTS_CONFIG: |
IP_STACK=v6
NETWORK_TYPE=OVNKubernetes
workflow: baremetalds-e2e
- as: e2e-metal-ipi-ovn-dualstack-trigger
steps:
cluster_profile: packet
env:
DEVSCRIPTS_CONFIG: |
IP_STACK=v4v6
NETWORK_TYPE=OVNKubernetes
workflow: baremetalds-e2e
- as: e2e-metal-ipi-virtualmedia
steps:
cluster_profile: packet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,75 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-metal-ipi-ovn-dualstack,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
cluster: build02
context: ci/prow/e2e-metal-ipi-ovn-dualstack-trigger
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-baremetal-operator-master-e2e-metal-ipi-ovn-dualstack-trigger
path_alias: github.com/metal3-io/baremetal-operator
rerun_command: /test e2e-metal-ipi-ovn-dualstack-trigger
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/usr/local/e2e-metal-ipi-ovn-dualstack-trigger-cluster-profile
- --target=e2e-metal-ipi-ovn-dualstack-trigger
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /usr/local/e2e-metal-ipi-ovn-dualstack-trigger-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: cluster-profile
projected:
sources:
- secret:
name: cluster-secrets-packet
- configMap:
name: cluster-profile-packet
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-metal-ipi-ovn-dualstack-trigger,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down Expand Up @@ -209,6 +278,75 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-metal-ipi-ovn-ipv6,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- master
cluster: build02
context: ci/prow/e2e-metal-ipi-ovn-ipv6-trigger
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-baremetal-operator-master-e2e-metal-ipi-ovn-ipv6-trigger
path_alias: github.com/metal3-io/baremetal-operator
rerun_command: /test e2e-metal-ipi-ovn-ipv6-trigger
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-credentials-file=/etc/boskos/credentials
- --report-credentials-file=/etc/report/credentials
- --secret-dir=/usr/local/e2e-metal-ipi-ovn-ipv6-trigger-cluster-profile
- --target=e2e-metal-ipi-ovn-ipv6-trigger
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /usr/local/e2e-metal-ipi-ovn-ipv6-trigger-cluster-profile
name: cluster-profile
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: credentials
path: credentials
secretName: boskos-credentials
- name: cluster-profile
projected:
sources:
- secret:
name: cluster-secrets-packet
- configMap:
name: cluster-profile-packet
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e-metal-ipi-ovn-ipv6-trigger,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function copy_test_binaries() {
function mirror_test_images() {
echo "### Mirroring test images"

DEVSCRIPTS_TEST_IMAGE_REPO=${DS_REGISTRY}/localimages/local-test-image
DEVSCRIPTS_TEST_IMAGE_REPO=${DS_REGISTRY}/localimages/local-test-image
# shellcheck disable=SC2087
ssh "${SSHOPTS[@]}" "root@${IP}" bash - << EOF
openshift-tests images --to-repository ${DEVSCRIPTS_TEST_IMAGE_REPO} > /tmp/mirror
Expand All @@ -34,7 +34,7 @@ EOF

function use_minimal_test_list() {
echo "### Skipping test images mirroring, fall back to minimal tests list"

TEST_ARGS="--file /tmp/tests"
TEST_SKIPS=""
echo "${TEST_MINIMAL_LIST}" > /tmp/tests
Expand All @@ -47,12 +47,12 @@ packet)
# shellcheck source=/dev/null
source "${SHARED_DIR}/ds-vars.conf"
copy_test_binaries
export TEST_PROVIDER=\"\"
export TEST_PROVIDER='{\"type\":\"baremetal\"}'

echo "### Checking release version"
# Mirroring test images is supported only for versions greater than or equal to 4.7
if printf '%s\n%s' "4.7" "${DS_OPENSHIFT_VERSION}" | sort -C -V; then
mirror_test_images
mirror_test_images
else
use_minimal_test_list
fi
Expand All @@ -65,23 +65,23 @@ function upgrade() {
ssh "${SSHOPTS[@]}" "root@${IP}" \
openshift-tests run-upgrade all \
--to-image "${OPENSHIFT_UPGRADE_RELEASE_IMAGE_OVERRIDE}" \
--provider "${TEST_PROVIDER}" \
--provider "${TEST_PROVIDER:-}" \
-o "/tmp/artifacts/e2e.log" \
--junit-dir "/tmp/artifacts/junit"
set +x
}

function suite() {
if [[ -n "${TEST_SKIPS}" ]]; then
TESTS="$(ssh "${SSHOPTS[@]}" "root@${IP}" openshift-tests run --dry-run --provider "${TEST_PROVIDER}" "${TEST_SUITE}")"
TESTS="$(ssh "${SSHOPTS[@]}" "root@${IP}" openshift-tests run --dry-run --provider "${TEST_PROVIDER:-}" "${TEST_SUITE}")"
echo "${TESTS}" | grep -v "${TEST_SKIPS}" >/tmp/tests
echo "Skipping tests:"
echo "${TESTS}" | grep "${TEST_SKIPS}"
TEST_ARGS="${TEST_ARGS:-} --file /tmp/tests"
fi

scp "${SSHOPTS[@]}" /tmp/tests "root@${IP}:/tmp/tests"

set -x
ssh "${SSHOPTS[@]}" "root@${IP}" \
openshift-tests run "${TEST_SUITE}" "${TEST_ARGS:-}" \
Expand Down Expand Up @@ -112,4 +112,4 @@ suite)
echo >&2 "Unsupported test type '${TEST_TYPE}'"
exit 1
;;
esac
esac
Loading