This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-go.git
The following commit(s) were added to refs/heads/main by this push:
new 24401785 docs: explain test data submodules and env vars for running
tests (#1477)
24401785 is described below
commit 24401785258a100072f531276579b0d76e21ee11
Author: Ayaan <[email protected]>
AuthorDate: Mon Nov 9 22:35:18 2026 +0530
docs: explain test data submodules and env vars for running tests (#1477)
### Rationale for this change
A fresh `git clone` followed by `go test ./...` fails in `arrow/csv`,
`parquet`,
`parquet/file` and `parquet/pqarrow`, because their test data lives in
the
`arrow-testing` and `parquet-testing` submodules and the tests need
`ARROW_TEST_DATA` / `PARQUET_TEST_DATA`. CONTRIBUTING.md doesn't mention
this.
Fixes #1476
### What changes are included in this PR?
A "Running the tests" section in CONTRIBUTING.md: clone with
`--recurse-submodules` (or `git submodule update --init`), set the two
env vars
(as `ci/scripts/test.sh` does), then `go test ./...`.
### Are these changes tested?
Docs only. On a fresh clone at 66722e30, those four packages fail
without the
submodules and pass after `git submodule update --init` with both env
vars set.
### Are there any user-facing changes?
No.
---------
Signed-off-by: Ayaan <[email protected]>
---
CONTRIBUTING.md | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e2ad4e1c..88df145f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -40,6 +40,40 @@ ci: update CI environment
feat(parquet): support new encoding type
```
+## Running the tests
+
+Some tests read shared test data from the `arrow-testing` and
+`parquet-testing` git submodules. Fetch them when you clone:
+
+```sh
+git clone --recurse-submodules https://github.com/apache/arrow-go.git
+```
+
+or, in an existing clone:
+
+```sh
+git submodule update --init
+```
+
+Then point the tests at the data and run them from the repository root:
+
+```sh
+export ARROW_TEST_DATA=$PWD/arrow-testing/data
+export PARQUET_TEST_DATA=$PWD/parquet-testing/data
+export PARQUET_TEST_BAD_DATA=$PWD/parquet-testing/bad_data
+go test ./...
+```
+
+Set these so tests that use the shared data can run. Without the submodules,
+tests in packages such as `arrow/csv`, `parquet`, `parquet/file` and
+`parquet/pqarrow` fail or panic because they cannot find their data files.
+Some tests instead return early or skip when a variable is unset.
+
+CI runs Arrow tests with `-short` and the `assert,test` tags, then adds
+`noasm` for a second pass. See [`ci/scripts/test.sh`](ci/scripts/test.sh)
+for the full commands and CGO-specific tags. Some checks require these tags,
+so include them when reproducing CI failures locally.
+
## Generating Thrift
The generated Go definitions for Parquet Thrift live under