Skip to content

fix: skip gitignored-dataset tests on CI#47

Merged
benzsevern merged 1 commit intomainfrom
fix/ci-skip-missing-datasets
Apr 15, 2026
Merged

fix: skip gitignored-dataset tests on CI#47
benzsevern merged 1 commit intomainfrom
fix/ci-skip-missing-datasets

Conversation

@benzsevern
Copy link
Copy Markdown
Owner

Problem

Two tests added in #44 (test_autoconfig_parity_pins_unchanged, test_auto_configure_df_dblp_acm_does_not_crash) try to read `tests/benchmarks/datasets/DBLP-ACM/DBLP2.csv`, but that directory is gitignored (`.gitignore:17`). CI fails with `FileNotFoundError`.

Fix

Both tests now `pytest.skip` when the dataset file is absent. No behavior change on developer machines that have the data locally.

Test plan

  • Both tests still PASS locally (data present) — verified.
  • CI turns green after merge.

tests/benchmarks/datasets/ is gitignored, so CI never has the DBLP-ACM
files. Two tests (test_autoconfig_parity_pins_unchanged,
test_auto_configure_df_dblp_acm_does_not_crash) tried to read them and
failed with FileNotFoundError. Now they pytest.skip when the data file
is absent.

Both tests remain effective on developer machines that have pulled the
Leipzig dataset. Parity pin contract is unchanged — the capture script
at tests/parity/capture_autoconfig_output.py is still the source of
truth for regenerating pins.
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@benzsevern benzsevern merged commit 1ced18d into main Apr 15, 2026
6 checks passed
@benzsevern benzsevern deleted the fix/ci-skip-missing-datasets branch April 15, 2026 14:09
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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