Skip to content

Safely handle and preserve tokio spawn_blocking errors in web endpoints - #425

Merged
Cylae merged 1 commit into
mainfrom
jules-8288305977386607064-f1263ca6
Sep 24, 2026
Merged

Cylae merged 1 commit into
mainfrom
jules-8288305977386607064-f1263ca6

Conversation

@Cylae

@Cylae Cylae commented Sep 23, 2026

Copy link
Copy Markdown
Owner

This commit addresses the issue of propagating thread/task join errors safely in the Axum web routes when spinning up tokio::task::spawn_blocking. It drops the unneeded unwrap_or_else fallbacks that ignored runtime panics and standardizes on .map_err().and_then() context propagations. It also fixes a bug in contract_port_matrix.rs by ensuring that PORT-MATRIX.md is generated into an existing directory. Tested via ./verify.sh.


PR created automatically by Jules for task 8288305977386607064 started by @Cylae

…t dirs

- Replaced `.unwrap_or_else` in `src/interface/web.rs` task handling with proper `map_err().and_then()` chains to properly preserve and propagate `.await` failures on web endpoints as per REQ-SEC.
- Cleaned up unneeded `.mutants.out` logic and correctly patched `tests/contract_port_matrix.rs` to allow safe nested markdown creation across systems.
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@Cylae
Cylae merged commit 495e04f into main Sep 24, 2026
1 check passed
@Cylae
Cylae deleted the jules-8288305977386607064-f1263ca6 branch September 24, 2026 17:20
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.

1 participant