Skip to content

Conversation

@FrederikBolding
Copy link
Member

@FrederikBolding FrederikBolding commented Dec 8, 2025

Bump default ping timeout to 10 seconds to improve stability on systems where initializing the Snaps Platform may take a bit of time.


Note

Increase default ping timeout to 10s and update tests to explicitly set a shorter timeout for ping failure behavior.

  • Controllers
    • AbstractExecutionService: Bump default pingTimeout from 2s to 10s in constructor.
  • Tests
    • AbstractExecutionService.test.ts: Configure createService with pingTimeout: 1s for the ping timeout failure test.

Written by Cursor Bugbot for commit f2f1975. This will update automatically on new commits. Configure here.

@FrederikBolding FrederikBolding requested a review from a team as a code owner December 8, 2025 10:11
it('throws an error if execution environment fails to respond to ping', async () => {
const { service } = createService(MockExecutionService);
const { service } = createService(MockExecutionService, {
pingTimeout: inMilliseconds(1, Duration.Second),
Copy link
Member Author

@FrederikBolding FrederikBolding Dec 8, 2025

Choose a reason for hiding this comment

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

This test would run longer and exceed the Jest timeout without this

@FrederikBolding FrederikBolding added this pull request to the merge queue Dec 8, 2025
@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.28%. Comparing base (8389c5b) to head (f2f1975).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3773   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files         420      420           
  Lines       12211    12211           
  Branches     1889     1889           
=======================================
  Hits        12002    12002           
  Misses        209      209           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Merged via the queue into main with commit 28fd137 Dec 8, 2025
122 checks passed
@FrederikBolding FrederikBolding deleted the fb/bump-default-ping-timeout branch December 8, 2025 10:22
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.

4 participants