Skip to content

Add output-correctness assertions to smoke tests - #15

Merged
scruplelesswizard merged 4 commits into
mainfrom
test/smoke-test-partition-correctness
Jul 31, 2026
Merged

Add output-correctness assertions to smoke tests#15
scruplelesswizard merged 4 commits into
mainfrom
test/smoke-test-partition-correctness

Conversation

@scruplelesswizard

Copy link
Copy Markdown
Owner

Follow-up from REVIEW.adoc's CI/CD section. Every existing smoke test job only asserted that the action ran and printed something — none of them checked what it printed. .github/workflows/README.md has had "Test output for correctness" on its TODO list since the workflow README was first written.

Adds smoke-test-correctness: runs the default file-count split across all three split-index values with split-total: 3 against the same fixture repo the other jobs use, then asserts:

  • no partition is empty
  • partitions are pairwise disjoint (no file assigned to two indices)
  • the union of all partitions exactly matches the full glob (nothing dropped, nothing invented)

This is the check that would have caught the exclude-glob quoting bug (fixed in #9) automatically instead of via a user bug report that sat open for a year.

Note: I don't have a way to run actual GitHub-hosted Actions runners from where I wrote this, so the path-format assumptions (e.g. that split_tests' output and find's output agree on relative-path formatting) are validated by this PR's own CI run rather than locally beforehand — worth a look at the Checks tab before merging.

Every existing smoke test job only asserted that the action ran and
printed something - none of them checked what it printed. This closes
the repo's own long-standing TODO ("Test output for correctness" in
.github/workflows/README.md).

Adds smoke-test-correctness: runs the default file-count split across
all three split-index values for split-total=3 against the fixture repo,
then asserts:
- no partition is empty
- partitions are pairwise disjoint (no file assigned to two indices)
- the union of all partitions exactly matches the full glob (no file
  dropped or invented)

This is the check that would have caught the exclude-glob quoting bug
(fixed in #9) automatically instead of via a user bug report.
@scruplelesswizard
scruplelesswizard merged commit 47a2e08 into main Jul 31, 2026
6 checks passed
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