Skip to content

feat(upload): consume postprocessing events in the coordinator - #938

Merged
butonic merged 2 commits into
workpackagesfrom
port-717
Nov 4, 2026
Merged

butonic merged 2 commits into
workpackagesfrom
port-717

Conversation

@butonic

@butonic butonic commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Part of the upload coordinator stack, see #934.

We now have the coordinator consume the postprocessing events itself instead of each driver: on PostprocessingFinished it commits or rolls back the upload, UploadReady names the parent. The events carry a ResourceID, so a consumer only handles uploads for its own storage. It keeps what the decomposedfs consumer did: it runs in the event's trace context and as the initiator, and records the postprocessing steps in the session status.

Review focus:

  • postprocessing.go: the outcome handling (continue, abort, delete), restart and clean-upload events, and which session status each leaves behind
  • the ResourceID filter: with several storage providers on one event stream, only the right one may act

Review commit by commit: the first commit is the generic change, the following ones adapt the pkg decomposedfs fork and posix.

stacked on #937

Assisted by Claude Code (claude-opus-5-5): it adapted the changes, split them into this stack and wrote this description.

@butonic butonic added the Type:Maintenance E.g. technical debt, packaging, etc. label Oct 29, 2026
@butonic
butonic added this pull request to stack #952 October 29, 2026 14:19
@butonic
butonic force-pushed the port-717 branch 3 times, most recently from 6b773e5 to 0bc03f4 Compare October 30, 2026 10:44
@butonic butonic changed the title port the coordinator's postprocessing consumer feat(upload): consume postprocessing events in the coordinator Nov 3, 2026
@butonic
butonic force-pushed the port-717 branch 4 times, most recently from 168e033 to 8dc4530 Compare November 4, 2026 07:56
Base automatically changed from port-716 to workpackages November 4, 2026 09:27
f-firas and others added 2 commits November 4, 2026 10:27
The postprocessing events gain the ResourceID the consumer uses to
recognise its own storage. Events without one are accepted, so
producers that do not set it keep working.
The coordinator's consumer now does what the decomposedfs one does:

- each event runs in the trace context and with the initiator it
  carries
- StartPostprocessingStep and the antivirus PostprocessingStepFinished
  record the step in the session status, and an aborting or deleting
  verdict marks the session failed
- UploadReady names the parent of the uploaded file

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
@butonic
butonic merged commit 1168881 into workpackages Nov 4, 2026
19 checks passed
@butonic
butonic deleted the port-717 branch November 4, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type:Maintenance E.g. technical debt, packaging, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants