Skip to content

test(ios): Speed up sentry-xcode-scripts tests - #6633

Open
antonis wants to merge 1 commit into
mainfrom
test/speed-up-xcode-scripts-tests
Open

test(ios): Speed up sentry-xcode-scripts tests#6633
antonis wants to merge 1 commit into
mainfrom
test/speed-up-xcode-scripts-tests

Conversation

@antonis

@antonis antonis commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Four upload-behavior tests in the sentry-xcode-debug-files.sh block of sentry-xcode-scripts.test.ts never create a dSYM bundle and did not disable the dSYM wait. As a result each one fell into wait_for_dsym_files() and waited out the full default timeout (10 attempts with progressive backoff ≈ 10s) for a dSYM that is never produced. The tests passed anyway — the script proceeds after the timeout — so the cost was invisible, just slow.

Since these tests assert only on upload success/error output, this sets SENTRY_DSYM_WAIT_ENABLED=false on those four tests. The dedicated dSYM wait functionality block still exercises the wait behavior and is unchanged.

No change in coverage.

💡 Motivation and Context

test/scripts/sentry-xcode-scripts.test.ts took ~59s while every other test file finishes in seconds. The four affected tests accounted for ~44s of that (~11s each), all spent sleeping in the dSYM wait loop rather than testing anything.

Verified at the script level: invoking sentry-xcode-debug-files.sh with the exact env these tests use runs for 10.835s with the wait enabled vs 0.048s with SENTRY_DSYM_WAIT_ENABLED=false.

💚 How did you test it?

Ran the file before and after:

  • Before: Time: 59.148 s, 40 passed
  • After: Time: 14.74 s, 40 passed

The remaining time is legitimate — the dedicated wait tests intentionally sleep 1–2s and assert on real timing.

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

🤖 Generated with Claude Code

Four upload-behavior tests in the sentry-xcode-debug-files.sh block never
create a dSYM bundle and did not disable the dSYM wait, so each fell into
wait_for_dsym_files() and waited out the full ~10s default timeout. They
assert only on upload output, so disable the wait with
SENTRY_DSYM_WAIT_ENABLED=false. The dedicated 'dSYM wait functionality'
block still covers the wait behavior.

Cuts the file from ~59s to ~15s with no change in coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • test(ios): Speed up sentry-xcode-scripts tests by antonis in #6633
  • chore(deps): update CLI to v3.7.0 by github-actions in #6632
  • feat(tracing): Copy app start vitals onto standalone children by buenaflor in #6631
  • chore(deps): update Cocoa SDK to v9.26.1 by github-actions in #6623
  • fix(ios): Force-load the Sentry static archive to keep ObjC category methods by antonis in #6615
  • feat(core): Forward feature flag evaluations to the native SDKs by antonis in #6613
  • chore(deps): update Android SDK to v8.54.0 by github-actions in #6624
  • chore(deps): update Sentry Android Gradle Plugin to v6.20.0 by github-actions in #6627

🤖 This preview updates automatically when you update the PR.

@antonis antonis added the ready-to-merge Triggers the full CI test suite label Aug 28, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 7571b73. Configure here.

@antonis
antonis marked this pull request as ready for review August 28, 2026 13:06
@sentry

sentry Bot commented Aug 28, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.24.0 (104) Release

⚙️ sentry-react-native Build Distribution Settings

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

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant