Skip to content

docs: fix invalid config keys and missing timeouts in parallel guide - #33

Merged
shossain786 merged 1 commit into
masterfrom
docs/fix-parallel-guide-config-keys
Jul 23, 2026
Merged

shossain786 merged 1 commit into
masterfrom
docs/fix-parallel-guide-config-keys

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

Summary

  • guides/parallel.md documented a top-level parallel: {enabled, threadCount} block and browser.maxActiveSessions — neither key exists. All three (parallel, threadCount, maxActiveSessions) live under execution: per SeleniumBootConfig.Execution. ConfigurationLoader's default SnakeYAML Constructor throws on unknown top-level properties, so copy-pasting the guide's sample aborted the suite immediately.
  • Every YAML sample in the guide also omitted the required timeouts: block. ConfigurationLoader.validate() requires timeouts.explicit / timeouts.pageLoad as positive values — same defect already fixed in the README (860d4d2 / P1-6a), fixed here to match.
  • configuration.md already documented the correct structure and was used as the reference; no changes needed there.

Test plan

  • Read SeleniumBootConfig.java / ConfigurationLoader.java in this repo to confirm the real key structure (execution.parallel, execution.threadCount, execution.maxActiveSessions, timeouts.explicit, timeouts.pageLoad).
  • Reproduced the old defect against real Maven Central 3.2.0: the guide's original sample throws YAMLException: Unable to find property 'parallel' on class SeleniumBootConfig, exit 1.
  • Verified the corrected samples (both the "Configuration" section and the "Disabling parallel execution" section) load cleanly against 3.2.0 — ConfigurationLoader.load() returns exit 0 with execution.parallel / threadCount / maxActiveSessions and timeouts.explicit / pageLoad reading back as configured.
  • cd docs-site && npm run build — succeeds, no broken-link warnings.
  • Grepped the rest of docs-site/, README.md, CHANGELOG.md for the same two patterns (top-level parallel:, maxActiveSessions outside execution:) — no other current-doc instances. Two changelog entries describing the 0.3.0-era schema were left untouched as historical record.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

Two copy-paste defects in guides/parallel.md, found while drafting the P1-5
SEO article and confirmed against SeleniumBootConfig / ConfigurationLoader
in 3.2.0:

- The guide documented a top-level `parallel: {enabled, threadCount}` block
  and `browser.maxActiveSessions`. Neither exists — all three keys live
  under `execution:` (SeleniumBootConfig.Execution: parallel, threadCount,
  maxActiveSessions). ConfigurationLoader uses a default SnakeYAML
  Constructor, which throws on unknown top-level properties, so copy-pasting
  the old sample aborted the suite immediately with a YAMLException.
  configuration.md already had the correct structure; used as reference.

- Every YAML sample in the guide omitted the required `timeouts:` block.
  ConfigurationLoader.validate() requires timeouts.explicit and
  timeouts.pageLoad as positive primitives (absent = 0), so even a
  key-corrected sample still aborted with "Selenium Boot failed to
  initialize". Same defect as the one fixed in the README under P1-6a
  (860d4d2) — matched that fix's shape (complete, loadable minimal config).

Verified against real Maven Central 3.2.0 + ConfigurationLoader:
- Old documented sample: YAMLException, "Unable to find property 'parallel'
  on class SeleniumBootConfig", exit 1.
- Corrected sample (both the "Configuration" and "Disabling parallel
  execution" snippets): loads cleanly, exit 0, execution.parallel/
  threadCount/maxActiveSessions and timeouts.explicit/pageLoad all read
  back as configured.

Grepped the rest of docs-site/ and README/CHANGELOG for the same two
patterns (top-level `parallel:`, `maxActiveSessions` outside `execution:`,
YAML samples with no `timeouts:`) — no other current-doc instances found.
Two historical changelog entries (CHANGELOG.md, docs-site/docs/changelog.md)
describe the 0.3.0-era schema and were left untouched as historical record.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shossain786
shossain786 merged commit 25aba5c into master Jul 23, 2026
2 checks passed
@shossain786
shossain786 deleted the docs/fix-parallel-guide-config-keys branch July 23, 2026 04:35
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