Skip to content

chore(slack_app): drop drained workflow.patched markers in posthog-code Slack mention#61333

Merged
VojtechBartos merged 5 commits into
masterfrom
vojtab/drop-billing-gate-patch
Jun 3, 2026
Merged

chore(slack_app): drop drained workflow.patched markers in posthog-code Slack mention#61333
VojtechBartos merged 5 commits into
masterfrom
vojtab/drop-billing-gate-patch

Conversation

@VojtechBartos
Copy link
Copy Markdown
Member

@VojtechBartos VojtechBartos commented Jun 3, 2026

Problem

Cleanup of drained workflow.patched markers in the PostHog Code Slack mention workflow.

Changes

Drained markers handled in this PR (all introduced ≥5 days ago):

Patch Introduced Action
posthog-code-slack-billing-gate deprecate_patch'd 2026-06-01 (#60670) Drop the marker entirely + tidy the now-stale comment
posthog-code-block-no-personal-github-2026-05 2026-05-26 (#59890) Swap conditional gate for deprecate_patch
posthog-code-mention-skip-rules-command 2026-05-29 (#60249) Drop the dead rules-handling branch from the mention workflow (PostHogCodeSlackMentionCommandWorkflow owns it now)
posthog-code-repo-discovery-agent-2026-05 2026-05-26 (#57655) Drop the legacy pre-agent else branch, remove the select_posthog_code_repository_activity stub + PostHogCodeSlackRepoDecisionData

2026-06-02 patches (-slack-user-github-, -classify-before-gate-, -command-block-no-personal-github-, -command-user-id-) are left in place — too fresh to retire.

handle_posthog_code_rules_command_activity is no longer called by any workflow but stays registered for direct test coverage; deleting it can be a follow-up.

How did you test this code?

Manually verified by the author in Slack.

Automated tests run locally:

  • posthog/temporal/tests/ai/test_module_integrity.py — 13 passed (validates AI_ACTIVITIES matches the expected set after dropping select_posthog_code_repository_activity)
  • posthog/temporal/tests/ai/test_block_missing_user_github.py + products/slack_app/backend/tests/test_guess_repository.py — 68 passed, 1 pre-existing log-capture flake (test_cap_reached_truncates_and_warns) that also fails on master when bundled and passes in isolation; unrelated to this diff

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

🤖 Agent context

Claude Opus 4.7 (1M context) drafted the diff and commits. No other tools.

The deprecate_patch call shipped in #60670 (2026-06-01) and every
pre-deprecation workflow has long drained — the workflow lifetime
caps at ~45 minutes (10-minute activity timeouts plus a 15-minute
picker wait), so by now nothing in flight still expects the marker
in its history. The billing gate stays in place; we just stop
emitting the marker.
The comment is left over from the deprecate_patch era and now points
at code that no longer exists. The billing-gate rationale itself
still belongs here, so keep that part and trim the rest.
…6-05 patch

The patch shipped in #59890 on 2026-05-26 — every pre-patch workflow
has long since drained (workflow lifetime caps at ~45 minutes). Swap
the gating check for deprecate_patch so the gate runs unconditionally
on every new workflow while stragglers still replay deterministically.
…atch

The patch shipped in #60249 on 2026-05-29. Every pre-patch workflow
has long since drained (workflow lifetime caps at ~45 minutes), so
the rules-command branch on the mention workflow is dead code —
PostHogCodeSlackMentionCommandWorkflow owns the rules pipeline.

handle_posthog_code_rules_command_activity is no longer called by
any workflow but remains registered for in-flight stragglers and
direct test coverage; clean it up in a follow-up once we are sure
nothing else depends on it.
… patch

The patch shipped in #57655 on 2026-05-26 (cascade + discovery-agent
flow replacing the legacy single-shot select activity). Every
pre-patch workflow has long since drained (workflow lifetime caps at
~45 minutes), so swap the gate for deprecate_patch, run the cascade
path unconditionally, and drop the legacy else branch.

Also remove select_posthog_code_repository_activity — the stub that
existed solely to let mid-deploy workflows finish their replay — plus
its PostHogCodeSlackRepoDecisionData return type. Update AI_ACTIVITIES
and the module-integrity test accordingly.
@VojtechBartos VojtechBartos marked this pull request as ready for review June 3, 2026 09:31
@VojtechBartos VojtechBartos requested a review from a team June 3, 2026 09:32
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Jun 3, 2026

Reviews (1): Last reviewed commit: "chore(slack_app): deprecate posthog-code..." | Re-trigger Greptile

@VojtechBartos VojtechBartos merged commit 51f9ac6 into master Jun 3, 2026
240 checks passed
@VojtechBartos VojtechBartos deleted the vojtab/drop-billing-gate-patch branch June 3, 2026 11:15
@deployment-status-posthog
Copy link
Copy Markdown

deployment-status-posthog Bot commented Jun 3, 2026

Deploy status

Environment Status Deployed At Workflow
dev ✅ Deployed 2026-06-03 12:03 UTC Run
prod-us ✅ Deployed 2026-06-03 12:21 UTC Run
prod-eu ✅ Deployed 2026-06-03 12:22 UTC Run

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.

2 participants