Skip to content

chore(ci): Skip backend system tests when updating Android modules#5455

Merged
0xadam-brown merged 2 commits into
mainfrom
chore/ci-backend-tests-path-filter
May 21, 2026
Merged

chore(ci): Skip backend system tests when updating Android modules#5455
0xadam-brown merged 2 commits into
mainfrom
chore/ci-backend-tests-path-filter

Conversation

@0xadam-brown
Copy link
Copy Markdown
Member

@0xadam-brown 0xadam-brown commented May 20, 2026

📜 Description

Android-only PRs were silently triggering 24 unrelated backend system test jobs (up to 10 min each). This update lets us skip those jobs when we don't need them.

Every push to main still runs the full matrix (in line with @runningcode's review).

Quantifying the win


Per PR savings

💡 Motivation and Context

Follow-up to #5453, which fixed the same issue for the Spring Boot matrix workflows.

addresses: JAVA-519

💚 How did you test it?

CI configuration only — no code behaviour changed. Verified glob semantics: *android*/** is anchored to the repo root and matches any top-level directory whose name contains "android".

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the 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.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

#skip-changelog

@sentry
Copy link
Copy Markdown

sentry Bot commented May 20, 2026

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.42.0 (1) release

⚙️ sentry-android Build Distribution Settings

… (JAVA-519)

Android-only PRs were silently triggering 24 unrelated backend system test jobs (~8 min each) on every push and PR. This commit adds path-ignore filters to exclude ~10 Android modules, so that backend CI tests will be skipped in the case of Android-specific changes.
@0xadam-brown 0xadam-brown force-pushed the chore/ci-backend-tests-path-filter branch from e6e3910 to e4f46ec Compare May 20, 2026 20:55
@0xadam-brown 0xadam-brown marked this pull request as ready for review May 20, 2026 21:04
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 422.90 ms 535.63 ms 112.73 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3d205d0 352.15 ms 432.53 ms 80.38 ms
27d7cf8 369.82 ms 422.62 ms 52.80 ms
33a08cc 267.08 ms 340.45 ms 73.37 ms
b750b96 408.98 ms 480.32 ms 71.34 ms
96eeafa 361.43 ms 455.07 ms 93.63 ms
22f4345 314.79 ms 375.02 ms 60.23 ms
8c1fb22 316.62 ms 352.78 ms 36.16 ms
cf708bd 434.73 ms 502.96 ms 68.22 ms
48277cd 320.38 ms 379.90 ms 59.52 ms
22f4345 307.87 ms 354.51 ms 46.64 ms

App size

Revision Plain With Sentry Diff
3d205d0 1.58 MiB 2.10 MiB 532.97 KiB
27d7cf8 1.58 MiB 2.12 MiB 549.42 KiB
33a08cc 1.58 MiB 2.12 MiB 555.28 KiB
b750b96 1.58 MiB 2.10 MiB 533.19 KiB
96eeafa 1.58 MiB 2.19 MiB 620.21 KiB
22f4345 1.58 MiB 2.29 MiB 719.83 KiB
8c1fb22 0 B 0 B 0 B
cf708bd 1.58 MiB 2.11 MiB 539.71 KiB
48277cd 0 B 0 B 0 B
22f4345 1.58 MiB 2.29 MiB 719.83 KiB

Previous results on branch: chore/ci-backend-tests-path-filter

Startup times

Revision Plain With Sentry Diff
10690c8 323.29 ms 371.34 ms 48.05 ms

App size

Revision Plain With Sentry Diff
10690c8 0 B 0 B 0 B

@0xadam-brown 0xadam-brown changed the title chore(ci): Broaden path filter on backend system tests to cover all Android modules chore(ci): Skip backend system tests when updating Android modules May 20, 2026
Copy link
Copy Markdown
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

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

Great idea

Copy link
Copy Markdown
Contributor

@runningcode runningcode left a comment

Choose a reason for hiding this comment

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

Maybe we should always run everything on the main branch and just disable it for PR builds.

Keep path filters on pull_request only so Android-only PRs skip the job,
but every merge to main still runs backend system tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
@0xadam-brown
Copy link
Copy Markdown
Member Author

Maybe we should always run everything on the main branch and just disable it for PR builds.

Good deal. Updated (cf. here).

@0xadam-brown 0xadam-brown merged commit 93590c4 into main May 21, 2026
72 checks passed
@0xadam-brown 0xadam-brown deleted the chore/ci-backend-tests-path-filter branch May 21, 2026 10:05
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.

2 participants