Fix signal handling in test close handler, enable workflow for all PRs, and add resource limits#11
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: hawkeyexl <5209367+hawkeyexl@users.noreply.github.com>
Co-authored-by: hawkeyexl <5209367+hawkeyexl@users.noreply.github.com>
Co-authored-by: hawkeyexl <5209367+hawkeyexl@users.noreply.github.com>
|
@copilot make sure npm run build and npm test are both working. Got this error: Error: Docker process terminated by signal SIGTERM See the relevant code segment: 5. Use
|
Co-authored-by: hawkeyexl <5209367+hawkeyexl@users.noreply.github.com>
Both To fix the SIGTERM issue, I added:
Tests now pass consistently in ~47 seconds. Changes committed in f05d293 |
The test close handler only accepted exit code, ignoring signals. When a child process was terminated by signal, tests continued as if it succeeded. Additionally, the workflow only ran on PRs targeting
mainorrcbranches. Tests were also failing with SIGTERM errors due to resource constraints.Changes
codeandsignal. Added signal check that rejects before exit code check, with return statements preventing further processing:Added Docker resource limits (
--memory=2g --cpus=2) to prevent containers from being killed with SIGTERMIncreased exec
maxBufferto 10MB to handle larger test outputtest/artifacts/config.json:
debugtoinfoto reduce output verbosity.github/workflows/build-push.yml: Removed branch restrictions from
pull_requesttrigger to run on all PRs.Testing
npm run buildcompletes successfullynpm testpasses consistently (1 passing test in ~47 seconds)💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.