Skip to content

fix(upload): make the signal upload option actually cancel the upload - #1747

Merged
skjnldsv merged 1 commit into
mainfrom
fix/cancel
Sep 16, 2026
Merged

skjnldsv merged 1 commit into
mainfrom
fix/cancel

Conversation

@susnux

@susnux susnux commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Both upload paths registered upload.cancel unbound as the abort listener.
cancel() reads the private #abortController, so with this being the AbortSignal it threw instead of cancelling — and as it threw inside a listener, the upload silently kept running. An already aborted signal did nothing at all, since the listener never fires.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added type: bug 🐛 Something isn't working 3. to review 3️⃣ Waiting for reviews labels Sep 16, 2026
Both upload paths registered `upload.cancel` unbound as the `abort` listener.
`cancel()` reads the private `#abortController`, so with `this` being the
`AbortSignal` it threw instead of cancelling — and as it threw inside a
listener, the upload silently kept running. An already aborted signal did
nothing at all, since the listener never fires.

Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@codecov

codecov Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.95%. Comparing base (0e21f9d) to head (9d68acf).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1747      +/-   ##
==========================================
+ Coverage   87.55%   87.95%   +0.39%     
==========================================
  Files          44       44              
  Lines        1125     1129       +4     
  Branches      280      281       +1     
==========================================
+ Hits          985      993       +8     
+ Misses        103      101       -2     
+ Partials       37       35       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@skjnldsv
skjnldsv merged commit 2e56052 into main Sep 16, 2026
13 checks passed
@skjnldsv
skjnldsv deleted the fix/cancel branch September 16, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review 3️⃣ Waiting for reviews type: bug 🐛 Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants