This is an automated email from the ASF dual-hosted git repository.

tisonkun pushed a commit to branch codex/analyze-crate-tests
in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git

commit 39933c82e0e76943dd00e23da9b921ab554db4e2
Author: tison <[email protected]>
AuthorDate: Tue Jul 28 14:41:22 2026 +0800

    docs(test): document the pinned TCK snapshots
---
 CONTRIBUTING.md                    | 7 +++++--
 tools/download_serde_tests_data.py | 6 +++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f2d5e15..fb84166 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -116,8 +116,11 @@ Some tests depend on snapshot files under 
`datasketches/tests/serde_tests`. If t
 python3 ./tools/download_serde_tests_data.py --all
 ```
 
-The script downloads the latest snapshots from the `main` branch of
-[`apache/datasketches-tck`](https://github.com/apache/datasketches-tck) and 
writes them to:
+The script downloads snapshots from the pinned
+[`apache/datasketches-tck`](https://github.com/apache/datasketches-tck) ref 
declared as `TCK_REF`
+in `tools/download_serde_tests_data.py`. Pinning the ref keeps local and CI 
compatibility tests
+reproducible. Update that constant explicitly when adopting a newer TCK 
snapshot set. The files are
+written to:
 
 - `datasketches/tests/serde_tests/java_generated_files`
 - `datasketches/tests/serde_tests/cpp_generated_files`
diff --git a/tools/download_serde_tests_data.py 
b/tools/download_serde_tests_data.py
index a659611..d0f81b6 100755
--- a/tools/download_serde_tests_data.py
+++ b/tools/download_serde_tests_data.py
@@ -26,9 +26,13 @@ import urllib.request
 import zipfile
 from pathlib import Path, PurePosixPath
 
+TCK_REF = "0016a517"
+
 
 def download_archive(destination):
-    archive_url = 
"https://github.com/apache/datasketches-tck/archive/0016a517/main.zip";
+    archive_url = (
+        f"https://github.com/apache/datasketches-tck/archive/{TCK_REF}.zip";
+    )
     print(f"Downloading serialization snapshots from {archive_url}", 
flush=True)
     request = urllib.request.Request(archive_url)
     with urllib.request.urlopen(request, timeout=60) as response:


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

Reply via email to