Skip to content

Conversation

@antonis
Copy link
Contributor

@antonis antonis commented Dec 19, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Fix captureReplay test on iOS Hermes

💡 Motivation and Context

💚 How did you test it?

📝 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
  • No breaking changes

🔮 Next steps

#skip-changelog

The sed command was failing with 'illegal byte sequence' on macOS when trying to redact sensitive data from all files in maestro-logs, including binary files (like replay videos).

Changes:
- Add LC_ALL=C environment variable for macOS to handle any byte sequence
- Limit sed processing to text files only (.log, .txt, .yml, .yaml, .json)
- Add error suppression (2>/dev/null || true) to prevent script failures

This fix will allow us to see the actual test failure logs instead of the redaction script masking the real errors.
@antonis antonis added the ready-to-merge Triggers the full CI test suite label Dec 19, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 408.00 ms 428.98 ms 20.98 ms
Size 43.75 MiB 48.08 MiB 4.33 MiB

Baseline results on branch: antonis/v7-detox-to-maestro-migration

Startup times

Revision Plain With Sentry Diff
16753e9+dirty 401.16 ms 433.20 ms 32.04 ms

App size

Revision Plain With Sentry Diff
16753e9+dirty 43.75 MiB 48.08 MiB 4.32 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 461.51 ms 524.82 ms 63.31 ms
Size 43.94 MiB 48.91 MiB 4.97 MiB

Baseline results on branch: antonis/v7-detox-to-maestro-migration

Startup times

Revision Plain With Sentry Diff
16753e9+dirty 459.78 ms 503.98 ms 44.20 ms

App size

Revision Plain With Sentry Diff
16753e9+dirty 43.94 MiB 48.90 MiB 4.96 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1211.41 ms 1254.58 ms 43.16 ms
Size 3.44 MiB 4.59 MiB 1.15 MiB

Baseline results on branch: antonis/v7-detox-to-maestro-migration

Startup times

Revision Plain With Sentry Diff
16753e9+dirty 1200.13 ms 1202.62 ms 2.49 ms

App size

Revision Plain With Sentry Diff
16753e9+dirty 3.44 MiB 4.67 MiB 1.23 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Dec 19, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1224.23 ms 1223.69 ms -0.55 ms
Size 3.44 MiB 4.59 MiB 1.15 MiB

Baseline results on branch: antonis/v7-detox-to-maestro-migration

Startup times

Revision Plain With Sentry Diff
16753e9+dirty 1214.38 ms 1222.09 ms 7.71 ms

App size

Revision Plain With Sentry Diff
16753e9+dirty 3.44 MiB 4.67 MiB 1.23 MiB

The test was failing because:
1. It was using the deprecated _experiments.replaysOnErrorSampleRate option
2. The sentryApi.js script didn't handle missing replay_id gracefully

Changes:
- Updated E2E test to use replaysOnErrorSampleRate directly (non-deprecated)
- Added null check and better error message in sentryApi.js for missing replay_id

Fixes the captureReplay test failure on:
- Test RN 0.83.0 new hermes ios production no
- Test RN 0.83.0 legacy hermes ios production no
@antonis antonis changed the title fix(e2e): Fix sed illegal byte sequence error in log redaction fix(e2e): Fix captureReplay test on iOS Hermes Dec 19, 2025
@antonis antonis closed this Dec 19, 2025
@antonis antonis deleted the antonis/fix-hermes-e2e-captureReplay branch December 19, 2025 14:49
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.

2 participants