Skip to content

Point catalog loader test fixtures at a placeholder host - #5609

Merged
obenland merged 1 commit into
mainfrom
catalog/tidy-stale-test-fixture-urls
Sep 2, 2026
Merged

obenland merged 1 commit into
mainfrom
catalog/tidy-stale-test-fixture-urls

Conversation

@obenland

@obenland obenland commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Fixes

No issue — small catalog test housekeeping.

Description

Two related bits of tidying in the catalog test fixtures:

  • The loader TSV fixtures in catalog/tests/dags/common/loader/test_resources/
    carry url/thumbnail values on a third-party host that stopped serving those
    images a long time ago. test_sql.py only copies these rows into the
    intermediate table — it never fetches them — so the host is swapped for the
    reserved example.com domain and the fixtures become self-contained. Paths,
    row counts, and column counts are unchanged, so every uniqueness and
    null-handling case the tests rely on still behaves the same way.

  • catalog/tests/dags/.../resources/example_output/thingiverse_1551879215.tsv is
    removed. Thingiverse ingestion was dropped some time ago and this was the only
    file left in that directory without a matching provider script; nothing
    references it.

Testing Instructions

ov just catalog/test catalog/tests/dags/common/loader/test_sql.py — the loader
tests should pass unchanged.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main) or a parent feature branch.
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable). — n/a, fixture-only change
  • I added or updated documentation (if applicable). — n/a
  • I tried running the project locally and verified that there are no visible errors. — relying on CI for the loader tests
  • I ran the DAG documentation generator (ov just catalog/generate-docs for catalog
    PRs) or the media properties generator (ov just catalog/generate-docs media-props
    for the catalog or ov just api/generate-docs for the API) where applicable. — n/a, no DAG or media-property changes

🤖 Generated with Claude Code

The loader TSV fixtures carry image URLs on a third-party host that has
long since stopped serving them. Nothing in these tests fetches the URLs
— they are only loaded into the intermediate table — so swap the host for
the reserved example.com domain and keep the fixtures self-contained.

Also drop the Thingiverse example-output fixture. Thingiverse ingestion
was removed a while back, leaving it the only file in that directory
without a matching provider script.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 2, 2026 16:45
@obenland
obenland requested a review from a team as a code owner September 2, 2026 16:45
@obenland
obenland requested review from krysal and obulat and removed request for a team September 2, 2026 16:45
@openverse-bot openverse-bot added 🧱 stack: catalog Related to the catalog and Airflow DAGs 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Sep 2, 2026
@openverse-bot openverse-bot moved this to 👀 Needs Review in Openverse PRs Sep 2, 2026
@openverse-bot openverse-bot added the 🏷 status: label work required Needs proper labelling before it can be worked on label Sep 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are limited to test fixtures and deletion of an unreferenced file, with no remaining references to the removed fixture and no functional code-path impact.

Pull request overview

This PR performs small catalog test-fixture housekeeping by removing a stale, unused Thingiverse example-output TSV and updating loader TSV fixtures to use example.com for previously hard-coded image hosts that no longer serve content, keeping the fixtures self-contained without changing test semantics.

Changes:

  • Replaced thingiverse-rerender-new.s3.amazonaws.com image/thumbnail hosts with https://example.com/... in loader TSV fixtures used by catalog/tests/dags/common/loader/test_sql.py.
  • Removed the leftover thingiverse_1551879215.tsv provider example-output fixture, which is no longer referenced.
File summaries
File Description
catalog/tests/dags/common/loader/test_resources/none_missing.tsv Swaps deprecated image host to example.com while preserving paths/rows for loader tests.
catalog/tests/dags/common/loader/test_resources/malformed_more_than_max_rows.tsv Updates placeholder image host in malformed fixture data.
catalog/tests/dags/common/loader/test_resources/malformed_max_rows.tsv Updates placeholder image host in malformed fixture data.
catalog/tests/dags/common/loader/test_resources/malformed_less_than_max_rows.tsv Updates placeholder image host in malformed fixture data.
catalog/tests/dags/common/loader/test_resources/license_missing.tsv Updates placeholder image host in license-missing fixture rows.
catalog/tests/dags/common/loader/test_resources/foreign_landing_url_missing.tsv Updates placeholder image host in fixture rows with missing landing URL.
catalog/tests/dags/common/loader/test_resources/foreign_identifier_duplicate.tsv Updates placeholder image host in duplicate-identifier fixture rows.
catalog/tests/dags/providers/provider_api_scripts/resources/example_output/thingiverse_1551879215.tsv Removes unused legacy Thingiverse example output TSV.
Review details
  • Files reviewed: 8/8 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@obenland obenland added 🧰 goal: internal improvement Improvement that benefits maintainers, not users 🤖 aspect: dx Concerns developers' experience with the codebase 🟩 priority: low Low priority and doesn't need to be rushed and removed 🏷 status: label work required Needs proper labelling before it can be worked on labels Sep 2, 2026
@obenland
obenland merged commit f2e58ab into main Sep 2, 2026
75 of 87 checks passed
@obenland
obenland deleted the catalog/tidy-stale-test-fixture-urls branch September 2, 2026 16:58
@github-project-automation github-project-automation Bot moved this from 👀 Needs Review to 🤝 Merged in Openverse PRs Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 aspect: dx Concerns developers' experience with the codebase 🧰 goal: internal improvement Improvement that benefits maintainers, not users 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: catalog Related to the catalog and Airflow DAGs 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants