Skip to content

Commit

Permalink
Merge pull request #1043 from openshift-kni/e2e-cleanup-ci-lanes
Browse files Browse the repository at this point in the history
e2e: review CI lanes
  • Loading branch information
ffromani authored Oct 15, 2024
2 parents 84f2a22 + 60c6652 commit c0b2f94
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
17 changes: 11 additions & 6 deletions hack/run-test-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -e
source hack/common.sh

ENABLE_SCHED_TESTS="${ENABLE_SCHED_TESTS:-true}"
ENABLE_CLEANUP="${ENABLE_CLEANUP:-false}"

NO_COLOR=""
if ! which tput &> /dev/null 2>&1 || [[ $(tput -T$TERM colors) -lt 8 ]]; then
Expand Down Expand Up @@ -51,12 +52,16 @@ if [ "$ENABLE_SCHED_TESTS" = true ]; then
# -requireSuite: fail if tests are not executed because of missing suite
${BIN_DIR}/e2e-nrop-sched.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.fail-fast --ginkgo.flake-attempts=2 --ginkgo.junit-report=${REPORT_DIR}/e2e-sched.xml

echo "Running NROScheduler uninstall test suite";
${BIN_DIR}/e2e-nrop-sched-uninstall.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.junit-report=${REPORT_DIR}/sched-uninstall.xml
if [ "$ENABLE_CLEANUP" = true ]; then
echo "Running NROScheduler uninstall test suite";
${BIN_DIR}/e2e-nrop-sched-uninstall.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.junit-report=${REPORT_DIR}/sched-uninstall.xml
fi
fi

echo "Undeploying sample devices for RTE tests"
rte/hack/undeploy-devices.sh
if [ "$ENABLE_CLEANUP" = true ]; then
echo "Undeploying sample devices for RTE tests"
rte/hack/undeploy-devices.sh

echo "Running NRO uninstall test suite";
${BIN_DIR}/e2e-nrop-uninstall.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.junit-report=${REPORT_DIR}/uninstall.xml
echo "Running NRO uninstall test suite";
${BIN_DIR}/e2e-nrop-uninstall.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.junit-report=${REPORT_DIR}/uninstall.xml
fi
3 changes: 3 additions & 0 deletions hack/run-test-install-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ trap '{ echo "Running NRO uninstall test suite"; ${BIN_DIR}/e2e-nrop-uninstall.t
# Run install test suite
echo "Running NRO install test suite"
${BIN_DIR}/e2e-nrop-install.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.fail-fast --ginkgo.junit-report=${REPORT_DIR}/install.xml --ginkgo.focus='\[Install\] durability'

echo "Running NRO uninstall test suite";
${BIN_DIR}/e2e-nrop-uninstall.test ${NO_COLOR} --ginkgo.v --ginkgo.timeout=5h --ginkgo.junit-report=${REPORT_DIR}/uninstall.xml
6 changes: 4 additions & 2 deletions test/e2e/install/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ import (
"github.com/openshift-kni/numaresources-operator/test/utils/objects"
)

// tests here are not interruptible, so they should not accept contexts.
// See: https://onsi.github.io/ginkgo/#interruptible-nodes-and-speccontext

const (
containerNameRTE = "resource-topology-exporter"
)
Expand Down Expand Up @@ -144,7 +147,7 @@ var _ = Describe("[Install] continuousIntegration", func() {
})
})

var _ = Describe("[Install] durability", func() {
var _ = Describe("[Install] durability", Serial, func() {
var initialized bool

BeforeEach(func() {
Expand Down Expand Up @@ -198,7 +201,6 @@ var _ = Describe("[Install] durability", func() {
})

It("[test_id:47587][tier1] should restart RTE DaemonSet when image is updated in NUMAResourcesOperator", func() {

By("getting up-to-date NRO object")
nroKey := client.ObjectKeyFromObject(deployedObj.NroObj)
Expect(nroKey.Name).NotTo(BeEmpty())
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/uninstall/uninstall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
e2epause "github.com/openshift-kni/numaresources-operator/test/utils/objects/pause"
)

var _ = Describe("[Uninstall]", func() {
var _ = Describe("[Uninstall] clusterCleanup", Serial, func() {
var (
initialized bool
)
Expand Down

0 comments on commit c0b2f94

Please sign in to comment.