-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/#325 incomplete debug message #417
Conversation
c27b4c4
to
35bc115
Compare
Codecov Report
@@ Coverage Diff @@
## main #417 +/- ##
==========================================
+ Coverage 75.59% 75.71% +0.11%
==========================================
Files 37 37
Lines 3487 3508 +21
==========================================
+ Hits 2636 2656 +20
Misses 686 686
- Partials 165 166 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
35bc115
to
d2fcb16
Compare
Awesome, this PR (and the knowledge gained to create it) is great news! Many thanks as well to separate the regression test in a dedicated commit and writing it first (that's real TDD)! Your code changes look fine, and I recognize the probing you suggest here. There is just a minor thing I wasn't sure about: When & how is determined that the From my (limited) understanding, the second, or third option sound good, and I am fine to go with the second one you implemented. 👍 |
dd5117f
to
50d0ea7
Compare
This reverts commit 72d926e.
that is created by sending SIGQUIT to the bash process by not processing output after the the client disconnected / we have sent the SIGQUIT.
50d0ea7
to
8490e34
Compare
Exactly, this context represents if the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks for your detailed explanation. This makes sense to me, and I was now able to fully understand it :)
Closes #325
In order to fix the incomplete debug message we aim to ignore output of the runner after we have sent the
SIGQUIT
.We could do so by:
SentryDebugWriter
away from the debug command creation (innomad.go
) to the event processing (innomad_runner.go
).SentryDebugWriter
probe if it can write to theCodeOceanWriter
before it processes the data.nomad.go
to thenomad_runner.go
that is done when no output should be transferred (before the execution should be aborted).I liked the second option the most which is now implemented in this PR.
The regression test is in a separate commit as it took more changes than the actual fix.