Skip to content

fix(ci): Avoid unnecessary runner allocation by splitting platform matrix into separate jobs#5924

Merged
alwx merged 2 commits intomainfrom
alwx/ci/split-jobs
Mar 31, 2026
Merged

fix(ci): Avoid unnecessary runner allocation by splitting platform matrix into separate jobs#5924
alwx merged 2 commits intomainfrom
alwx/ci/split-jobs

Conversation

@alwx
Copy link
Copy Markdown
Contributor

@alwx alwx commented Mar 30, 2026

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Fixes #5864

Updates runners in sample-application.yaml and sample-application-expo.yaml to not allocate any runners when the job is skipped. It also eliminates any need in platform-check — skip logic now moved to job-level if. The main benefit is cost savings — when a platform is skipped (e.g., a PR only touches Android native code), the iOS and web jobs won't allocate runners at all. The functional behavior is identical to how it was before.

📝 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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 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).


  • fix(ci): Avoid unnecessary runner allocation by splitting platform matrix into separate jobs by alwx in #5924
  • chore(deps): update CLI to v3.3.5 by github-actions in #5925
  • chore: Replace prettier with oxfmt by antonis in #5880
  • chore(deps): bump brace-expansion to ^5.0.5 by antonis in #5920
  • chore(deps): bump path-to-regexp to ^8.4.0 by antonis in #5919
  • chore: Migrate from ESLint to oxlint by antonis in #5867
  • chore(deps): bump yaml to ^2.8.3 by antonis in #5921
  • chore(deps): bump activesupport to >= 7.2.3.1 by antonis in #5922
  • fix(ci): Update validate-pr action to remove draft enforcement by stephanie-anderson in #5923
  • chore(deps): bump actions/checkout from 4 to 6 by dependabot in #5916
  • chore(deps): bump getsentry/craft from 2.25.0 to 2.25.2 by dependabot in #5918
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.0 to 2.25.2 by dependabot in #5914
  • chore(deps): bump github/codeql-action from 4.34.1 to 4.35.1 by dependabot in #5917
  • chore(deps): bump dorny/paths-filter from 3.0.2 to 4.0.1 by dependabot in #5915
  • fix: Prevent script injection vulnerability in platform-check action by fix-it-felix-sentry in #5913
  • chore(ios): Upgrade clang-format from v20 to v22 by antonis in #5905
  • chore: Add PR validation workflow by stephanie-anderson in #5906
  • chore(deps): bump brace-expansion from 1.1.12 to 1.1.13 by dependabot in #5909
  • chore(deps): bump picomatch to fix ReDoS and method injection by antonis in #5900
  • chore(deps): update Android SDK to v8.37.1 by github-actions in #5884
  • fix(build): Update expo-handler sentry-android version in update script by antonis in #5904
  • fix(ios): synchronize RNSentryTimeToDisplay across main and bridge th… by huextrat in #5887
  • chore(deps): bump node-forge from 1.3.2 to 1.4.0 by dependabot in #5903
  • chore(deps): update Sentry Android Gradle Plugin to v6.3.0 by github-actions in #5902

Plus 1 more


🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request
🚫 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

### Fixes

- Avoid unnecessary runner allocation by splitting platform matrix into separate jobs ([#5924](https://github.com/getsentry/sentry-react-native/pull/5924))

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 99c5729

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 prepared a fix for the issue found in the latest run.

  • ✅ Fixed: macOS build logs upload path points to wrong directory
    • Updated the macOS upload-artifact path to samples/react-native-macos/macos/*.log so xcodebuild.log from the build directory is uploaded.

Create PR

Or push these changes by commenting:

@cursor push 0a35387757
Preview (0a35387757)
diff --git a/.github/workflows/sample-application.yml b/.github/workflows/sample-application.yml
--- a/.github/workflows/sample-application.yml
+++ b/.github/workflows/sample-application.yml
@@ -305,7 +305,7 @@
         uses: actions/upload-artifact@v7
         with:
           name: build-sample-legacy-macos-${{ matrix.build-type }}-no-frameworks-logs
-          path: ${{ env.REACT_NATIVE_SAMPLE_PATH }}/macos/*.log
+          path: samples/react-native-macos/macos/*.log
 
   test-ios:
     name: Test ios production REV2

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

Thank you for your work on this @alwx 🙇
Overall the changes LGTM. I've only left a few suggestions for optimisations

@alwx alwx requested a review from antonis March 31, 2026 08:00
Copy link
Copy Markdown
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@alwx alwx merged commit 849d593 into main Mar 31, 2026
49 of 54 checks passed
@alwx alwx deleted the alwx/ci/split-jobs branch March 31, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Avoid unnecessary runner allocation by splitting platform matrix into separate jobs

2 participants