Skip to content

Fix command hang and smoke test it from CI - #463

Open
mgaffigan wants to merge 2 commits into
OpenIntegrationEngine:mainfrom
mgaffigan:fix/command
Open

mgaffigan wants to merge 2 commits into
OpenIntegrationEngine:mainfrom
mgaffigan:fix/command

Conversation

@mgaffigan

@mgaffigan mgaffigan commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

command hangs instead of exiting when it cannot reach the server. The client's
connection monitor is a non-daemon thread and runShell only closed the client on
success, so a refused connection, rejected certificate or failed login printed the
error and then sat there forever.

Also adds CI smoke tests for command, which had no end-to-end coverage.

Review notes:

  • See Fix command hang when the server is unreachable for the actual fix
  • Most of this is tests
  • exitsWhenServerIsUnreachable is the regression test - it fails as a 90s timeout if the hang returns
  • Assertions are on output, not exit code: command exits 0 whether or not it could log in

#280 depends on this.

@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Test Results

126 files  ± 0  126 suites  ±0   3m 37s ⏱️ + 1m 28s
721 tests + 4  721 ✅ + 4  0 💤 ±0  0 ❌ ±0 
793 runs  +28  787 ✅ +28  6 💤 ±0  0 ❌ ±0 

Results for commit 38705e8. ± Comparison against base commit 03eefcf.

♻️ This comment has been updated with latest results.

The client's connection monitor is a non-daemon thread, and runShell only
closed the client on success.  A refused connection, rejected certificate,
or failed login printed the error and then hung forever.

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
Nothing covered command end to end.  The harness image now carries the CLI
and runs it as a child process, so the distribution layout and launcher
manifest are covered too.

Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
@mgaffigan

Copy link
Copy Markdown
Contributor Author

Related #231

@tonygermano

Copy link
Copy Markdown
Member

Related #231

I updated this PR as it already had considerable work done on it if we can review that one. It would only replace the first commit from this PR.

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.

2 participants