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

  1. Check that this PR skips the BS jobs (since it only touches CI config and scripts)
  2. Verify a PR touching packages/ triggers the BS jobs normally

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

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 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.00%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a7e4852 | 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

Pending...

🧠 Memory Performance

Pending...

🔗 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".

Add scripts/test/**/* to the changes list so that modifications to
BrowserStack runner scripts (like ci-bs.sh) trigger the BS jobs.
@thomas-lebeau thomas-lebeau marked this pull request as draft February 2, 2026 14:59
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