Skip to content

Update ide.gradle to write --add-modules to .idea/compiler.xml.#19331

Closed
finnegancarroll wants to merge 2 commits intoopensearch-project:mainfrom
finnegancarroll:lib-common-vec
Closed

Update ide.gradle to write --add-modules to .idea/compiler.xml.#19331
finnegancarroll wants to merge 2 commits intoopensearch-project:mainfrom
finnegancarroll:lib-common-vec

Conversation

@finnegancarroll
Copy link
Copy Markdown
Contributor

@finnegancarroll finnegancarroll commented Sep 17, 2025

Description

I notice that IntelliJ will sometimes produce the error:

.../OpenSearch/libs/common/src/main/java/org/opensearch/common/round/BtreeSearcher.java:13:21
java: package jdk.incubator.vector is not visible
(package jdk.incubator.vector is declared in module jdk.incubator.vector, which is not in the module graph)

This appears to be the result of IntelliJ defaulting to its own test runner after a restart/update/cleared cache.
Settings -> Build, Execution, Deployment -> Build Tools -> Gradle will be set to:
"Build and run using: IntelliJ IDEA"
"Run tests using: Choose per test"

When setting these both to "Gradle" the error goes away as gradle is able to find the extra config option as set here:
https://github.com/opensearch-project/OpenSearch/blob/main/libs/common/build.gradle#L54-L57

However using the IntelliJ test runner does not honor the compiler option as configured in the above build.gradle. This change updates ide.gradle to inject this compiler option into .idea/compiler.xml.

Related Issues

N/A

Adding skip-changelog here as it's a dev QOL only change.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

Signed-off-by: Finn Carroll <carrofin@amazon.com>
@finnegancarroll finnegancarroll requested a review from a team as a code owner September 17, 2025 23:33
Signed-off-by: Finn Carroll <carrofin@amazon.com>
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 7b69fd0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@finnegancarroll
Copy link
Copy Markdown
Contributor Author

finnegancarroll commented Sep 18, 2025

org.opensearch.http.reactor.netty4.ssl.SecureReactorNetty4HttpServerTransportTests are all failing with same invalid date error:

java.lang.IllegalArgumentException: invalid date string: Unparseable date: "òõðùñøðððòóöGMT+00:00"
	at __randomizedtesting.SeedInfo.seed([91C53B33F9180C08:7EC08F250571E835]:0)
	at org.bouncycastle.asn1.ASN1UTCTime.<init>(Unknown Source)
	at org.bouncycastle.asn1.DERUTCTime.<init>(Unknown Source)
	at org.bouncycastle.asn1.x509.Time.<init>(Unknown Source)
	at org.bouncycastle.cert.X509v1CertificateBuilder.<init>(Unknown Source)
	at org.bouncycastle.cert.jcajce.JcaX509v1CertificateBuilder.<init>(Unknown Source)
	at org.opensearch.test.KeyStoreUtils.generateCert(KeyStoreUtils.java:62)
	at org.opensearch.test.KeyStoreUtils.createCredential(KeyStoreUtils.java:47)
	at org.opensearch.test.KeyStoreUtils.createServerKeyStore(KeyStoreUtils.java:31)
	at org.opensearch.http.reactor.netty4.ssl.SecureReactorNetty4HttpServerTransportTests.setup(SecureReactorNetty4HttpServerTransportTests.java:120)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1750)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:972)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:988)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.apache.lucene.tests.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:48)
	at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
	at org.apache.lucene.tests.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:45)
	at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
	at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
	at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
	at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
	at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
	at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:947)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:832)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:883)
	at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:894)
	at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
	at org.apache.lucene.tests.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:38)
	at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
	at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
	at org.apache.lucene.tests.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
	at org.apache.lucene.tests.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:43)
	at org.apache.lucene.tests.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:44)
	at org.apache.lucene.tests.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:60)
	at org.apache.lucene.tests.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:47)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
	at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
	at java.base/java.lang.Thread.run(Thread.java:1447)

Edit - Fixed:
#19327

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 7b69fd0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❕ Gradle check result for 7b69fd0: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.82%. Comparing base (6c4f3d8) to head (7b69fd0).
⚠️ Report is 238 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19331      +/-   ##
============================================
- Coverage     72.88%   72.82%   -0.07%     
+ Complexity    69841    69793      -48     
============================================
  Files          5673     5673              
  Lines        320756   320756              
  Branches      46370    46370              
============================================
- Hits         233796   233589     -207     
- Misses        68102    68233     +131     
- Partials      18858    18934      +76     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 7, 2025

❌ Gradle check result for 7b69fd0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 8, 2025

❌ Gradle check result for 7b69fd0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 8, 2025

❌ Gradle check result for 7b69fd0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@opensearch-trigger-bot
Copy link
Copy Markdown
Contributor

This PR is stalled because it has been open for 30 days with no activity.

@opensearch-trigger-bot opensearch-trigger-bot bot added the stalled Issues that have stalled label Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog stalled Issues that have stalled

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant