sarutak opened a new pull request, #56003:
URL: https://github.com/apache/spark/pull/56003

   ### What changes were proposed in this pull request?
   This PR adds support for the `SPARK_VERSIONS_SUITE_IVY_SETTINGS` environment 
variable in `HiveClientBuilder`. When set, its value is used as the path to a 
custom Ivy settings file (`spark.jars.ivySettings`) for Hive metastore jar 
resolution during tests.
   
   ### Why are the changes needed?
   After SPARK-56867(#55881) added support for `spark.jars.ivySettings` in 
`IsolatedClientLoader`, the test infrastructure should also be able to leverage 
this configuration. In closed environments where only authenticated private 
repositories are accessible, tests that download Hive metastore jars (e.g., 
`HiveClientSuite`, `HivePartitionFilteringSuite`) would fail without a way to 
specify credentials. This environment variable allows such environments to 
provide a custom Ivy settings file with the necessary authentication 
configuration.
   
   This follows the same pattern as the existing 
`SPARK_VERSIONS_SUITE_IVY_PATH` environment variable, which allows specifying a 
custom Ivy cache path for the same set of tests.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Confirmed it works with a private repository which requires authentication.
   ```
   $ SPARK_VERSIONS_SUITE_IVY_SETTINGS=/path/to/ivy-settings.xml build/sbt 
'testOnly org.apache.spark.sql.hive.client.HivePartitionLocationSuites'
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   Generated-by: Claude (via Kiro CLI, auto model selection)
   


-- 
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