Skip to content

Phase 2: dependency hygiene + Node-12 install fixes + dev-mount harness paths - #150

Closed
xywang68 wants to merge 4 commits into
xyteam:masterfrom
xywang68:phase-2-dep-hygiene
Closed

Phase 2: dependency hygiene + Node-12 install fixes + dev-mount harness paths#150
xywang68 wants to merge 4 commits into
xyteam:masterfrom
xywang68:phase-2-dep-hygiene

Conversation

@xywang68

@xywang68 xywang68 commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Phase 2 — dependency hygiene on the current runtime (wdio 7 / Node 12)

Per the consolidated upgrade plan (docs/upgrade-plan.md, Phases 1–8), Phase 2 removes dead/unused dependencies and normalizes version pins without changing the wdio/Node major.

Changes

  • Deps removed (dead / Node-core shims / unused devDeps): @hapi/hapi, hoek, cryptiles, deep-extend, json-diff, minimist-options, moment, url-parse, words-to-numbers, inquirer (as direct dep); assert, child_process, path (Node-core shims); @rpii/wdio-html-reporter, @wdio/allure-reporter, @wdio/dot-reporter, @wdio/jasmine-framework, allure-commandline, chromedriver, wdio-chromedriver-service, devtools.
  • Normalized unbounded >= ranges → caret for retained deps.
  • Deleted orphaned framework/scripts/old-findTargetImage.js (unreferenced 2021 duplicate). Kept abdd_local.js (live LOCALSELPORT config branch).
  • Node-12 install fix: pin inquirer@8.2.6 as a direct dep. Without a committed lockfile, the container's npm6 resolved @wdio/cli's inquirer ^8 to 8.2.7, whose Node-18 @inquirer/external-editor (?? syntax) crashed npx wdio at startup (Unexpected token '?'). 8.2.6 uses Node-12-safe external-editor@^3. Dropped the npm8-only overrides block.
  • Dev-mount harness fixes (monorepo leftovers): test-projects/autobdd-test/docker-compose.yml AUTOBDD_SRC default ../AutoBDD (sibling layout) → ../.. (repo root); dev/bootstrap-dev.sh resolves AutoBDD root three levels up.
  • .gitignore the vendored xysikulixapi node-gyp build/ output.

Gate (dev-mount, Node 12, image xyteam/autobdd:3.0.0)

  • npm install clean on the trimmed set.
  • make e2e-test (with clean): single-runner + parallel-runner (15 scenarios) + auto-runner (5 features) all green; all 3 HTML reports generated.
  • jest: 3 passed; pytest: 6 passed + 1 xfail.

Notes

  • auto-runner must run on a clean result tree (clean precedes it in test-all/make autobdd-test); stale .run/db.subjson from an aborted prior run make it report Expected total: 0.
  • cypress/k6 aux suites not run here (heavy; independent of root deps).

Closes Phase 2 of the plan. Next: Phase 3 (sync→async, still on the 3.0.0 image).

Drop unused direct deps (@hapi/hapi, hoek, cryptiles, deep-extend, json-diff,
minimist-options, moment, url-parse, words-to-numbers, inquirer), Node-core shim
deps (assert, child_process, path), and unused devDeps (@rpii/wdio-html-reporter,
@wdio/allure-reporter, @wdio/dot-reporter, @wdio/jasmine-framework,
allure-commandline, chromedriver, wdio-chromedriver-service, devtools). Normalize
unbounded >= version ranges to caret. Delete orphaned old-findTargetImage.js.
Keep wdio7/@wdio/sync + reporter stack intact (removed in later phases).
…onorepo

Without a committed lockfile, npm6 (container Node 12) resolved @wdio/cli's
inquirer ^8 to 8.2.7, whose @inquirer/external-editor@1.x requires Node >=18
(\?\? syntax) and crashed 'npx wdio' at startup with 'Unexpected token ?'.
Pin inquirer 8.2.6 as a direct dep (uses Node-12-safe external-editor@^3) and
drop the npm8-only overrides block (ignored by the container's npm6).

Also fix two post-consolidation leftovers that broke running the gate from the
monorepo root: docker-compose AUTOBDD_SRC default ../AutoBDD (sibling layout)
now points to ../.. (repo root), and dev/bootstrap-dev.sh resolves AutoBDD root
three levels up instead of the old sibling ../../AutoBDD.
@xywang68 xywang68 closed this Sep 6, 2026
@xywang68
xywang68 deleted the phase-2-dep-hygiene branch September 6, 2026 21:16
@xywang68
xywang68 restored the phase-2-dep-hygiene branch September 6, 2026 21:20
@xywang68
xywang68 deleted the phase-2-dep-hygiene branch September 7, 2026 04:45
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