Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

test: disable service tests #933

Merged

Conversation

sbouchet
Copy link
Collaborator

What is the purpose of this change? What does it change?

Disable flaky UI Integration tests that fails our checks.

Was the change discussed in an issue?

How to test changes?

@sbouchet sbouchet requested a review from adietish October 25, 2024 14:35
@sbouchet sbouchet changed the title tests: disable service tests test: disable service tests Oct 25, 2024
@sbouchet
Copy link
Collaborator Author

@adietish this is an extraction of integration tests from #894, that can be merged before to make all the checks passes for next PRs.

Signed-off-by: Stephane Bouchet <[email protected]>
@sbouchet sbouchet force-pushed the disable_services_tests branch from b8a4d67 to f5ae176 Compare October 25, 2024 16:14
Copy link
Contributor

@adietish adietish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside my nitpicking, LGTM.

private static final String PROJECT_NAME = "newtestproject";

@Test
@Order(1)
@Disabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please add a comment so that we know why we disabled this test?

echo -n "."
sleep 1
nb=`kubectl get pods -n operators --no-headers --ignore-not-found | grep Running | wc -l`
done
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do I get it right that these creates are not needed any more because you disabled the service tests?
Wouldn't it be preferrable to comment these since the tests also still exist but are disabled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah iagree to comment out because the test is disabled and not removed.

env:
GPG_PASSPHRASE: ${{ secrets.IDEA_KEY_PASSPHRASE }}
run: |
echo -n "$GPG_PASSPHRASE" | gpg --decrypt --passphrase-fd 0 --pinentry-mode loopback --output idea_license_token/idea.key idea_license_token/idea.key.gpg
export DISPLAY=:99.0
Xvfb -ac :99 -screen 0 1920x1080x16 &
sleep 10
./gradlew publicIntegrationUITest --continue --no-daemon
./gradlew publicIntegrationUITest --continue
Copy link
Contributor

@adietish adietish Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be preferrable to rename the gradle task since we renamed the github task?
Something like:

./gradlew noContextIntegrationUITest --continue

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this PR does still use old gradle build, so still using the old naming

@@ -1,41 +0,0 @@
/*******************************************************************************
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please explain why we're removing these fixtures?

Copy link

openshift-ci bot commented Oct 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adietish

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@adietish
Copy link
Contributor

@sbouchet ITs are still failing because they are run against the main branch, correct?

@sbouchet
Copy link
Collaborator Author

@sbouchet ITs are still failing because they are run against the main branch, correct?

yes you're correct. basically this PR is a cherry pick from #889 on current main

@adietish adietish assigned sbouchet and unassigned adietish Oct 28, 2024
@openshift-ci openshift-ci bot removed the lgtm label Oct 29, 2024
Copy link

openshift-ci bot commented Oct 29, 2024

New changes are detected. LGTM label has been removed.

Copy link

@adietish adietish added the lgtm label Oct 29, 2024
@adietish
Copy link
Contributor

/override "Cluster Integration UI Tests Report" "Public Integration UI Tests Report" ci/prow/e2e-openshift

Copy link

openshift-ci bot commented Oct 29, 2024

@adietish: Overrode contexts on behalf of adietish: Cluster Integration UI Tests Report, Public Integration UI Tests Report, ci/prow/e2e-openshift

In response to this:

/override "Cluster Integration UI Tests Report" "Public Integration UI Tests Report" ci/prow/e2e-openshift

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 5909d85 into redhat-developer:main Oct 29, 2024
18 of 20 checks passed
@sbouchet sbouchet deleted the disable_services_tests branch October 29, 2024 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants