Fix reset_workflow_status#11
Merged
daniel-thom merged 1 commit intomainfrom Jun 9, 2025
Merged
Conversation
The parameter has_detected_need_to_run_completion_script needed to be reset when reset_workflow_status was called.
fc1a24a to
19a44d7
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
github-actions Bot
pushed a commit
that referenced
this pull request
Jun 9, 2025
Fix reset_workflow_status
daniel-thom
added a commit
that referenced
this pull request
Apr 19, 2026
Fixes Copilot review comments on PR #271: - Pass raw DB path to `torc-server --database`; torc-server itself prefixes `sqlite:`, so the previous `sqlite:<path>` argument would become `sqlite:sqlite:<path>` (#5). - Drain torc-server stderr in a dedicated thread rather than piping and ignoring it or inheriting the fd (#2). Inheriting shares the fd with the child, which prevented Output::wait from returning when process::exit orphaned the server. - Keep draining torc-server stdout for the lifetime of the child. Previously the drainer exited after the port handshake, leaving the pipe buffer able to fill (#7). - `wait()` after `kill()` on every early-return path in `start_standalone_server` so zombies aren't left behind on Unix (#8). - Correct the misleading SAFETY comment on the `unsafe set_var` call in main (#3). Tie the torc-server subprocess lifetime to the torc client via a parent-death pipe, so standalone cleanup no longer depends on `Drop`: - torc-server gains a hidden `--shutdown-on-stdin-eof` flag; when set, a blocking thread reads stdin and signals graceful shutdown on EOF. The existing Ctrl+C handler and the new trigger are composed in a shared `build_shutdown_future` used by both the HTTP and HTTPS branches. - `StandaloneServer` now owns the child's stdin write end; when the torc client terminates by any means (normal return, `process::exit`, signal, crash), the kernel closes the pipe, torc-server sees EOF, and it shuts down. `Drop` still kills the child for the fast path. - Added integration test for the process::exit path. Test/portability fixes: - Use `std::env::join_paths` for PATH construction in the test helper (#9). - Gate the `ps`-based shutdown test with `#[cfg(unix)]` (#6). - Fix misleading comment in the commands-file fixture: indented `#` lines are stripped after `trim()` (#10). - Drop unused `torc_server_binary_path` import and placeholder (#11). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parameter has_detected_need_to_run_completion_script needed to be reset when reset_workflow_status was called.