Skip to content

fix(tasks): gate dropped slack post behind temporal patch#60956

Merged
tatoalo merged 2 commits into
masterfrom
fix/tasks-slack-post-nondeterminism
Jun 1, 2026
Merged

fix(tasks): gate dropped slack post behind temporal patch#60956
tatoalo merged 2 commits into
masterfrom
fix/tasks-slack-post-nondeterminism

Conversation

@tatoalo
Copy link
Copy Markdown
Contributor

@tatoalo tatoalo commented Jun 1, 2026

Problem

Production is throwing [TMPRL1100] Nondeterminism error: Activity type of scheduled event 'post_slack_update' does not match activity type of activity command 'emit_progress_activity'

#60923 ("drop duplicate slack progress post after sandbox provisioning") removed an await self._post_slack_update() call that sat between sandbox provisioning and the agent-start progress emit. Removing an activity call from a workflow is a backwards-incompatible change

#60923 removed the redundant `post_slack_update` activity that ran right
after sandbox provisioning. Doing so unconditionally broke replay of
in-flight ProcessTaskWorkflow executions: their histories scheduled
`post_slack_update` at that point, while the new code scheduled
`emit_progress_activity` next, surfacing TMPRL1100 nondeterminism errors
in production.

Restore the call behind `workflow.patched(...)` so post-rollout executions
skip it (keeping #60923's intent) while replays of pre-rollout histories
still schedule it. Follows the two-step patch lifecycle already documented
in this workflow.
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 1, 2026

Reviews (1): Last reviewed commit: "fix(tasks): gate dropped slack post behi..." | Re-trigger Greptile

@tatoalo tatoalo enabled auto-merge (squash) June 1, 2026 16:02
@tatoalo tatoalo added the stamphog Request AI review from stamphog label Jun 1, 2026
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct Temporal patch pattern to gate a removed Slack post call for backward-compatible replay of in-flight workflows. Parametrized tests cover both branches, and a teammate has approved on the current head.

@tests-posthog
Copy link
Copy Markdown
Contributor

tests-posthog Bot commented Jun 1, 2026

⏭️ Skipped snapshot commit because branch advanced to 06cca94 while workflow was testing 95f5d0e.

The new commit will trigger its own snapshot update workflow.

If you expected this workflow to succeed: This can happen due to concurrent commits. To get a fresh workflow run, either:

  • Merge master into your branch, or
  • Push an empty commit: git commit --allow-empty -m 'trigger CI' && git push

@tatoalo tatoalo merged commit b6e809d into master Jun 1, 2026
261 checks passed
@tatoalo tatoalo deleted the fix/tasks-slack-post-nondeterminism branch June 1, 2026 16:38
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented Jun 1, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-06-01 17:01 UTC Run
prod-us ✅ Deployed 2026-06-01 17:17 UTC Run
prod-eu ✅ Deployed 2026-06-01 17:20 UTC Run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stamphog Request AI review from stamphog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants