GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 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

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 #470

New issue
Copy link
New issue
Copy link
Closed
#471
Closed
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#470
#471
Copy link
Assignees
dezren39

Description

@dezren39
dezren39
opened on Oct 21, 2026
Issue body actions

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 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.

Evidence (verified on main 92df54e7, 2026-10-21)

  • 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.
  • grep "lab-ops-hub" .github/workflows/ on main returns nothing — no workflow mentions the package at all. The checks that ran on PR fix(lab-ops-hub): judge inet_aton IPv4 spellings in the container crawl validator #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.
  • Both suites pass when run by hand (verified this review: npm test 11/11 TypeScript; python3 -m unittest discover 4/4 Python, including the lab-ops-hub: crawl validators accept trailing-dot spellings of refused hosts (localhost., 169.254.169.254.) #466 trailing-dot cases and the lab-ops-hub container crawler accepts inet_aton IPv4 spellings (127.1, 2130706433, 0x7f.1) — loopback SSRF bypass in validate_crawl_url #468 inet_aton spellings), so this is purely a wiring gap, not a test-quality problem.
  • PR fix(lab-ops-hub): refuse trailing-dot spellings of blocked crawl hosts #467's trailing-dot regression test (lab-ops-hub: crawl validators accept trailing-dot spellings of refused hosts (localhost., 169.254.169.254.) #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 fix(lab-ops-hub): judge inet_aton IPv4 spellings in the container crawl validator #469 added the Python suite — which is exactly how the Python copy keeps drifting from the Worker copy between rounds.

Why it matters

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.

Acceptance criteria

  • 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.
  • 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.
  • The package README's testing instructions name that one command (today neither suite's invocation is documented there).

Single-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).

Activity

  1. github-actions
    assigned
    dezren39
    on Oct 21, 2026
  2. dezren39
    closed this as completedin #471on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.