epugh commented on PR #5437:
URL: https://github.com/apache/solr/pull/5437#issuecomment-7416225902

   Thanks, this fixes what SOLR-18660 describes: beast's copies of the test 
task now get `testClassesDirs` and `classpath`, the same way `catsTests` and 
`dockerRollingUpgradeTest` already set them.
   
   Now that the `test_N` copies actually run again, two side effects show up:
   
   **1. Beast now runs suites in projects whose `test` task is disabled on 
purpose.** `solr/packaging` (`build.gradle:264`) and `solr/docker` set 
`tasks.named('test') { enabled = false }`, because CATS needs `installFullDist` 
plus `configureCatsTestTask`, and `RollingUpgradeTest` needs `dockerBuild` and 
an image id. The beast copies don't inherit the disabled flag, those 
dependencies or that setup. Before this PR their classpath was empty, so they 
did nothing. Now a root-level run like `./gradlew beast -Ptests.dups=3 --tests 
"*Test"` will run those suites without their setup, and they'll fail. Could we 
skip creating beast copies when the project's `test` task is disabled? 
Something like:
   
   ```groovy
   if (!tasks.test.enabled) return
   ```
   
   **2. Settings made only on a project's own `test` task aren't copied.** The 
beast copies only get what's configured on every test task 
(`tasks.withType(Test)`). `solr/modules/s3-repository/build.gradle:78-81` sets 
`aws.accessKeyId` and `aws.secretAccessKey` inside `test { }`, so beasting S3 
tests runs without them. This gap existed before Gradle 9, but this PR makes it 
visible again. One fix is to move those two lines into 
`tasks.withType(Test).configureEach` in that module.
   
   Minor: `tasks.test.testClassesDirs` and `tasks.test.classpath` might be a 
better source than `sourceSets.test`, so the copies always match `test` even if 
a module later customises its classpath.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to