[#2725] Moved 'require-tooling' into the ahoy entrypoint.#2735
Conversation
Walkthrough
ChangesAhoy tooling bootstrap
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2735 +/- ##
==========================================
- Coverage 86.67% 86.22% -0.45%
==========================================
Files 96 89 -7
Lines 4719 4560 -159
Branches 47 3 -44
==========================================
- Hits 4090 3932 -158
+ Misses 629 628 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
📖 Documentation preview for this pull request has been deployed to Netlify: https://6a3dd851ff00cada68a205ea--vortex-docs.netlify.app This preview is rebuilt on every commit and is not the production documentation site. |
7ea01b8 to
629bb68
Compare
|
Code coverage (threshold: 90%) Per-class coverage |
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
|
Code coverage (threshold: 90%) Per-class coverage |
Closes #2725
Seven host-side ahoy commands (
fetch-db,fetch-db2,export-db,import-db,deploy,doctor,update-vortex) each began with an inlineahoy require-toolingcall. That call, and the now-unused hiddenrequire-toolingcommand, are removed. The ahoyentrypointnow ensures thedrevops/vortex-toolingpackage is present invendor/(by running./scripts/vortex-tooling.sh) for every top-level ahoy invocation. An exported flag (AHOY_VORTEX_TOOLING_READY) causes the nestedahoycalls that a command chains internally to skip the check - this matters becauseahoy buildrunsahoy reset(which doesrm -rf ./vendor) and thenahoy up; without the flag that nestedahoy upwould trigger a redundant tooling reinstall, which also fails in the functional-test SUT where the package is not yet on Packagist. The guard lives entirely in the entrypoint, soscripts/vortex-tooling.shstays caller-agnostic (it only answers "is the tooling present?"). Net effect: the seven commands are cleaner, and every top-level command - includinginfo/login/provisionwhich previously did not ensure tooling - now does. The fixture changes are regenerated installer snapshots reflecting the updated.ahoy.yml.Before / After
Summary by CodeRabbit
.envand (when present).env.localbefore running commands.