Skip to content

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

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

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

Conversation

@alwx
Copy link
Copy Markdown
Contributor

@alwx alwx commented Mar 24, 2026

Throwaway PR to validate #5873. Expected: iOS/macOS skipped, Android 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 iOS/macOS builds when only Android native code changes.

Expected: iOS and macOS matrix entries show skip=true, Android shows 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): Android-only change to validate platform-check action by alwx in #5874
  • 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

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

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 43ad75e

@alwx alwx changed the title test(ci): Android-only change to validate platform-check action DO NOT MERGE: test(ci): Android-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: android-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 in main source set breaks Android compilation

High Severity

This adds a comment-only RNSentryModule.java to the main source set, but actual RNSentryModule class definitions already exist in both src/oldarch/ and src/newarch/ source sets. Since Gradle combines main with the architecture-specific source set during compilation, this creates a duplicate source file at the same package-relative path, which will cause a compilation error. The PR title explicitly says "DO NOT MERGE" — this is test infrastructure for validating a CI action and replacing critical production code if merged.

Fix in Cursor Fix in Web

@github-actions
Copy link
Copy Markdown
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 493.33 ms 522.66 ms 29.33 ms
Size 43.75 MiB 48.08 MiB 4.32 MiB

@github-actions
Copy link
Copy Markdown
Contributor

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 414.85 ms 449.42 ms 34.57 ms
Size 43.94 MiB 48.93 MiB 5.00 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