Skip to content

CI's integration job runs the reference extractor, and the ingestion tests that publish skip without one - #253

Merged
zlareb1 merged 5 commits into
mainfrom
fix/ci-ingest-extractor
Nov 4, 2026
Merged

zlareb1 merged 5 commits into
mainfrom
fix/ci-ingest-extractor

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

Related: #157
Related: #229

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

...

Why

Main's integration job fails since #229: tests/integration/test_knowledge_ingest_live.py::test_an_uploaded_sql_file_is_parsed_published_and_cited and ::test_revisions_count_up_and_an_expected_revision_guards_the_publish end their jobs failed where they expect ready. The tests run a worker pass in the test process, which sends the original to the extractor named by LOOM_DOCUMENT_EXTRACTOR_URL; the job starts no extractor, so every job fails format_unavailable. (The mislabelled-upload test, which expects format_unavailable, passed for that reason.) The PR's local runs had an extractor configured.

Scope and risk

  • .github/workflows/ci.yml, integration job: a step before pytest starts the reference extractor from extractor/ (python -m loom_extractor, its dependencies already in the dev extra) on 127.0.0.1:8790 with a per-run token (masked in the log), waits for /healthz, and exports LOOM_DOCUMENT_EXTRACTOR_URL and LOOM_DOCUMENT_EXTRACTOR_TOKEN to the later steps. Its log is extractor.log in the workspace, uploaded with the servers' logs on failure. The servers do not call the extractor (only the worker does), so they need neither.
  • tests/integration/test_knowledge_ingest_live.py: the two tests that publish skip when no extractor is routed for SQL and TOML, asked as the worker asks (extractors.endpoint_for, so a route in LOOM_DOCUMENT_EXTRACTORS_JSON or the settings file counts too), as the suite's other service-dependent tests skip; the mislabelled-upload, unknown-upload and cancel tests need no extractor and still run.
  • docs/development/testing.md names the extractor the publishing tests need, beside the S3 store.

Compatibility, rollout and rollback

  • Wire: none. Operator steps: none. Rollback: revert the step and the marker.

Tests

  • Against a local server, ClickHouse and the reference extractor: with no extractor routed (LOOM_DOCUMENT_EXTRACTOR_URL=), pytest tests/integration/test_knowledge_ingest_live.py gives 3 passed, 2 skipped (the two publishing tests, with the reason); with one routed, 5 passed.
  • make format-check and make lint pass; the workflow parses. The integration job on this PR runs the step.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed. (No server code changed; the integration job on this PR is the check.)
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

@zlareb1
zlareb1 force-pushed the fix/ci-ingest-extractor branch 2 times, most recently from d72c21f to c43d0d2 Compare November 4, 2026 05:16
zlareb1 and others added 5 commits November 4, 2026 05:20
…tests that publish skip without one

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…n the worker's own route lookup

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the fix/ci-ingest-extractor branch from c43d0d2 to 05264c0 Compare November 4, 2026 05:21
@zlareb1
zlareb1 merged commit ed5fcee into main Nov 4, 2026
18 checks passed
@zlareb1
zlareb1 deleted the fix/ci-ingest-extractor branch November 4, 2026 06:49
@pufit pufit mentioned this pull request Nov 4, 2026
9 tasks done
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.

1 participant