Could we include submodules in the source distribution instead? Also, you can still build from the source distribution, you just have to -DskipTests.
On Wed, Dec 13, 2023, at 09:54, Jean-Baptiste Onofré wrote: > Hi David and foxes, > > I checked the release source distribution and I think we should maybe > include a profile to include TestTls related tests. > > As an Apache project, we are supposed to be able to build from the > source distribution without any external requirements (in the case the > project goes to the attic or someone wants to create a new release on > an old branch). > > Downloading > https://dist.apache.org/repos/dist/release/arrow/arrow-14.0.1/apache-arrow-14.0.1.tar.gz > and trying to build with: > > mvn clean install > > fails as git submodule is required. > > So, I would propose to: > 1. Exclude TestTls related tests by default > 2. Add a new profile (tlsTests) including TestTls tests > 3. Activate the profile on CI (-PtlsTests) > > Thoughts ? > > Regards > JB > > > On Mon, Dec 11, 2023 at 3:00 PM David Li <lidav...@apache.org> wrote: >> >> You can `git submodule update --init` to get the files. This is documented >> in the environment setup [1], though the failing assertion could be more >> helpful about pointing this out. >> >> [1]: https://arrow.apache.org/docs/dev/developers/java/building.html#building >> >> On Mon, Dec 11, 2023, at 08:49, Jean-Baptiste Onofré wrote: >> > Hi guys, >> > >> > I noticed that Arrow Flight Core doesn't build "out of the box" due to >> > the TestTls failing. >> > The reason what TestTls is failing is because it tries to read >> > cert0.pem from the testing/data folder (at project root), but testing >> > is empty by default. >> > If I create a cert0.pem by hand (with self signing key), it works. >> > >> > So, I propose three options: >> > 1. We document the required tests to build Arrow java cleanly >> > 2. We create a default self signed cert0.pem in testing/data that we >> > commit. >> > 3. We add a before step to the test to create the pem file >> > >> > My preference would be for 3. >> > >> > Thoughts ? >> > >> > Regards >> > JB