Skip to content

test(lab-ops-hub): wire both crawl-validator suites into npm test and CI - #471

Merged
dezren39 merged 1 commit into
mainfrom
sweep/470-labops-tests-wired
Oct 21, 2026
Merged

dezren39 merged 1 commit into
mainfrom
sweep/470-labops-tests-wired

Conversation

@dezren39

@dezren39 dezren39 commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Fixes #470

Problem

PR #469 added the first Python tests for the lab-ops-hub container crawl validator, but nothing ran them — and no CI ran the TypeScript suite either:

The two validators (validateCrawlUrl in the Worker, validate_crawl_url in the container) are the SSRF guard for a publicly reachable crawler with a documented "same policy independently" contract; tests that never run cannot pin that policy.

Solution

Verification

  • npm test on the fixed tree: TypeScript 11/11 pass, Python 4/4 pass.
  • Ablation (the acceptance demonstration): removing the trailing-dot strip from the Python validator (container/app.py) leaves the TypeScript suite green (11/11) but npm test now exits 1 — test_container_validate fails on http://localhost./ exactly as it should. With the strip restored, npm test is green again. Before this PR, that Python-only regression would have passed every automated check.
  • Workflow YAML parses (PyYAML safe_load).

Single-repo: lab-ops-hub exists only in developing-today/code.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

npm test previously ran only the TypeScript suite; the Python container
validator suite from #469 was run by nothing, and no workflow mentioned
the package at all. Split test into test:ts/test:py with test running
both (failing if either fails), add a lab-ops-hub workflow that runs
npm test on pkgs/lab-ops-hub/** changes, and document the one command
in the README.

Ablation-verified: removing the Python trailing-dot strip leaves the
TS suite green but makes npm test exit 1 (localhost. test fails).

Fixes #470
@dezren39
dezren39 requested a review from a team as a code owner October 21, 2026 10:01
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T10:04:15.591045Z 74c514a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 834c4792-9701-4d39-a0bb-2c59fb0947be
📥 Commits

Reviewing files that changed from the base of the PR and between 92df54e and 74c514a.

📒 Files selected for processing: 3
  • .github/workflows/lab-ops-hub.yml
  • pkgs/lab-ops-hub/README.md
  • pkgs/lab-ops-hub/package.json
+----------------------------------------------------------------------------------+
| This is the beginning of a beautiful friendship...between you and bug-free code. |
+----------------------------------------------------------------------------------+
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dezren39
dezren39 merged commit d234610 into main Oct 21, 2026
4 of 5 checks passed
@dezren39
dezren39 deleted the sweep/470-labops-tests-wired branch October 21, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant