The GitHub Actions job "Build Burr" on burr.git/fix/761-customizable-sub-app-id 
has failed.
Run started by GitHub user elijahbenizzy (triggered by elijahbenizzy).

Head commit for run:
da33daede3d0dbb9677c1fc15ae15783d0bee6d4 / Elijah Ben Izzy 
<[email protected]>
feat(parallelism): make sub-application ID an overridable hook (#761)

Previously, the sub-application id for parallel sub-apps was computed
inline inside MapActionsAndStates._create_task as a deterministic hash
of (parent_app_id, key). That hash is what enables resume-on-rebuild
for parallel sub-apps (retry-on-failure, crash recovery), but it also
means that with a cascading state initializer the sub-apps will replay
stale state on every parent invocation -- the case reported in #761.

The previous attempt (#778, closed) tried to auto-fix this by salting
sub-app ids with context.sequence_id. That broke
test_end_to_end_parallel_collatz_many_unreliable_tasks, because
sequence_id advances on parent rebuilds and the retry path could no
longer find the previously-persisted sub-app checkpoints.

This change keeps the default behavior unchanged (deterministic
(parent_app_id, key) hash, so retry-on-failure still works) and instead
exposes the id computation as a named, overridable method on
TaskBasedParallelAction. Users who hit #761 override the hook to add
whatever salt they need; everyone else is unaffected.

Adds one test exercising the new hook with a cascading initializer.

Report URL: https://github.com/apache/burr/actions/runs/25973795093

With regards,
GitHub Actions via GitBox

Reply via email to