Skip to content

Commit 3956c2f

Browse files
committed
Merge branch 'cassandra-5.0' into cassandra-6.0
2 parents 35d6f8c + a5bed11 commit 3956c2f

2 files changed

Lines changed: 22 additions & 4 deletions

File tree

‎.build/run-python-dtests.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ fi
196196
SPLIT_TESTS="${SPLIT_TESTS//$'\n'/ }"
197197

198198
pytest_results_file="${DIST_DIR}/test/output/nosetests.xml"
199-
pytest_opts="-vv --log-cli-level=DEBUG --junit-xml=${pytest_results_file} --junit-prefix=${DTEST_TARGET} -s"
199+
# INFO (not DEBUG): the driver's reconnect loop logs full tracebacks at DEBUG, which
200+
# floods the Jenkins console (tens of MB per cell) and the controller's in-memory step log
201+
pytest_opts="-vv --log-cli-level=INFO --junit-xml=${pytest_results_file} --junit-prefix=${DTEST_TARGET} -s"
200202

201203
echo ""
202204
echo "pytest ${pytest_opts} --cassandra-dir=${CASSANDRA_DIR} --keep-failed-test-dir ${DTEST_ARGS} ${SPLIT_TESTS}"

‎.jenkins/Jenkinsfile‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,22 @@ def isJdkEnabled(jdk) {
339339
return !params.jdk?.trim() || params.jdk.trim() == jdk
340340
}
341341

342+
/**
343+
* Noisy (but harmless) output lines, filtered from the in-memory console log.
344+
* The full output is still saved in the archived stage log (build/*.log.xz),
345+
* so this only trims what the controller holds in memory / renders in the UI.
346+
**/
347+
def consoleNoiseFilters() {
348+
return [
349+
"Forking using command" // ant echoes the full forked classpath before every maven forked run
350+
]
351+
}
352+
353+
// append a sed filter that drops lines matching consoleNoiseFilters() from a step's output
354+
def filterConsoleOutput(String script) {
355+
return "${script} | sed -e " + consoleNoiseFilters().collect { "/${it}/d" }.join(" -e ")
356+
}
357+
342358
/**
343359
* Renders build script into pipeline steps
344360
**/
@@ -366,7 +382,7 @@ def build(command, cell) {
366382
script_vars = "${script_vars} m2_dir=\'${WORKSPACE}/build/m2\'"
367383
timeout(time: 1, unit: 'HOURS') {
368384
try {
369-
def status = sh label: "RUNNING ${cell.step}...", script: "${script_vars} ${build_script} ${cell.jdk} 2>&1 | tee >( xz -c > build/${logfile} )", returnStatus: true
385+
def status = sh label: "RUNNING ${cell.step}...", script: filterConsoleOutput("${script_vars} ${build_script} ${cell.jdk} 2>&1 | tee >( xz -c > build/${logfile} )"), returnStatus: true
370386
dir("build") {
371387
archiveArtifacts artifacts: "${logfile}", fingerprint: true
372388
copyToNightlies("${logfile}", "${cell.step}/jdk${cell.jdk}/${cell.arch}/")
@@ -428,7 +444,7 @@ def test(command, cell) {
428444
try {
429445
buildJVMDTestJars(cell, script_vars, logfile)
430446
script_vars = "${script_vars} docker_timeout_hours=\"${command.timeout_hours}\""
431-
def status = sh label: "RUNNING TESTS ${cell.step}...", script: "${script_vars} .build/docker/run-tests.sh -a ${cell.step} -c '${cell.split}/${splits}' -j ${cell.jdk} 2>&1 | tee >( xz -c > build/${logfile} )", returnStatus: true
447+
def status = sh label: "RUNNING TESTS ${cell.step}...", script: filterConsoleOutput("${script_vars} .build/docker/run-tests.sh -a ${cell.step} -c '${cell.split}/${splits}' -j ${cell.jdk} 2>&1 | tee >( xz -c > build/${logfile} )"), returnStatus: true
432448
dir("build") {
433449
archiveArtifacts artifacts: "${logfile}", fingerprint: true
434450
}
@@ -495,7 +511,7 @@ def buildJVMDTestJars(cell, script_vars, logfile) {
495511
try {
496512
unstash name: "jvm_dtests_${cell.arch}_${cell.jdk}"
497513
} catch (error) {
498-
sh label: "RUNNING build_dtest_jars...", script: "${script_vars} .build/docker/run-tests.sh -a build_dtest_jars -j ${cell.jdk} 2>&1 | tee >( xz -c > build/${logfile} )"
514+
sh label: "RUNNING build_dtest_jars...", script: filterConsoleOutput("${script_vars} .build/docker/run-tests.sh -a build_dtest_jars -j ${cell.jdk} 2>&1 | tee >( xz -c > build/${logfile} )")
499515
stash name: "jvm_dtests_${cell.arch}_${cell.jdk}", includes: '**/dtest*.jar'
500516
}
501517
}

0 commit comments

Comments
 (0)