Title: lab-ops-hub: neither crawl-validator test suite runs anywhere — the Python suite from #469 (and npm test's TS suite) is wired into no command or CI · Issue #470 · developing-today/code · GitHub
Open Graph Title: lab-ops-hub: neither crawl-validator test suite runs anywhere — the Python suite from #469 (and npm test's TS suite) is wired into no command or CI · Issue #470 · developing-today/code
X Title: lab-ops-hub: neither crawl-validator test suite runs anywhere — the Python suite from #469 (and npm test's TS suite) is wired into no command or CI · Issue #470 · developing-today/code
Description: Summary PR #469 added the first Python tests for the lab-ops-hub container crawl validator (pkgs/lab-ops-hub/test/test_container_validate.py, 4 tests, merged in 92df54e fixing #468), but nothing runs them: no command and no CI job in the...
Open Graph Description: Summary PR #469 added the first Python tests for the lab-ops-hub container crawl validator (pkgs/lab-ops-hub/test/test_container_validate.py, 4 tests, merged in 92df54e fixing #468), but nothing ru...
X Description: Summary PR #469 added the first Python tests for the lab-ops-hub container crawl validator (pkgs/lab-ops-hub/test/test_container_validate.py, 4 tests, merged in 92df54e fixing #468), but nothing ru...
Opengraph URL: https://github.com/developing-today/code/issues/470
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lab-ops-hub: neither crawl-validator test suite runs anywhere — the Python suite from #469 (and npm test's TS suite) is wired into no command or CI","articleBody":"## Summary\n\nPR #469 added the first Python tests for the lab-ops-hub container crawl validator (`pkgs/lab-ops-hub/test/test_container_validate.py`, 4 tests, merged in 92df54e7 fixing #468), but nothing runs them: no command and no CI job in the repo executes that file, and the TypeScript suite is in the same position. The crawl validators have now needed five SSRF-policy rounds (#441, #460, #464, #466, #468); the regression tests written for those rounds only protect the policy if something actually runs them.\n\n## Evidence (verified on main `92df54e7`, 2026-10-21)\n\n- `pkgs/lab-ops-hub/package.json` — the only test entry point is `\"test\": \"node --test \\\"test/**/*.test.ts\\\"\"`, which matches only the TypeScript suite (`test/lib.test.ts`). The Python suite's filename (`test/test_container_validate.py`) is outside that pattern, and Node's runner cannot execute it anyway. The Python file's own header gives a different, manual command (`python3 -m unittest discover -s test -p \"test_*.py\"` from `pkgs/lab-ops-hub`) that no script references.\n- `grep \"lab-ops-hub\" .github/workflows/` on main returns nothing — no workflow mentions the package at all. The checks that ran on PR #469 were treefmt, Nix flake evaluation, CodeRabbit, and an auto-assign job literally named `run` (steps: \"Assign to maintainer\"); none of them executes either test suite.\n- Both suites pass when run by hand (verified this review: `npm test` 11/11 TypeScript; `python3 -m unittest discover` 4/4 Python, including the #466 trailing-dot cases and the #468 inet_aton spellings), so this is purely a wiring gap, not a test-quality problem.\n- PR #467's trailing-dot regression test (#466) landed in the TypeScript suite only; the Python half of that fix was covered only by a manual probe in the PR body until #469 added the Python suite — which is exactly how the Python copy keeps drifting from the Worker copy between rounds.\n\n## Why it matters\n\n`validateCrawlUrl` / `validate_crawl_url` are the SSRF guard for a publicly reachable crawler, implemented twice (Worker + container) with a documented \"same policy independently\" contract. Every bypass found so far was a divergence between what one copy (or one spelling class) enforced and what the fetcher actually does. If the tests that pin the shared policy never run automatically, the next divergence ships silently and is only found by another manual audit round.\n\n## Acceptance criteria\n\n- A single documented command from `pkgs/lab-ops-hub` (e.g. `npm test`) runs BOTH suites — the TypeScript tests and `test/test_container_validate.py` — and fails if either fails.\n- A CI check runs those suites on pull requests that touch `pkgs/lab-ops-hub/**` (or an equivalent always-on check), so a validator regression is caught before merge; demonstrate by showing the check failing on a deliberately broken spelling (e.g. removing the trailing-dot strip) in a draft PR or a workflow log.\n- The package README's testing instructions name that one command (today neither suite's invocation is documented there).\n\nSingle-repo: lab-ops-hub exists only in developing-today/code (verified by grep across the opencode, openchamber and nix clones in earlier crawl-chain rounds).\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-21T09:26:58Z","url":"https://github.com/developing-today/code/issues/470"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9f87b0eb-1710-5f41-9566-7872105cab92 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8008:4E4E7:4B20A5:623D92:6B061E85 |
| html-safe-nonce | ad245e98c2fec6210c6528d3a62c173e502dd7f50cb90b3355769bb40cb51dd9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDA4OjRFNEU3OjRCMjBBNTo2MjNEOTI6NkIwNjFFODUiLCJ2aXNpdG9yX2lkIjoiMzYyMzQ5NzU0Mzg3MjU1MjU4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 33c2a9fc76c85b3239c95013c89b8da5dbb0943e6d63cca71a43cee4d9a455bf |
| hovercard-subject-tag | issue:5957898295 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/470/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d838705c1ae35f8e3b62e639a5c3cc33bdefda5e43aebcf2788f6da340cadf81/developing-today/code/issues/470 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d838705c1ae35f8e3b62e639a5c3cc33bdefda5e43aebcf2788f6da340cadf81/developing-today/code/issues/470 |
| og:image:alt | Summary PR #469 added the first Python tests for the lab-ops-hub container crawl validator (pkgs/lab-ops-hub/test/test_container_validate.py, 4 tests, merged in 92df54e fixing #468), but nothing ru... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b25c3080e84402f75431d8dc7a96b2635219cec7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width