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

SOLR-16300: migrate assert to non deprecated version #947

Merged
merged 34 commits into from
Oct 17, 2022

Conversation

epugh
Copy link
Contributor

@epugh epugh commented Jul 19, 2022

https://issues.apache.org/jira/browse/SOLR-16300

Description

intellij has flagged various deprecations in how we assert in our tests.

Solution

This PR has two approaches for migrating. One is to use the non deprecated class MatcherAssert, the other is to override the deprecated method from the org.junit.Assert class that our tests inherit from, and use the non deprecated class.

Tests

Ran gw test successfully.

Replace junit inherited assertThat with explicit MatcherAssert class
@epugh
Copy link
Contributor Author

epugh commented Jul 20, 2022

Did a bit more work, and I think we should:

  • Eliminate all the MatcherAssert.assertThat and just have assertThat()
  • Eliminate all the @Rule public ExpectedException in favour of assertThrows()
  • Migrate containsString() method to CoreMatchers.containsString()
  • Use assertThrows instead of the try, fail(), catch check. Look for boolean expectedException

@epugh
Copy link
Contributor Author

epugh commented Jul 26, 2022

So, I am rethinking this PR... I think I was falling into the trap of having too many different changes in one PR... So, I'm going to remove the task "Double check all the files for other asserts that can be simplified.", as that is a LOT of changes. I will go through and clean up any MatcherAssert.assertThat that can be replaced with a assertThat if they extend the right Solr test base class....

@epugh
Copy link
Contributor Author

epugh commented Jul 26, 2022

@cpoerschke I'd love a review, I think this is ready!

@madrob
Copy link
Contributor

madrob commented Jul 26, 2022

See also apache/lucene#1049 and LUCENE-10662

Copy link
Contributor

@cpoerschke cpoerschke left a comment

Choose a reason for hiding this comment

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

19 / 26 files viewed

I wonder if we could/should also put the assert versions in question on the 'forbidden list' e.g. https://github.com/apache/solr/tree/main/gradle/validation/forbidden-apis or in some other way to avoid re-introduction of what is cleaned up here?

@epugh
Copy link
Contributor Author

epugh commented Aug 24, 2022

19 / 26 files viewed

I wonder if we could/should also put the assert versions in question on the 'forbidden list' e.g. https://github.com/apache/solr/tree/main/gradle/validation/forbidden-apis or in some other way to avoid re-introduction of what is cleaned up here?

That is a great suggestion. I haven't touched that feature of our build system before.

@uschindler
Copy link
Contributor

19 / 26 files viewed
I wonder if we could/should also put the assert versions in question on the 'forbidden list' e.g. https://github.com/apache/solr/tree/main/gradle/validation/forbidden-apis or in some other way to avoid re-introduction of what is cleaned up here?

That is a great suggestion. I haven't touched that feature of our build system before.

You have 3 options:

  • add the whole class into the forbiddenapis file (works for MatcherAssert if we do not want to use it)
  • add a whole series of a single method name with all overloads (Class#method(**))
  • list all methods to be forbidden (can be quite many) with all overloads

I'd add a separate txt file with correct name. The Gradle build automatically loads some forbiddenapis files when a specific dependency is in classpath. So it can be names forbiddenapis-hamcrest.txt (just example, the file name semantics are described in forbiddenapis.gradle). This prevents us from applying forbiddenapis in modules where the forbidden JAR file is not on classpath.

@epugh
Copy link
Contributor Author

epugh commented Aug 25, 2022

I gave it a stab of adding it to forbiddenapis, but didn't quite get it to work... There are some places that it's okay, like in the LTR module... May need a pairing session to grok this!

@uschindler
Copy link
Contributor

We can delay this to a separate PR. I also need try and error for this, because @dweiss implemented that Gradle code which picks the signatures files from that folder.

@epugh
Copy link
Contributor Author

epugh commented Oct 14, 2022

I merged main to this. @epugh were you going to do the forbiddenapis stuff? This looks like it never got merged. The tests should be kicked off again shortly.

I tried the forbiddenapis, and I think I didn't quite grok how it all worked, and ran out of energy.... If you wanted to add them to forbiddenapis, that would be great.. Otherwise, I'm happy to see this get merged!!!

Thanks for reviewing and updating these older PR's!!!

@risdenk
Copy link
Contributor

risdenk commented Oct 15, 2022

I added forbiddenapis and went down the rabbit hole w/ this.

So we can't override assertThat in SolrTestCase since its static and comes from Assert which is what LuceneTestCase derives from. ForbiddenApis correctly complains that we can't just override the static method and instead knows that Assert#assertThat is still being called. So the solution in this PR isn't going to work as is.

The MatcherAssert.assertThat static import also doesn't work in each file since the base class already has the static method assertThat - so the only solution is to explicitly do MatcherAssert.assertThat.

I have a change that does that that I'll push shortly including the forbiddenapis check.

@epugh
Copy link
Contributor Author

epugh commented Oct 15, 2022

it this PR maybe just going down the wrong approach? I'm not wedded to this one, it felt a bit werid to me as well.

@risdenk
Copy link
Contributor

risdenk commented Oct 15, 2022

it this PR maybe just going down the wrong approach?

no I don't think so. As Uwe said, should really be Class#method for static and this now follows that approach. Ideally this would have been the same way as Assert.assertThat originally, but oh well. This at least makes everything consistent. It only looks ugly once.

@risdenk risdenk self-requested a review October 15, 2022 21:08
Copy link
Contributor

@risdenk risdenk left a comment

Choose a reason for hiding this comment

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

I think this is good to go. @epugh @cpoerschke @uschindler can you take another look

Copy link
Contributor Author

@epugh epugh left a comment

Choose a reason for hiding this comment

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

I can't approve a PR I started, but I ran gw check and it looks great. This is a huge improvement in getting rid of old deprecated code compared to where I left it, so excited to get this in! What will we do with all our time if we aren't updating deprecated code in Solr ;-).

@risdenk
Copy link
Contributor

risdenk commented Oct 17, 2022

I'm getting a bunch of failures...

ERROR: The following test(s) have failed:
  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetKeyStorePasswordFromHadoopCredentialProvider (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetKeyStorePasswordFromHadoopCredentialProvider" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetTruststorePasswordFromHadoopCredentialProvider (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetTruststorePasswordFromHadoopCredentialProvider" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientTruststorePasswordFromHadoopCredentialProvider (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientTruststorePasswordFromHadoopCredentialProvider" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testHadoopCredentialProviderPrioritySysPropAndEnvVars (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testHadoopCredentialProviderPrioritySysPropAndEnvVars" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromKeystoreHadoopCredentialProvider (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromKeystoreHadoopCredentialProvider" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromClientKeystoreHadoopCredentialProvider (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromClientKeystoreHadoopCredentialProvider" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientKeyStorePasswordFromHadoopCredentialProvider (:solr:modules:hadoop-auth)
    Test output: /Users/risdenk/repos/apache/solr/solr/modules/hadoop-auth/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:modules:hadoop-auth:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientKeyStorePasswordFromHadoopCredentialProvider" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.core.TestSolrXml.testIntAsLongBad (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.core.TestSolrXml.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.core.TestSolrXml.testIntAsLongBad" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.ModuleUtilsTest.testIsValidName (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.ModuleUtilsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.ModuleUtilsTest.testIsValidName" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.ModuleUtilsTest.testListAvailableModules (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.ModuleUtilsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.ModuleUtilsTest.testListAvailableModules" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.ModuleUtilsTest.testResolveFromSyspropOrEnv (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.ModuleUtilsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.ModuleUtilsTest.testResolveFromSyspropOrEnv" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.ModuleUtilsTest.testGetModuleLibPath (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.ModuleUtilsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.ModuleUtilsTest.testGetModuleLibPath" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.ModuleUtilsTest.testModuleExists (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.ModuleUtilsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.ModuleUtilsTest.testModuleExists" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.ModuleUtilsTest.testResolveModules (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.ModuleUtilsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.ModuleUtilsTest.testResolveModules" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetKeyStorePasswordFromEnv (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetKeyStorePasswordFromEnv" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetTrustStorePasswordFromProperty (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetTrustStorePasswordFromProperty" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwNotOverwrittenIfExists (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwNotOverwrittenIfExists" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetTrustStorePasswordFromEnv (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetTrustStorePasswordFromEnv" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromBothEnvVars (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromBothEnvVars" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientKeyStorePasswordFromProperty (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientKeyStorePasswordFromProperty" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwNotOverwrittenIfExists (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwNotOverwrittenIfExists" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromClientKeystoreEnvVar (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromClientKeystoreEnvVar" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwFromBothEnvVars (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwFromBothEnvVars" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientTrustStorePasswordFromEnv (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientTrustStorePasswordFromEnv" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientTrustStorePasswordFromProperty (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientTrustStorePasswordFromProperty" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientKeyStorePasswordFromEnv (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetClientKeyStorePasswordFromEnv" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromKeystoreEnvVar (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigKeystorePwFromKeystoreEnvVar" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSystemPropertyPriorityOverEnvVar (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSystemPropertyPriorityOverEnvVar" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testGetKeyStorePasswordFromProperty (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testGetKeyStorePasswordFromProperty" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwFromKeystoreEnvVar (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwFromKeystoreEnvVar" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8

  - org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwFromClientKeystoreEnvVar (:solr:core)
    Test output: /Users/risdenk/repos/apache/solr/solr/core/build/test-results/test/outputs/OUTPUT-org.apache.solr.util.configuration.SSLConfigurationsTest.txt
    Reproduce with: gradlew :solr:core:test --tests "org.apache.solr.util.configuration.SSLConfigurationsTest.testSslConfigTruststorePwFromClientKeystoreEnvVar" -Ptests.jvms=5 "-Ptests.jvmargs=-XX:TieredStopAtLevel=1 -XX:ReservedCodeCacheSize=120m" -Ptests.seed=403B35E05244A844 -Ptests.file.encoding=UTF-8


FAILURE: Build completed with 2 failures.

so need to fix these:

   >     java.lang.AssertionError: One of the overrides of setUp does not propagate the call.
   >         at __randomizedtesting.SeedInfo.seed([403B35E05244A844:4673E8D5BA170D50]:0)
   >         at org.junit.Assert.fail(Assert.java:89)

@epugh
Copy link
Contributor Author

epugh commented Oct 17, 2022

I was on the wrong branch, and just was testing out java.lang.AssertionError: One of the overrides of setUp does not propagate the call. these as well...

ModuleUtilsTest ran fine in intelliJ directly ;-). Going to try with your new commits.

Copy link
Contributor

@risdenk risdenk left a comment

Choose a reason for hiding this comment

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

./gradlew check looks good to me now :)

@epugh
Copy link
Contributor Author

epugh commented Oct 17, 2022

Okay, this time things ran! Thanks for the fixes @risdenk

@epugh epugh mentioned this pull request Oct 17, 2022
7 tasks
@epugh epugh merged commit 8789520 into apache:main Oct 17, 2022
epugh added a commit that referenced this pull request Oct 18, 2022
Co-authored-by: Kevin Risden <krisden@apache.org>
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.

5 participants