Skip to content

fix(data-access): replace hard-coded IT hook timeout with shared constant#1579

Merged
ravverma merged 1 commit intomainfrom
fix/it-timeout-constant
May 4, 2026
Merged

fix(data-access): replace hard-coded IT hook timeout with shared constant#1579
ravverma merged 1 commit intomainfrom
fix/it-timeout-constant

Conversation

@ravverma
Copy link
Copy Markdown
Contributor

@ravverma ravverma commented May 4, 2026

Session Summary

PR #1573feat(data-access): add readAll capability to Consumer.CAPABILITIES

Review comments addressed (pushed to branch, now merged):

  1. Added JSDoc on Consumer.CAPABILITIES explaining readAll is a scope+verb hybrid, only meaningful on opted-in routes
  2. Renamed test: "accepts the readAll action for any registered entity""accepts site:readAll and organization:readAll capabilities"
  3. Strengthened test assertion: added expect(mockElectroService.entities.consumer.create).to.have.been.calledOnce

CI failures investigated

Failure Root cause Verdict
mysticat-data-service:v1.67.8 not found Image removed from ECR Infrastructure issue
TrialUser/TrialUserActivity IT timeout 10s hook timeout too tight for v5.x image startup Code fix needed
HTML Utils warmup delay: expected 749 to be ≥ 750 Wall-clock timing flake in tokowaka-client Pre-existing flake, unrelated

New PR branch — fix/it-timeout-constant (from main)

  • Bumped default docker image tag to v5.1.1 in docker-compose.yml
  • Introduced IT_HOOK_TIMEOUT = 30000 constant in test/it/util/util.js
  • Updated all 37 IT test files to import and use the constant instead of the hard-coded 10000

…tant

Introduces IT_HOOK_TIMEOUT (30 s) in test/it/util/util.js and references
it from all 37 IT test files instead of repeating the magic number. The
v5.x mysticat-data-service image runs more migrations on startup, causing
seedDatabase() to exceed the previous 10 s ceiling on cold CI runs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ravverma ravverma merged commit 4fbc6e0 into main May 4, 2026
5 checks passed
@ravverma ravverma deleted the fix/it-timeout-constant branch May 4, 2026 15:38
solaris007 pushed a commit that referenced this pull request May 4, 2026
## [@adobe/spacecat-shared-data-access-v3.56.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v3.56.0...@adobe/spacecat-shared-data-access-v3.56.1) (2026-05-04)

### Bug Fixes

* **data-access:** replace hard-coded IT hook timeout with shared constant ([#1579](#1579)) ([4fbc6e0](4fbc6e0)), closes [#1573](#1573)
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-data-access-v3.56.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants