Skip to content

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

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

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

Conversation

@alwx
Copy link
Copy Markdown
Contributor

@alwx alwx commented Mar 24, 2026

Throwaway PR to validate #5873. Expected: All platforms build (sample_changed=true overrides).

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
builds all platforms when only the sample app changes.

Expected: All matrix entries show skip=false (sample_changed=true overrides).
@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): Sample-only change to validate platform-check action by alwx in #5876
  • 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

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

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 e333e9c

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

lucas-zimerman commented Mar 24, 2026

Q: Shouldn't native tests for android/ios run here?
https://github.com/getsentry/sentry-react-native/actions/runs/23490698578/job/68357886132?pr=5876
and
https://github.com/getsentry/sentry-react-native/actions/runs/23490698578/job/68357886300?pr=5876
skipped.

EDIT: Sample changes wont trigger Native Test changes

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