Repository navigation
Conversation
b28ad0e to
d793024
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Local-sshd failures can invoke an invalid container command, logs may be truncated, and the advertised debug flags are missing.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Adds failed-test diagnostics by dumping containerized sshd logs during fixture teardown.
Changes:
- Propagates test exit status through fixture cleanup.
- Dumps sshd logs when tests fail.
- Comments out an existing KEX compatibility setting.
File summaries
| File | Description |
|---|---|
tests/session_fixture.h |
Updates fixture teardown signature. |
tests/session_fixture.c |
Forwards test status to OpenSSH cleanup. |
tests/runner.c |
Passes test result during teardown. |
tests/openssh_server/sshd_config |
Disables explicit DH KEX configuration. |
tests/openssh_fixture.h |
Updates OpenSSH teardown signature. |
tests/openssh_fixture.c |
Adds failed-test log collection. |
Review details
- Files reviewed: 6/6 changed files
- Comments generated: 4
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
Auto-removal makes logs unavailable for failures where the sshd container exits before teardown.
Get a fresh assessment by requesting another Copilot review.
Review details
- Files reviewed: 7/7 changed files
- Comments generated: 1
- Review effort level: Balanced
| if(exit_code) | ||
| openssh_server_dump_logs(running_container_id); |
There was a problem hiding this comment.
Yeah, I've suffered through this, but aside from re-introducing this issue manually, by letting sshd exit prematurely, I don't think we should redesign everything around such an event. Pass.
To silence a warning, in rare failure cases: ``` srclimit_penalise: ipv4: new 172.17.0.1/32 deferred penalty of 1.000 seconds for penalty: connections without attempting authentication ``` Ref: https://github.com/libssh2/libssh2/actions/runs/37207427612/job/111451438515?pr=2649#step:25:537 Also: - seize the opportunity and bump sshd debug level to 2. Level 1 is too low to see clearly in some cases. Ref: #2649 Follow-up to 45aa5c5 #2621 Refs: https://man.openbsd.org/sshd_config#PerSourcePenalties https://www.openssh.org/txt/release-9.8 Closes #2650
To help debugging issues.
Also:
run_command_varg()run_command_varg()BUFSIZwith literal sizes inrun_command_varg().After this patch it's showing this in the CI log for the libgcrypt
fallout that previously needed a long time to diagnose:
Follow-up to 1d0b86a #2484
Follow-up to 8be5716 #2174
Follow-up to 51f6259 #1720