Skip to content

Add release build corpus comparison - #10632

Open
AdamZ-8113 wants to merge 11 commits into
PathOfBuildingCommunity:devfrom
AdamZ-8113:codex/manual-build-corpus-ci
Open

AdamZ-8113 wants to merge 11 commits into
PathOfBuildingCommunity:devfrom
AdamZ-8113:codex/manual-build-corpus-ci

Conversation

@AdamZ-8113

Copy link
Copy Markdown
Contributor

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:

  • A candidate crash, or a build it cannot load, calculate, or save, normally fails the check. This includes failures shared with the baseline.
  • A baseline-only failure is reported as fixed by the candidate and does not fail the check.
  • Stat additions, removals, and value changes are advisory unless strict mode is enabled.
  • Timing and saved XML differences are informational.
  • Maintainers can override reported candidate failures and strict stat changes on a manual run. All findings remain visible, and the report records the override.
  • Infrastructure failures that prevent the workflow from producing a complete report still fail normally.

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:

  • The overall result and any blocking findings
  • Links to affected builds when available
  • The exact baseline and candidate revisions
  • The corpus snapshot and SHA-256 digest
  • Whether baseline timing came from the current run or cache
  • A downloadable report with build, stat, and timing CSV files
  • A link to the PoB Codes test corpus documentation

Release integration

Release next version starts 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@v4
  • peter-evans/create-pull-request@v7

These updates preserve the existing draft release workflow and do not affect Path of Building itself.

Validation

  • Python report tests cover matching builds, baseline-only failures, candidate failures, shared failures, strict stat changes, and maintainer overrides.
  • Shell tests cover the same blocking and override behavior.
  • Actionlint and ShellCheck pass.
  • A complete local Docker comparison used 580 live corpus builds and 5 checked-in fixtures.
  • The stable baseline completed 584 of 585 builds.
  • The candidate completed all 585 builds.
  • The known baseline-only failure was reported as fixed without blocking the result.

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