Skip to content

test(data-fabric): stall-harden the entity-methods block - #731

Closed
Sarath1018 wants to merge 1 commit into
mainfrom
test/entity-methods-block-budget
Closed

Sarath1018 wants to merge 1 commit into
mainfrom
test/entity-methods-block-budget

Conversation

@Sarath1018

Copy link
Copy Markdown
Collaborator

Problem

The Entity-level methods (via getById) block is the recurring victim of alpha's gateway stalls: updateRecords and deleteRecords died at exactly ~30s on consecutive CI attempts. Two flow defects:

  1. Every test re-fetched the entity via entities.getById() inside its own timeout budget — each write test had to fit two round-trips (metadata read + batch write) into 30s, doubling its exposure to a single stall window, and violating the repo rule that shared lookups belong in beforeAll.
  2. The block's write tests still ran on the default 30s timeout — the earlier hardening pass (test(data-fabric): fix integration-test design flaws behind transient failures #723) sized the schema file's write paths and the folder-scoped block to 90s but missed this block.

Fix

  • One shared getById in a beforeAll (90s), stored in let entity!: EntityGetResponse — the block still exercises the getById→bound-methods path on a live response object; only the redundant re-fetches are gone.
  • 90s budgets on the four write tests (insertRecord, insertRecords, updateRecords, deleteRecords); the two read tests keep the default.
  • Assertions, ordering, and cleanup bookkeeping unchanged.

Validation

  • oxlint + tsc clean over the file; live run of the block passes 12/12 across both init modes (39s).

🤖 Generated with Claude Code

…he entity-methods block

The Entity-level methods block re-fetched the entity via getById inside
every test, so each write test's 30s budget covered two round-trips —
doubling its exposure to alpha's gateway stalls — and its write tests
were left at the default 30s when the suite's other DF write paths were
sized to 90s. Fetch the entity once in beforeAll (still exercising the
getById→bound-methods path) and give the four write tests 90s budgets;
reads keep the default.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Sarath1018
Sarath1018 requested a review from a team September 10, 2026 19:01
@claude

claude Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

@Sarath1018

Copy link
Copy Markdown
Collaborator Author

Consolidated into #726 (commit cherry-picked onto sarath/fix-lost-resume-race) so the DF and maestro stall-hardening land together.

@Sarath1018 Sarath1018 closed this Sep 10, 2026
@Sarath1018
Sarath1018 deleted the test/entity-methods-block-budget branch September 10, 2026 19:16
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