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

tison pushed a commit to branch fixup-ci
in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git

commit 75a37b6e7a458040a67d0ccc398450b92ce695c3
Author: tison <[email protected]>
AuthorDate: Thu Jan 8 10:28:15 2026 +0800

    ci: generate snaps stably
    
    Signed-off-by: tison <[email protected]>
---
 .github/workflows/ci.yml                  |  8 +++++---
 tools/generate_serialization_test_data.py | 22 +++++++++++++++++++---
 2 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 318599e..e396c9b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -101,10 +101,12 @@ jobs:
         working-directory: examples
         run: |
           set -x
-          EXAMPLES=( hll_update )
-          for example in $EXAMPLES; do
+          METADATA=$( cargo metadata --format-version=1 --no-deps )
+          EXAMPLES=$( echo "$METADATA" | jq -r '.packages[] | select(.name == 
"examples") | .targets[].name' )
+          while read -r example; do
+            echo "Running example: $example"
             cargo run --bin "$example"
-          done
+          done <<< "$EXAMPLES"
 
   required:
     name: Required
diff --git a/tools/generate_serialization_test_data.py 
b/tools/generate_serialization_test_data.py
index 7fb488b..c965f39 100755
--- a/tools/generate_serialization_test_data.py
+++ b/tools/generate_serialization_test_data.py
@@ -71,7 +71,15 @@ def generate_java_files(workspace_dir, project_dir):
 
     # 4. Clone repository
     repo_url = "https://github.com/apache/datasketches-java.git";
-    run_command(["git", "clone", repo_url, str(temp_dir)])
+    branch = "9.0.0" # FIXME: temporarily use fixed branch until mvn issue is 
resolved
+    run_command([
+        "git", "clone",
+        "--depth", "1",
+        "--branch", branch,
+        "--single-branch",
+        repo_url,
+        str(temp_dir)
+    ])
 
     # 5. Run Maven to generate files
     mvn_cmd = ["mvn", "test", "-P", "generate-java-files"]
@@ -125,7 +133,15 @@ def generate_cpp_files(workspace_dir, project_root):
 
     # 4. Clone repository
     repo_url = "https://github.com/apache/datasketches-cpp.git";
-    run_command(["git", "clone", repo_url, str(temp_dir)])
+    branch = "master"
+    run_command([
+        "git", "clone",
+        "--depth", "1",
+        "--branch", branch,
+        "--single-branch",
+        repo_url,
+        str(temp_dir)
+    ])
 
     # 5. Build and Run CMake
     build_dir = temp_dir / "build"
@@ -152,7 +168,7 @@ def generate_cpp_files(workspace_dir, project_root):
     files_copied = 0
     # Search recursively in build directory for *_cpp.sk
     for file_path in build_dir.rglob("*_cpp.sk"):
-         # Avoid copying from CMakeFiles or other intermediate dirs if 
possible, but the pattern is specific enough
+        # Avoid copying from CMakeFiles or other intermediate dirs if 
possible, but the pattern is specific enough
         shutil.copy2(file_path, output_dir)
         print(f"Copied: {file_path.name}")
         files_copied += 1


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

Reply via email to