Skip to content

T-21948 [CI] Expect the first sync to subscribe the static, spans and CloudTrail groups - #7

Merged
PetrHeinz merged 1 commit into
mainfrom
claude/e2e-sync-subscribes-defaults
Oct 20, 2026
Merged

PetrHeinz merged 1 commit into
mainfrom
claude/e2e-sync-subscribes-defaults

Conversation

@PetrHeinz

@PetrHeinz PetrHeinz commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

The E2E froze a Better Stack behaviour that is now fixed: a log group deleted and recreated under the same name used to stay unsubscribed for good, and the sandbox's account record kept that history between runs, so the workflow expected the static group, aws/spans and /aws/cloudtrail/better-stack to stay unsubscribed after the first sync and subscribed them through the API. Better Stack now subscribes a recreated group again, removes the subscription filters of a deleted source, and forgets an account record that no source has used for 8 hours. With that deployed, the frozen step fails on the first run that starts from a clean record.

The workflow now expects the sync the connect enqueues to subscribe all four groups by itself: the run's and the static group through auto-subscribe, aws/spans and the CloudTrail group by default. That holds whether the sandbox's account record was removed since the previous run or is reused with its history, since a reused record keeps the rows' intents and the teardown of the previous run's source only touched their statuses. The wait for aws/spans to exist moves ahead of the connect, so the first sync already finds it; the next sync would be 15 minutes later, past the step's deadline. The detour through POST /api/v2/sources/:id/aws-log-group-subscriptions goes with the frozen step, and the job summary describes the new expectation.

The first dispatch run after the deploy (39404908357) shows the change: the sync subscribed the recreated static group right away, the frozen step failed on the first group it checked, and everything after it was skipped.

🤖 Generated with Claude Code

… CloudTrail groups

The frozen step that expected the recreated static group, aws/spans and the CloudTrail group to stay unsubscribed, and subscribed them through the API, goes away: Better Stack subscribes a recreated group again and starts each daily run from a clean account record. The wait for aws/spans moves ahead of the connect so the first sync already finds it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@PetrHeinz
PetrHeinz marked this pull request as ready for review October 20, 2026 10:35
@PetrHeinz
PetrHeinz merged commit 1ffb68a into main Oct 20, 2026
6 checks passed
@PetrHeinz
PetrHeinz deleted the claude/e2e-sync-subscribes-defaults branch October 20, 2026 10:35
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.

1 participant