Harvest univers conformance fixtures - #41
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new “univers” harvester source to seed local conformance fixtures for Debian/RPM/Gentoo/Alpine/Pacman/Conan, plus Conan containment fixtures and npm advisory-native parsing coverage. It also introduces a standalone diff tool to compare vers behavior against package-url/univers for these fixtures.
Changes:
- Add
tools/harvest/univers.go+ tests to extract univers fixtures (comparison + Conan ranges) and copy npm advisory data intotestdata/local/data/. - Extend the harvest pipeline to support per-source “additional outputs” beyond the standard comparison/range JSON.
- Add
tools/diff-universand a Makefile target to run a differential check against a Python + univers installation.
Reviewed changes
Copilot reviewed 15 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/harvest/univers.go | Implements univers fixture extraction and additional output generation (Conan ranges + npm advisory data). |
| tools/harvest/univers_test.go | Unit tests for univers extractors and the Python-list parsing helpers. |
| tools/harvest/main.go | Adds an “additionalGenerator” hook and registers univers as a new harvest source. |
| tools/diff-univers/main.go | New CLI to compare vers results vs univers for harvested fixtures via an embedded Python runner. |
| tools/diff-univers/main_test.go | Unit tests for the diff tool query loading/deduping and difference reporting. |
| testdata/local/tests/rpm_univers_version_cmp_test.json | Harvested RPM comparison/equality fixtures from univers. |
| testdata/local/tests/gentoo_univers_version_cmp_test.json | Harvested Gentoo comparison/equality fixtures from univers. |
| testdata/local/tests/deb_univers_version_cmp_test.json | Harvested Debian comparison/equality fixtures from univers. |
| testdata/local/tests/conan_univers_version_cmp_test.json | Harvested Conan comparison/equality fixtures from univers. |
| testdata/local/tests/conan_univers_range_test.json | Harvested Conan containment fixtures derived from univers range tests. |
| testdata/local/tests/alpm_univers_version_cmp_test.json | Harvested Pacman/ALPM comparison/equality fixtures from univers. |
| testdata/local/skip.json | Records the known Conan prerelease representation gap as a targeted conformance skip. |
| testdata/local/provenance.json | Pins univers provenance (repo, commit, licenses, source files) and records generated outputs. |
| Makefile | Adds diff-univers target for running the differential tool. |
| advisory_test.go | Adds a test that ensures harvested npm advisory native ranges parse under npm scheme. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
andrew
force-pushed
the
issue-36-univers-fixtures
branch
from
August 19, 2026 08:16
0f28305 to
7fa8f95
Compare
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.
Harvests comparison fixtures from package-url/univers for Debian, RPM, Gentoo, Alpine, Pacman, and Conan, plus Conan containment fixtures and npm advisory parse coverage.
Pins source provenance and adds a manual differential command for checking the Go implementation against univers. Records the one known Conan prerelease representation gap in the local skip file.
Continues #36.