Adding realworld test dataset - #2409
Merged
Merged
Conversation
…at all data is up-to-date
Contributor
There was a problem hiding this comment.
Pull request overview
This PR introduces a “realworld” pre-populated database dataset for CI and adds smoke/pagination tests that validate API behavior against that larger, realistic data shape. It also wires dataset selection into pytest so tests can be run against either an empty (synthetic) DB or the realworld dump.
Changes:
- Add a realworld pytest marker +
--test-datasetswitch to selectively run/skip tests depending on dataset. - Add realworld smoke tests validating known counts, relationships, and pagination behavior on large tables.
- Extend CI and the start action to import DB dumps and run the test suite against both MySQL and Postgres realworld datasets.
Reviewed changes
Copilot reviewed 8 out of 10 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
ci/testdata/config.json |
Adds dataset-specific config (PEPPER) intended to match the dump. |
ci/apiv2/test_realworld_dump.py |
New realworld-only smoke/pagination tests against the dump dataset. |
ci/apiv2/test_permissions.py |
Marks a test as synthetic-only to avoid running it on prefilled DB. |
ci/apiv2/test_file.py |
Marks a test as synthetic-only to avoid running it on prefilled DB. |
ci/apiv2/conftest.py |
Adds --test-dataset option + marker-based skipping logic. |
.github/workflows/ci.yml |
Adds a new realworld CI job for MySQL/Postgres. |
.github/scripts/import-testdata-dump.sh |
New script to install config + import MySQL/Postgres dumps. |
.github/actions/start-hashtopolis/action.yml |
Adds test_dataset input and realworld import/start sequence. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jessevz
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds two database testsets which are prefilled with some data for most of the tables. This allows more complex tests to be done without having to fill in a lot of test data (especially for GET queries).
There are three kind of tests then: