Skip to content

Conversation

@thomas-lebeau
Copy link
Collaborator

@thomas-lebeau thomas-lebeau commented Jan 30, 2026

Motivation

The unit-bs and e2e-bs jobs use BrowserStack resources which are limited to 5 seats. These jobs are slow and consume resources even when PRs don't touch code that affects browser behavior (e.g., CI config changes, script updates, documentation).

Changes

  • Convert ci-bs.sh to TypeScript (ci-bs.ts) for consistency with other scripts
  • The script checks if any changed files match patterns that affect browser behavior:
    • packages/** (SDK source code)
    • test/** (test files and infrastructure)
    • developer-extension/** (devtools extension)
    • scripts/test/** (test scripts)
    • package.json, yarn.lock (dependencies)
    • tsconfig*, webpack.base.ts (build config)

If no relevant files changed, the script exits early without running BrowserStack tests.

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@thomas-lebeau thomas-lebeau requested a review from a team as a code owner January 30, 2026 10:08
@datadog-official
Copy link

datadog-official bot commented Jan 30, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage
Patch Coverage: 100.00%
Overall Coverage: 77.25% (+0.01%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: cd12a4a | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@cit-pr-commenter-54b7da
Copy link

cit-pr-commenter-54b7da bot commented Jan 30, 2026

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 167.98 KiB 167.98 KiB 0 B 0.00%
Rum Profiler 4.32 KiB 4.32 KiB 0 B 0.00%
Rum Recorder 24.54 KiB 24.54 KiB 0 B 0.00%
Logs 56.25 KiB 56.25 KiB 0 B 0.00%
Flagging 944 B 944 B 0 B 0.00%
Rum Slim 124.88 KiB 124.88 KiB 0 B 0.00%
Worker 23.63 KiB 23.63 KiB 0 B 0.00%
🚀 CPU Performance
Action Name Base CPU Time (ms) Local CPU Time (ms) 𝚫%
RUM - add global context 0.004 0.0051 +27.50%
RUM - add action 0.0144 0.0142 -1.39%
RUM - add error 0.0135 0.0129 -4.44%
RUM - add timing 0.0026 0.0027 +3.85%
RUM - start view 0.003 0.0032 +6.67%
RUM - start/stop session replay recording 0.0007 0.0007 0.00%
Logs - log message 0.0143 0.0144 +0.70%
🧠 Memory Performance
Action Name Base Memory Consumption Local Memory Consumption 𝚫
RUM - add global context 28.27 KiB 28.01 KiB -261 B
RUM - add action 100.82 KiB 50.67 KiB -50.15 KiB
RUM - add timing 28.17 KiB 26.14 KiB -2.04 KiB
RUM - add error 94.65 KiB 55.72 KiB -38.93 KiB
RUM - start/stop session replay recording 26.03 KiB 27.13 KiB +1.11 KiB
RUM - start view 436.27 KiB 429.29 KiB -6.98 KiB
Logs - log message 46.77 KiB 45.96 KiB -826 B

🔗 RealWorld

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 531d8a8953

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomas-lebeau thomas-lebeau marked this pull request as draft February 2, 2026 14:59
Skip unit-bs and e2e-bs jobs when changes only affect files that don't
impact browser behavior (CI config, scripts, docs, etc.).

This saves BrowserStack resources (limited to 5 seats) and reduces
pipeline duration for PRs that only touch infrastructure files.

Jobs will still run when changes affect:
- packages/**/* (SDK source code)
- test/**/* (test files)
- developer-extension/**/* (devtools extension)
- package.json, yarn.lock (dependencies)
- tsconfig*.json, webpack.base.ts (build config)
@thomas-lebeau thomas-lebeau force-pushed the thomas.lebeau/skip-bs-tests-for-non-code-changes branch from 5f9e4e3 to cd12a4a Compare February 3, 2026 13:58
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