Skip to content

Commit b74e510

Browse files
committed
fix: make ci happy
Signed-off-by: Chojan Shang <psiace@apache.org>
1 parent b6f2b08 commit b74e510

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

tools/generate_serialization_test_data.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import argparse
2525
from pathlib import Path
2626

27+
2728
def check_command_installed(command):
2829
"""Checks if a command is available in the system path."""
2930
if shutil.which(command) is None:
@@ -73,8 +74,24 @@ def generate_java_files(workspace_dir, project_dir):
7374
repo_url = "https://github.com/apache/datasketches-java.git"
7475
run_command(["git", "clone", repo_url, str(temp_dir)])
7576

77+
# Upstream surefire excludes the generate_java_files group by default; drop that exclusion in the temp clone.
78+
pom_path = temp_dir / "pom.xml"
79+
pom_text = pom_path.read_text()
80+
pom_text = pom_text.replace(
81+
"${testng.generate-java-files},${testng.check-cpp-files},${testng.check-go-files},\n${testng.check-cpp-historical-files}",
82+
"${testng.check-cpp-files},${testng.check-go-files},${testng.check-cpp-historical-files}",
83+
)
84+
pom_path.write_text(pom_text)
85+
7686
# 5. Run Maven to generate files
77-
mvn_cmd = ["mvn", "test", "-P", "generate-java-files"]
87+
mvn_cmd = [
88+
"mvn",
89+
"test",
90+
"-P",
91+
"generate-java-files",
92+
"-Dsurefire.groups=generate_java_files",
93+
"-Dsurefire.excludedGroups=",
94+
]
7895
use_shell = False
7996
if os.name == 'nt': # Windows
8097
mvn_cmd[0] = "mvn.cmd"

typos.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
[default.extend-words]
1919
# False-Positive Abbreviations
2020
"PREINTS" = "PREINTS"
21+
"testng" = "testng"
2122

2223
[files]
2324
extend-exclude = []

0 commit comments

Comments
 (0)