Note that just summarizing the whole PR to a 7k line Apprunner plugin is a bit of a stretch. There are actually multiple plugins and multiple DSL to support many use cases.
A Testcontainers approach could be an option, when Docker images are available. The tradeoff being that it will require Docker to be properly setup, as opposed to natively running in the users preferred build system. A Gradle exec hook would not work as it would be implemented, and therefore limited to the Polaris repository. Whereas this proposal serves both the Polaris devs and the Polaris users. -- Pierre On Thu, May 29, 2025 at 12:14 AM Yufei Gu <flyrain...@gmail.com> wrote: > Thanks for sharing it here. > > If all we need is to start a Polaris instance, run the tests, and shut it > down, a 7 k-line Apprunner plugin feels like using a sledgehammer on a > thumbtack. Would a lightweight Testcontainers wrapper, or even a simple > Gradle exec hook would cover the use cases? > > Yufei > > > On Tue, May 27, 2025 at 11:17 AM Pierre Laporte <pie...@pingtimeout.fr> > wrote: > > > Hi all > > > > The PR polaris-tools#18 ( > https://github.com/apache/polaris-tools/pull/18/) > > aims at adding the ability to run temporary Polaris servers using Maven > and > > Gradle. It is a successor to https://github.com/apache/polaris/pull/785 > > that was initially proposed for the apache/polaris repository. > > > > The goal is to make it easy for users to develop integration tests for > > their applications, without relying on a central Polaris server. > > > > As Yufei asked some questions in the PR comments, let me repeat the > answers > > here so that everybody has the same context. > > > > The PR contains code to support a Groovy DSL in Gradle. This is because, > > even if Polaris uses Kotlin for all Gradle build files, some users may be > > using Groovy. So in order to make it possible for them to leverage the > > Apprunner, a Groovy DSL is supported. > > > > Similarly, the PR contains code for Maven MOJOs to start and stop Polaris > > servers. Those are intended to be used in Java project that use Maven as > > their build tools. That way, the Apprunner supports the two mainstream > > Java build systems. > > > > This thread is created to continue discussing the Apprunner integration > in > > the polaris-tools repository and answer any remaining question. > > > > WDYT? > > > > -- > > > > Pierre > > >