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

Restrict the range of JVMs that need security policy flags set #42

Merged
merged 6 commits into from
Sep 16, 2024

Conversation

sstults
Copy link
Collaborator

@sstults sstults commented Sep 12, 2024

Description

We currently test against versions 11, 17, and 21. For version 17 we need to add a policy file, but for version 21 the security manager flags throw an error. This PR restricts the versions that need the flags set to > 11 and < 21.

Issues Resolved

n/a

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.

@sstults
Copy link
Collaborator Author

sstults commented Sep 15, 2024

It seems like there is a threading issue. I can exacerbate the problem by running the tests on a hotspot JVM, and most of the errors happen here in Suppliers.java. What I can't tell yet is whether this is a problem at runtime or if it's just a problem during testing. I'm moving this PR to the draft state until that gets figured out.

@sstults sstults marked this pull request as draft September 15, 2024 10:01
@jzonthemtn
Copy link

I have been getting intermittent failures when building locally and in GitHub Actions. This failure is different than the failed test case in this build but it wouldn't surprise me if it's related.

Tests with failures:
 - com.o19s.es.ltr.query.LtrQueryTests.testNoMatchQueries

I'd say the build passes every 2 out of 3 times for me.

@sstults sstults marked this pull request as ready for review September 16, 2024 14:58
sstults and others added 5 commits September 16, 2024 11:02
- Fix a typo in the security policy file
- Reference the security policy file for tests

Signed-off-by: Scott Stults <[email protected]>
Restrict the range of JVM versions that need security manager flags

Signed-off-by: Scott Stults <[email protected]>
Signed-off-by: jzonthemtn <[email protected]>
Signed-off-by: Scott Stults <[email protected]>
@sstults
Copy link
Collaborator Author

sstults commented Sep 16, 2024

It looks like this issue was addressed in this PR for ES-LTR. After bringing this change over I'm getting reliable builds locally.

@macohen macohen merged commit e34d607 into opensearch-project:main Sep 16, 2024
5 checks passed
@macohen
Copy link
Collaborator

macohen commented Sep 16, 2024

Tests passed! Closing.

@sstults sstults deleted the tests-security-policy branch September 17, 2024 03:49
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