fix: nightly YAML multiline run command starts sbt without tasks#1031
Merged
pjfanning merged 1 commit intoapache:mainfrom May 9, 2026
Merged
fix: nightly YAML multiline run command starts sbt without tasks#1031pjfanning merged 1 commit intoapache:mainfrom
pjfanning merged 1 commit intoapache:mainfrom
Conversation
Motivation: After apache#1030, the nightly job has been hanging for 5+ hours per matrix entry until canceled (e.g. run 25588927669). The `run: |` literal block turns each indented line into a separate shell command, so the first line `sbt -D... -D...` launches sbt with no tasks and drops into the interactive REPL, while the following `-D...` / `"++ ..." ... test` lines never reach sbt. Modification: Switch the block scalar from `|` (literal, preserves newlines) to `>` (folded, joins lines with spaces) so the whole sbt invocation runs as a single command. Trailing whitespace on the first line is also removed. Result: The nightly job runs sbt with all `-D` flags and the `test` task in one process, restoring normal completion time.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After #1030, the nightly job hangs for 5+ hours per matrix entry until canceled (e.g. run 25588927669).
The
run: |literal block scalar turns each indented line into a separate shell command, so:sbt -Dpekko.http.parallelExecution=false -Dpekko.test.timefactor=2runs sbt with no tasks and drops into the interactive REPL — the job hangs here until the workflow timeout.-Dpekko.build.pekko.version=...,-DTLS_ENGINE_CONFIG=..., and"++ ..." mimaReportBinaryIssues testlines are dispatched as separate shell commands and never reach sbt.The hung-job logs match exactly:
sbt server startedfollowed by long silence and[gc] Pause Full (System.gc()).Fix
Switch the block scalar from
|(literal, preserves newlines) to>(folded, joins lines with spaces) so the whole sbt invocation runs as a single command. Also drop the trailing whitespace on the first line.Verified locally — the YAML now parses to a single-line command:
Test plan