Repository navigation
Add release build corpus comparison - #10632
Open
AdamZ-8113 wants to merge 11 commits into
Open
AdamZ-8113 wants to merge 11 commits into
AdamZ-8113 wants to merge 11 commits into
Conversation
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.
Summary
This adds a new CI workflow that can be run before publishing a new Path of Building release.
When a release branch is prepared, the workflow compares that candidate with the latest published stable release. Maintainers can also run it manually with explicit baseline and candidate revisions.
Both versions are tested against the same PoB Codes builds and PoB test fixtures in an isolated Docker container.
This builds on Paliak's earlier build-diff work, including the move toward a container-based comparison that can also be run locally. This version ports that work to the current PoB Codes corpus format and completes the reporting, caching, release integration, and maintainer controls. Paliak should be credited as a contributor to this work.
How the comparison works
The workflow downloads one corpus snapshot and verifies each build before either version is tested. The report records the exact baseline and candidate commits, corpus snapshot ID, and response digest.
Completed baseline calculations can be cached for later runs using the same stable commit, corpus snapshot, and comparison tools.
The result follows these rules:
When a result blocks, the job summary explains how to rerun Compare build corpus with Override verdict selected.
Reports and documentation
The GitHub Actions summary includes:
Release integration
Release next versionstarts the comparison after creating the draft release pull request. Later pushes to the release branch start a comparison for the updated commit.Maintainers can also run the workflow manually with explicit baseline and candidate revisions, an expected corpus digest, strict stat checking, and the verdict override.
The workflow does not run on ordinary feature or bug-fix pull requests, avoiding a full corpus calculation for every PR. This change does not modify branch protection, register the comparison as a required check, merge a pull request, or publish a release.
The release workflow is also updated to supported GitHub Action versions:
actions/checkout@v4peter-evans/create-pull-request@v7These updates preserve the existing draft release workflow and do not affect Path of Building itself.
Validation