Repository navigation
ci: data-quality automation — lint gate, coverage, Wayback archiving, staleness sweep - #229
Merged
Merged
Conversation
…ess sweep Adds four data-quality automations (all documented in docs/ci.md): - scripts/lint-data.js — cross-field consistency lint wired into build.yml as a PR gate (environment<->IP, ip_rating shape, weight sanity, ISO last_verified); warnings for JSON formatting (--fix), FOV degree symbols, shared source URLs. Already caught + fixed 2 bosch entries with a bogus ip_rating 'none (indoor)'. - scripts/coverage-report.js -> COVERAGE.md, regenerated + committed on main by build.yml; replaces the manual data-lane coverage tallies. - scripts/archive-sources.js + archive-sources.yml — pushes changed cameras' sources to the Wayback Machine so specs survive vendor link-rot. - scripts/check-staleness.js + check-staleness.yml — monthly last_verified freshness sweep with a self-updating tracking issue (companion to the existing dead-link check-sources sweep). Adds npm scripts (lint/coverage/archive-sources/check-staleness) and a CONTRIBUTING.md pointer.
This was referenced Aug 7, 2026
This was referenced Aug 7, 2026
ch-bas
added a commit
that referenced
this pull request
Aug 10, 2026
docs: refresh README stats (build-managed) + changelog the CI tooling (#229)
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.
Data-quality CI automation (ideas #1–#4)
Adds four automations, all documented in
docs/ci.md. No breaking changes — the dataset already passes the new gate (and it caught 2 real bugs on the way).1. Consistency lint → PR gate (
scripts/lint-data.js, wired intobuild.yml)Cross-field invariants a JSON Schema can't express. Errors fail a PR:
environmentvsip_rating— weatherproof (water digit ≥5, incl.IP66/IP67) can't be["indoor"]-only (Data: raiseenvironment(indoor/outdoor) coverage above 53% #123)ip_ratingmust contain a valid IEC 60529 token (allows compoundIP66/IP67+ partialIPX5/IP5X)weight_gpositive ≤ 100 000;last_verifiedmust be ISOYYYY-MM-DDWarnings (advisory): non-canonical JSON (
npm run lint -- --fix),°in FOV, source URLs shared across cameras.2. Coverage report (
scripts/coverage-report.js→COVERAGE.md)Auto-regenerated + committed on
main. Replaces the manual data-lane tallies — a progress-bar table linked to #123/#161/#162/#177/#178/#179/#166/#170.3. Wayback source archiving (
scripts/archive-sources.js+archive-sources.yml)On push to
main, submits changed cameras'sources[]to the Wayback "Save Page Now" API so specs survive manufacturer link-rot (we've already had to recover entries this way).4.
last_verifiedstaleness sweep (scripts/check-staleness.js+check-staleness.yml)Monthly companion to the existing dead-link sweep (#222) — flags stale/unverified entries into a self-updating tracking issue.
Also:
npm runscripts (lint/coverage/archive-sources/check-staleness) + a CONTRIBUTING.md pointer. Build + lint + coverage all green locally.