refactor(ops): remove legacy monitoring collector environment aliases - #29947
Merged
Conversation
Co-Authored-By: Okou <okou@vm0.ai>
11 tasks
Contributor
|
API preview: https://pr-29947-api.vm6.ai |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
|
LGTM PR_AUTO_REVIEW_COMMIT: efb4fca SummaryThis focused cleanup removes the three retired monitoring path readers, all legacy/dual/conflict resolution, and migration-only diagnostics while retaining the existing fixed defaults for unset or empty canonical values. The two real collector entry-point suites now use Review Criteria
FindingsCritical (P0)
High Priority (P1)
Testing
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VM0_WORKSPACE_IMAGE_CACHE_DIR,VM0_MONITORING_TEXTFILE_DIR, andVM0_RUNNERS_DIRfrom the two monitoring collectorsOKOU_*paths while preserving the exact fixed defaults for unset and empty canonical valuesCloses #29945
Predecessor: #29064 / #29067
Parent EPIC: #28914
Implementation baseline
origin/mainimmediately before the exact-key and open-PR inventory, then branched from clean currentmain@5c46336786140483bda4208015e478fece4a6fecefb4fca401393ff0a6e50500a576ac32e423c91corigin/main@aad55f424b8a4b72c2b06e25335e06de53e10c7a; the only intervening commit was refactor(db): canonicalize built-in provider writes #29938, whose 54 changed files have no overlap or functional dependency with this change5c46336786140483bda4208015e478fece4a6fec; no speculative main update was performed solely for orderingThe pre-edit exact-key inventory found production readers only in:
ansible/files/vm0-monitoring-collect.shansible/files/vm0-runner-status-collect.pyAll other occurrences were in their two focused entry-point tests. After this change, neither production collector contains any retired key or migration source/conflict diagnostic; every remaining retired spelling is inside a bounded negative assertion in one of those tests.
Fully paginated open-PR audit
The mandatory pre-edit audit covered all 26 open PRs and 474/474 declared/fetched changed files, with zero pagination mismatch and zero overlap against the four scoped files plus
ansible/playbooks/provision-monitoring.ymland.github/actions/provision/action.yml.The immediately pre-push refresh covered all 25 then-open PRs and 420/420 declared/fetched files, again with zero mismatch and zero overlap. Every changed-file page was fetched with
per_page=100; each fetched total was checked against GitHub'schanged_filescount.2aed1f0de2a54db881ca266151c1362ea6c9dd62ea90ade7071d0b712cc3264b781bca14c5a066b1431d74acf5364b5c3f27812af9b73e646eaf9157e6c5f00572fbd1f6c70a35be1e231a8e4a4fd69d1724554da2d5eb3b3a19eab50dd8b6eea7a66e21ccb634ac6344b59be2cb19dce31c17f19427c3f51b8ced20fa060e9b5ba0327dc8d50b5c21e6a3145097513d3241d6125abc14f6a7391cf8e95dbcb2c177613f8004bd66039e90ec82395e871acc2bc72f5dd568c6522bdffee4819b7e708906419fc3c735f50a81405220c726494075214b0db1a2abec66d93f0fe028d0f0c96c0a5337a47054eb1f04490b3a63d7329cb751dbe32941ef42168941c6b7476a036894436fc3157e8c23b8c8efccb8800514f5ea3068fb80ba75be6a8d4cf44870ca63c3ae6dcdcf9b839d4678c6e2f641c7a90209313fdcf22e5c59c3c505ab5efc894e2093dd59730d6c1dc0ec0de57ed31f2a66197f148e723fd989bdb8790120235635005696ea376a5b7b79c9f217d0474f982629569aac2f3ad773fd11708235f06c5c3123d281f7fdccd4cabddccd3170afd7aa4ded90c3b71b9162ee110d83d7382624946cc89e9fa5ad20fda18a216a9ff8a81105390a87626d15cba87c5d863def1aca8a13e7d4f971c8318acbbd294030b18a99740e7c7143c03c63ffa7101bf32cba614bd2f4bf8a871eBehavior and scope
The diff is limited to the two collectors and their two focused tests. Collector filenames, systemd unit/timer names,
vm0_*Prometheus metrics and labels, cadence, permissions, symlink handling, partial-status behavior, temporary-file patterns, atomic replacement, and default filesystem layout are unchanged. Provisioning, systemd, Alloy, SSH, secrets, deployment variables, Runner binaries,host.env, and unrelated environment contracts are unchanged.Fallbacks
b095c5abb22e1d1dd5ab8194ccb0eae9ae5affdcbefore relying on any legacy-only external override, as recorded in refactor(ops): remove legacy monitoring collector environment aliases #29945Verification
PYTHONPATH=<isolated-ruff-0.16.0> python3 -m ruff format --check ansible/files/vm0-runner-status-collect.pynpx --yes shellcheck@4.1.0 .github/scripts/tests/vm0-monitoring-collect-test.sh .github/scripts/tests/vm0-runner-status-collect-test.shnpx --yes shellcheck@4.1.0 --exclude=SC2004 ansible/files/vm0-monitoring-collect.sh(SC2004remains limited to pre-existing arithmetic-array expressions outside this change)PYTHONPATH=<isolated-ruff-0.16.0> python3 -m ruff check ansible/files/vm0-runner-status-collect.pybash -n ansible/files/vm0-monitoring-collect.sh .github/scripts/tests/vm0-monitoring-collect-test.sh .github/scripts/tests/vm0-runner-status-collect-test.shPYTHONPYCACHEPREFIX=<isolated-temp-dir> python3 -m py_compile ansible/files/vm0-runner-status-collect.pybash .github/scripts/tests/vm0-monitoring-collect-test.shbash .github/scripts/tests/vm0-runner-status-collect-test.shgit diff --checkNo full local Vitest suite or development server was run. Protected PR CI is authoritative for repository-wide validation.