Skip to content

Drop language-scope filtering from crawler config - #86

Merged
brylie merged 1 commit into
mainfrom
feature/crawler-drop-language-scope
Aug 6, 2026
Merged

Drop language-scope filtering from crawler config#86
brylie merged 1 commit into
mainfrom
feature/crawler-drop-language-scope

Conversation

@brylie

@brylie brylie commented Aug 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Removes ScopeConfig.languages and include_url_patterns, and every code path that read them: scope evaluation (discovery/scope.py), gap-crawl URL filtering (discovery/gap_crawl.py), the discovery scope-reason map (discovery/runner.py), and the crawler's derived-language manifest field (crawler/crawler.py).
  • Sites are now crawled comprehensively per source, filtered only on allowed_domains / exclude_url_patterns / allowed_content_types.
  • Drops the stale /en path from tyomarkkinatori's gap_crawl.seed_urls and from vero's base_url, matching the other sites' language-neutral config.
  • ManifestRecord.language stays in the schema (harmless, forward-compatible with real future language detection) but is no longer derived from a forced single-language scope config, so it's always None for now.

Motivated by the 2026-08-05 discovery review: per-site language path structure is too inconsistent to scope-filter reliably (kela.fi has no language signal at all; dvv.fi uses /se/ for Swedish, not the expected /sv/), and Finland's actual official languages are Finnish/Swedish, not English, so English-only scoping was wrong to begin with. Language-variant handling moves to the retrieval layer (#68).

Closes #83. Companion spec update: #85.

Test plan

  • uv run pytest -q — 108 passed
  • uv run ruff check . / uv run ruff format --check . — clean
  • uv run mypy tapio_crawler — no issues

Removes ScopeConfig.languages and include_url_patterns, and the code
paths that read them: scope evaluation, gap-crawl URL filtering, the
discovery scope-reason map, and the crawler's derived-language manifest
field. Sites are now crawled comprehensively, filtered only on
allowed_domains/exclude_url_patterns/allowed_content_types, matching the
2026-08-05 discovery review's finding that per-site language structure
is too inconsistent to scope-filter reliably, and that Finland's actual
official languages (Finnish/Swedish) make English-only scoping wrong
in the first place. Language-variant handling moves to the retrieval
layer (#68).

Also drops the now-stale /en path from tyomarkkinatori's gap_crawl seed
URL and vero's base_url, matching the other sites' language-neutral
config.

ManifestRecord.language stays in the schema (harmless, forward-compatible
with real future language detection) but is no longer derived from a
forced single-language scope config, so it's always None until then.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@brylie, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9be9d0a5-c43f-4b5a-a7cd-ba7f0db869e1

📥 Commits

Reviewing files that changed from the base of the PR and between 9711867 and 9a9d9c7.

📒 Files selected for processing (8)
  • crawler/tapio_crawler/config/config_models.py
  • crawler/tapio_crawler/config/site_configs.yaml
  • crawler/tapio_crawler/crawler/crawler.py
  • crawler/tapio_crawler/discovery/gap_crawl.py
  • crawler/tapio_crawler/discovery/runner.py
  • crawler/tapio_crawler/discovery/scope.py
  • crawler/tests/crawler/test_crawler.py
  • crawler/tests/discovery/test_scope.py

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.

@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

CI Results

Service Check Result
crawler ruff (lint) ✅ Passed
crawler mypy ✅ Passed
crawler pyrefly ✅ Passed
crawler pytest + coverage ✅ Passed
ingest ruff (lint) ✅ Passed
ingest mypy ✅ Passed
ingest pyrefly ✅ Passed
ingest pytest + coverage ✅ Passed
backend ruff (lint) ✅ Passed
backend mypy ✅ Passed
backend pyrefly ✅ Passed
backend pytest + coverage ✅ Passed
app lint (eslint + prettier) ✅ Passed

All checks passed. 🎉

@brylie
brylie merged commit b36aa81 into main Aug 6, 2026
7 checks passed
@brylie
brylie deleted the feature/crawler-drop-language-scope branch August 6, 2026 15:13
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.

Crawl each source comprehensively instead of filtering by language

1 participant