Skip to content

Verify release package inputs before publication - #816

Merged
Eli Pinkerton (wallstop) merged 6 commits into
masterfrom
work/release-npm12-export
Nov 23, 2026
Merged

Eli Pinkerton (wallstop) merged 6 commits into
masterfrom
work/release-npm12-export

Conversation

@wallstop

@wallstop Eli Pinkerton (wallstop) commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Why

The classic Unity export packed its own npm input. A stale tarball could produce a classic archive labeled with the new release version. Release staging also replaced the exporter checksum. The release instructions pointed operators to publication before qualification.

What changed

  • Export the classic archive from the validated npm tarball. Verify its original checksum and embedded package name and version. Keep local export working with npm 11 and 12.
  • Verify the exporter's checksum before staging. Require the exact versioned classic archive.
  • Match the registry's SHA-512 before reusing a published npm version in a release retry.
  • Guide operators through exact-tag qualification before they dispatch Release.
  • Shorten the Diagnostics sample Editor assembly path while preserving its identity and Unity GUID.
  • Include the pinned Unity Helpers MIT notice in both archive formats.

How we know

The exporter replay reproduced the baseline 219-asset classic archive and 15-file Asset Store submission byte for byte. The release steps rejected stale, truncated, ambiguous, and incomplete fixtures. The qualification replay accepted all four evidence groups and rejected each missing group and expired evidence. All 1,500 Node tests, 146 Python tests, and repository validation passed. Classic export · Qualification · npm retry

The final 4.0.0 rehearsal verifies all 219 classic assets and 394 UPM entries. The longest paths are 142 and 146 characters respectively. The sample definition and importer are byte-identical after the rename. The Unity Helpers notice is the only content change. The preceding path-only head passed EditMode, PlayMode and standalone IL2CPP on DAD-MACHINE with confirmed license and lock cleanup. Path check · Notice check · DAD artifacts · Current Unity run

DISCLOSURE: LLM-GENERATED TEXT

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Unity package staging function now accepts two npm pack output shapes and validates the package record and tarball filename across POSIX and Windows path rules. Tests cover successful staging and invalid output.

Changes: npm pack output validation

Layer / File(s) Summary
Parse and validate the pack record
scripts/unity/create_unitypackage.py, scripts/__tests__/test_create_unitypackage.py
The staging function accepts a one-record array or a mapping keyed by the expected package name. It rejects invalid JSON, mismatched records, and missing or unsafe .tgz filenames. Tests verify extraction uses the reported filename, staging renames Samples~ to Samples, and invalid inputs raise ValueError before extraction.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • Issue 575 tracks 4.0.0 release readiness. This change updates npm pack output handling in the Unity package exporter used by the release process.
Merge Risk: Minimal · up to ad8bc

This change builds the classic Unity package from the validated npm tarball and checks registry integrity before reusing a published npm version. No merge-blocking problems were found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Verify release package inputs before publication" matches the main change. The PR checks the npm tarball used to export the classic archive, verifies the exporter checksum before staging, a…
Description check Passed The description follows the template. It has Why, What changed, and How we know sections, and it explains the problem, the fix, and the evidence. The Related Issue, Type of Change, and Checklist secti…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Verify release package inputs before publication" matches the main change. The PR checks the npm tarball used to export the classic archive, verifies the exporter checksum before staging, and matches the registry SHA-512 before a release retry reuses a published version. The title is specific and concise, and it does not describe anything absent from the changeset.

Full details: Description check

Explanation

The description follows the template. It has Why, What changed, and How we know sections, and it explains the problem, the fix, and the evidence. The Related Issue, Type of Change, and Checklist sections from the template are missing. The Checklist also asks for a CHANGELOG update, which the description does not mention. The description is mostly complete, so the check passes, but the missing sections should be filled in before merge.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review details

Context from checks skipped due to timeout: 7

  • GitHub Check: CodeRabbit
  • GitHub Check: Unity 6000.5.2f1 all modes
  • GitHub Check: Script tests (ubuntu-latest)
  • GitHub Check: Script tests (windows-latest)
  • GitHub Check: Script tests (macos-latest)
  • GitHub Check: Lint GitHub Actions workflows
  • GitHub Check: Documentation C# examples

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

The change correctly handles both npm pack result shapes and validates the reported tarball filename. I found no defects in the diff.

3728 in, 1534 out tokens. Comments only; this review never blocks a merge.

@wallstop Eli Pinkerton (wallstop) changed the title Fix classic Unity package export with npm 12 Fix classic Unity package export and release staging Nov 22, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 1 finding.

The release staging step now requires a checksum sidecar that the changed exporter does not create. Releases without that sidecar fail before the Unity package can be published.

4256 in, 2133 out tokens. Comments only; this review never blocks a merge.

Comment thread .github/workflows/release.yml Resolved
Verify npm retry bytes and guide operators through exact-tag qualification.
@wallstop Eli Pinkerton (wallstop) changed the title Fix classic Unity package export and release staging Verify release package inputs before publication Nov 23, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No defects found in the diff.

11607 in, 2160 out tokens. Comments only; this review never blocks a merge.

Keep the assembly and importer metadata bytes intact while bringing the classic and UPM archives under Unity's submission path limit.

DISCLOSURE: LLM-GENERATED TEXT

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No defects found in the supplied diff.

11750 in, 3173 out tokens. Comments only; this review never blocks a merge.

The shipped collection pool already identifies the upstream source. Include its MIT notice in both distribution formats.

DISCLOSURE: LLM-GENERATED TEXT
@cursor

cursor Bot commented Nov 23, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No defects found.

12177 in, 2818 out tokens. Comments only; this review never blocks a merge.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DISCLOSURE: LLM-GENERATED TEXT

OpenAI review: 0 findings.

No correctness defects found.

12402 in, 2870 out tokens. Comments only; this review never blocks a merge.

@wallstop
Eli Pinkerton (wallstop) merged commit 1e99f89 into master Nov 23, 2026
33 checks passed
@wallstop
Eli Pinkerton (wallstop) deleted the work/release-npm12-export branch November 23, 2026 04:54
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