Skip to content
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

Skip uppercase regex tests before 2.4.0 #4869

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

andrross
Copy link
Member

This feature was backported in #4219 and will only be present in version 2.4 and newer. The test must be skipped for mixed cluster cases with nodes older than 2.4.

Signed-off-by: Andrew Ross [email protected]

Issues Resolved

#4831

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This feature was backported in opensearch-project#4219 and will only be present in
version 2.4 and newer. The test must be skipped for mixed cluster cases
with nodes older than 2.4.

Signed-off-by: Andrew Ross <[email protected]>
@andrross andrross marked this pull request as ready for review October 21, 2022 17:17
@andrross andrross requested review from a team and reta as code owners October 21, 2022 17:17
@andrross
Copy link
Member Author

@nknize I think we need this version guard after the backport in #4219. Can you take a look?

@andrross andrross requested a review from nknize October 21, 2022 17:19
@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@andrross
Copy link
Member Author

The test "org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search/190_index_prefix_search/search with uppercase regex}" failed again in gradle-check 5204 and I'm not sure why. That test fails reliably without the fix in this PR locally for me, but when I apply this change I cannot reproduce the error. Not sure what is going on here...

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@heemin32
Copy link
Contributor

The test "org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search/190_index_prefix_search/search with uppercase regex}" failed again in gradle-check 5204 and I'm not sure why. That test fails reliably without the fix in this PR locally for me, but when I apply this change I cannot reproduce the error. Not sure what is going on here...

I see the skip is not applied in the failure cases. The the test is executed against v2.3.1 cluster.

REPRODUCE WITH: ./gradlew ':qa:mixed-cluster:v2.3.1#mixedClusterTest' --tests "org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT.test {p0=search/190_index_prefix_search/search with uppercase regex}" -Dtests.seed=DA47345E5530945F -Dtests.security.manager=true -Dtests.jvm.argline="-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=64m" -Dtests.locale=cs -Dtests.timezone=America/St_Thomas -Druntime.java=17
NOTE: leaving temporary files on disk at: /var/jenkins/workspace/gradle-check/search/qa/mixed-cluster/build/testrun/v2.3.1#mixedClusterTest/temp/org.opensearch.backwards.MixedClusterClientYamlTestSuiteIT_DA47345E5530945F-003

@andrross
Copy link
Member Author

The successful run of gradle check shows that the test {p0=search/190_index_prefix_search/search with uppercase regex} was skipped as expected. I don't know why the tests were run in the failure case above. @heemin32 any idea why it ran those tests on check 5204?

@andrross
Copy link
Member Author

Test run 5213 shows:

Git clone: https://github.com/andrross/OpenSearch.git with ref: 852cd348675ab4f43e2492f5f6170d3c471a14df

which is the commit of this PR and seems to be correct. However, test run 5204 shows:

Git clone: https://github.com/opensearch-project/OpenSearch.git with ref: c2e6a03b741c817431a039144c98c595d04cb99b

which is an unrelated commit? Seems like some wires were crossed here. I'm going to merge this change because I think it should unblock things and open another issue about the gradle check workflow.

@andrross andrross merged commit 1511aa8 into opensearch-project:2.x Oct 21, 2022
@heemin32
Copy link
Contributor

The successful run of gradle check shows that the test {p0=search/190_index_prefix_search/search with uppercase regex} was skipped as expected. I don't know why the tests were run in the failure case above. @heemin32 any idea why it ran those tests on check 5204?

Github bug it seems. https://build.ci.opensearch.org/job/gradle-check/5204/ is for [PR #4832](https://github.com/opensearch-project/OpenSearch/pull/4832): backport 2x exclude jettison version brought in with hadoopminicluster actually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants