Skip to content

DO NOT MERGE: test(ci): iOS-only change to validate platform-check action#5875

Closed
alwx wants to merge 3 commits intomainfrom
alwx/ci/platform-check-test-ios
Closed

DO NOT MERGE: test(ci): iOS-only change to validate platform-check action#5875
alwx wants to merge 3 commits intomainfrom
alwx/ci/platform-check-test-ios

Conversation

@alwx
Copy link
Copy Markdown
Contributor

@alwx alwx commented Mar 24, 2026

Throwaway PR to validate #5873. Expected: Android skipped, iOS/macOS builds.

alwx added 3 commits March 24, 2026 11:39
The platform-check step that decides whether to skip a build based on
detect-changes outputs was duplicated across sample app workflows
(sample-application.yml, sample-application-expo.yml) and across the
build and test jobs within sample-application.yml.

Extract the logic into a composite action at
.github/actions/platform-check that takes the platform name, a
sample_changed flag, and the needs_ios/needs_android/needs_web outputs
as inputs, and returns a single skip output. The action handles the
macOS → needs_ios mapping and includes a warning for unknown platforms.

Replaces three inline bash scripts with a single reusable action.

Closes #5865
Local composite actions (uses: ./.github/actions/...) require the
repository to be checked out first. Move the actions/checkout step
before platform-check and make it unconditional so the action file
is available when GitHub Actions resolves it.
This is a throwaway PR to verify the platform-check composite action
correctly skips Android builds when only iOS native code changes.

Expected: Android matrix entries show skip=true, iOS/macOS show skip=false.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 24, 2026

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).


  • DO NOT MERGE: test(ci): iOS-only change to validate platform-check action by alwx in #5875
  • chore(deps): bump activesupport from 7.0.8.6 to 7.2.3.1 in /samples/react-native-macos by dependabot in #5870
  • chore(deps): bump activesupport from 6.1.7.10 to 7.2.3.1 in /samples/react-native by dependabot in #5869
  • chore(deps): bump yauzl to ^3.2.1 by antonis in #5855
  • chore(deps): bump appium from 2.4.1 to 3.2.2 by antonis in #5856
  • fix(ios): Guard replay postInit behind runtime session replay check by antonis in #5858
  • Add better needs_web check to CI by alwx in #5863
  • chore(deps): bump fast-xml-parser to ^5.5.7 by antonis in #5854
  • CI: detect-changes workflow to only check the affected components on the CI side by alwx in #5843
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.24.1 to 2.25.0 by dependabot in #5861
  • chore(deps): bump getsentry/craft from 2.24.1 to 2.25.0 by dependabot in #5862
  • chore(deps): bump github/codeql-action from 4.32.6 to 4.34.1 by dependabot in #5860
  • chore(deps): update JavaScript SDK to v10.45.0 by github-actions in #5848
  • chore(deps): bump flatted from 3.4.1 to 3.4.2 by dependabot in #5853
  • chore(deps): update Cocoa SDK to v9.8.0 by github-actions in #5847
  • fix(tracing): Guard getNewScreenTimeToDisplay behind enableTimeToInitialDisplay by antonis in #5849
  • chore(deps): bump json from 2.16.0 to 2.17.1.2 in /performance-tests by dependabot in #5844
  • chore(docs): Add changelog entry for duplicated breadcrumbs fix by antonis in #5851
  • fix(tracing): Unsubscribe spanEnd listeners after they fire to prevent accumulation by antonis in #5840
  • fix(android): Properly remove duplicated breadcrumbs by vovkasm in #5841
  • fix(tracing): Skip native frames and stall tracking for unsampled spans by antonis in #5842

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 24, 2026

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

### Features

- iOS-only change to validate platform-check action ([#5875](https://github.com/getsentry/sentry-react-native/pull/5875))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description or adding a skip-changelog label.

Generated by 🚫 dangerJS against 757bdd9

@alwx alwx changed the title test(ci): iOS-only change to validate platform-check action DO NOT MERGE: test(ci): iOS-only change to validate platform-check action Mar 24, 2026
@alwx alwx added the ready-to-merge Triggers the full CI test suite label Mar 24, 2026
@alwx alwx marked this pull request as ready for review March 24, 2026 12:59
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@@ -0,0 +1 @@
// platform-check test: ios-only change
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Test file included in production CocoaPods build

Medium Severity

The new RNSentryTests.m file is placed in packages/core/ios/, which is matched by the source_files glob 'ios/**/*.{h,m,mm}' in RNSentry.podspec. This means the file will be compiled into every production app that uses this SDK via CocoaPods. While the file currently only contains a comment, it still creates an unnecessary compilation unit in production builds and sets a precedent for test files living in the production source directory. This is flagged because it was mentioned in the rules file under "Debug code shipped" (diagnostics accidentally enabled in production defaults).

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

@github-actions
Copy link
Copy Markdown
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1218.04 ms 1219.78 ms 1.73 ms
Size 3.38 MiB 4.73 MiB 1.35 MiB

@github-actions
Copy link
Copy Markdown
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1212.69 ms 1214.10 ms 1.42 ms
Size 3.38 MiB 4.73 MiB 1.35 MiB

Base automatically changed from alwx/ci/platform-check-action to main March 24, 2026 18:11
@lucas-zimerman
Copy link
Copy Markdown
Collaborator

Closing since the test was completed.

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