Skip to content

fix: handle Joern command timeout output safely#94

Merged
MatthiasBurger-Coder merged 1 commit into
mainfrom
fix-joern-timeout-ci
May 9, 2026
Merged

fix: handle Joern command timeout output safely#94
MatthiasBurger-Coder merged 1 commit into
mainfrom
fix-joern-timeout-ci

Conversation

@MatthiasBurger-Coder
Copy link
Copy Markdown
Owner

Summary

  • avoid reading process stdout after forced Joern command timeout
  • wait for the forcibly terminated process before returning the timeout result
  • unblock the Linux CI path that prevented the SonarCloud scan from running

Verification

  • wsl.exe bash -lc "cd /mnt/d/Projects/forensics_tracing && ./gradlew test --tests de.burger.forensics.adaptersupport.joern.JoernOutputParserTest.processExecutorReportsTimeouts --console=plain --stacktrace"
  • wsl.exe bash -lc "cd /mnt/d/Projects/forensics_tracing && ./gradlew clean test jacocoTestReport jacocoTestCoverageVerification checkPackageCoverage --console=plain --stacktrace"
  • ./gradlew.bat test --tests de.burger.forensics.adaptersupport.joern.JoernOutputParserTest.processExecutorReportsTimeouts --console=plain --stacktrace

Change the Joern process timeout path to terminate the process and return the timeout diagnostic without reading stdout after the process stream may already be closed on Linux.

Affected component: ProcessJoernCommandExecutor in the Joern adapter support package.

Bug fixed: Linux CI failed in JoernOutputParserTest.processExecutorReportsTimeouts with an IOException: Stream closed before SonarCloud could run.

Features introduced: none. Refactoring or architecture changes: none. Breaking changes: none.

Tests executed: WSL ./gradlew test --tests de.burger.forensics.adaptersupport.joern.JoernOutputParserTest.processExecutorReportsTimeouts --console=plain --stacktrace; WSL ./gradlew clean test jacocoTestReport jacocoTestCoverageVerification checkPackageCoverage --console=plain --stacktrace; Windows .\\gradlew.bat test --tests de.burger.forensics.adaptersupport.joern.JoernOutputParserTest.processExecutorReportsTimeouts --console=plain --stacktrace.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 9, 2026

@MatthiasBurger-Coder MatthiasBurger-Coder merged commit f04c325 into main May 9, 2026
2 checks passed
@MatthiasBurger-Coder MatthiasBurger-Coder deleted the fix-joern-timeout-ci branch May 9, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant