Skip to content

LTS-3294: make browserstack-load.yml runnable via browserstack-cli load run#16

Closed
amitsi-bs wants to merge 2 commits into
mainfrom
sec/LTS-3294-load-config-runnable
Closed

LTS-3294: make browserstack-load.yml runnable via browserstack-cli load run#16
amitsi-bs wants to merge 2 commits into
mainfrom
sec/LTS-3294-load-config-runnable

Conversation

@amitsi-bs

Copy link
Copy Markdown
Contributor

What

The shipped browserstack-load.yml (fully-commented template) is rejected by npx browserstack-cli load run with "Validation error", and was also missing the required duration — so the sample could not run a load test out of the box.

Replaced it with a clean, minimal config the CLI accepts:

  • required duration: 1m
  • active language: nodejs (was fine here; the wdio sample had it commented)
  • repo-relative file paths (no ./ prefix)
  • headless: false

Credentials still come from BROWSERSTACK_USERNAME / BROWSERSTACK_ACCESS_KEY env vars.

Validation

This exact config structure ran green on the prod BLU pod multiple times today (e.g. Test 71b1f165 / ffd17daa — Playwright 2/2 tests passed, metrics + report generated). Follow-up to the LTS-3294 .npmrc hardening, which is already merged.

🤖 Generated with Claude Code

…oad run`

The shipped browserstack-load.yml (the fully-commented template) is rejected by
`browserstack-cli load run` with "Validation error" and was also missing the
required `duration`, so the sample could not run a load test out of the box.

Replace it with a clean, minimal config the CLI accepts: required `duration`,
active `language`, repo-relative file paths (no `./`), and `headless`. Credentials
still come from the BROWSERSTACK_USERNAME / BROWSERSTACK_ACCESS_KEY env vars.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amitsi-bs amitsi-bs requested a review from a team as a code owner July 7, 2026 10:29
@amitsi-bs amitsi-bs requested a review from anupam-s-20 July 7, 2026 10:29
Preserve the full explanatory browserstack-load.yml template (comments intact)
and add only `headless: false`, which the runnable config needs. Reverts the
earlier over-aggressive comment stripping.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@amitsi-bs amitsi-bs requested a review from dheeren-gaud July 7, 2026 10:35
@amitsi-bs

Copy link
Copy Markdown
Contributor Author

Closing — not needed. pw's merged browserstack-load.yml already has all required fields (testType, language, vus, duration, regions, files); headless is an optional field (verified it's not in the CLI's required set), so no fix is required here. The earlier 'Validation error' was an account/env condition, not the config. (wdio #16 stays open — its language was commented out, which is a genuine required-field fix.)

@amitsi-bs amitsi-bs closed this Jul 7, 2026
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.

1 participant