Skip to content

fix: current-tree package checks support unreleased versions - #104186

Merged
steipete merged 2 commits into
mainfrom
codex/qa-unreleased-package
Jul 11, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/qa-unreleased-package

Conversation

@steipete

@steipete steipete commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Related: #104162
Related: #103583

What Problem This Solves

Resolves a problem where scheduled live/E2E, plugin prerelease, and local Docker/install/Bun/Parallels QA package builds still failed before their tests when package.json had advanced to the next stable version but CHANGELOG.md only had Unreleased notes. #104162 fixed the same failure for the primary QA smoke job, but these sibling current-tree callers still used strict release packaging.

Why This Change Was Made

Extends #104162's existing --allow-unreleased-changelog contract through a false-by-default reusable-workflow input and the remaining current-tree QA callers. Exact-version notes still win, release/package-candidate callers remain strict, and generated targeted reruns preserve only an explicit literal true opt-in.

User Impact

Maintainers can run every current-tree QA package path between a version bump and release-note finalization without weakening publish or release-validation checks. There is no end-user runtime behavior change.

Evidence

  • Baseline: main CI run 29139615832 reproduced the missing 2026.7.2 changelog-section failure; improve(release): reuse exact-SHA validation evidence #104162's CI run 29139972142 then passed both primary QA smoke profiles.
  • Exact rebased follow-up: 419 focused tests passed in AWS Crabbox across changelog safety/restoration, Docker scheduling and reruns, workflow callers, installers, and Parallels packaging.
  • Formatting: all 15 formatter-supported changed files passed oxfmt --check.
  • git diff origin/main --check and changed .mjs syntax checks passed.
  • Mandatory branch autoreview against origin/main: clean, no accepted/actionable findings; overall correctness 0.88.

AI-assisted: implementation, tests, and review were completed with Codex; the resulting behavior and release boundaries were manually inspected.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: M maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete steipete self-assigned this Jul 11, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 21f8420749

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

},
version: 1,
};
await fs.promises.writeFile(file, `${JSON.stringify(payload, null, 2)}\n`);
await writeFailureIndex(logDir, payload);
await writeFailureIndex(logDir, payload, env);

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.

P2 Badge Preserve QA changelog intent in summary reruns

When a QA-unreleased Docker run fails and someone uses the supported node scripts/docker-e2e-rerun.mjs <summary.json> path, this only passes the env through to writeFailureIndex, so failures.json gets qa_unreleased_changelog=true but summary.json has no field for docker-e2e-rerun.mjs to recover. Summary-based reruns therefore drop the flag and repack the same SHA strictly, which fails before the lane whenever package.json has advanced and CHANGELOG.md only has Unreleased notes—the failure mode this change is meant to fix.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 11, 2026
@steipete-oai
steipete-oai force-pushed the codex/qa-unreleased-package branch from 21f8420 to a7d61cc Compare July 11, 2026 05:24
@steipete-oai steipete-oai changed the title fix: QA package builds support unreleased versions fix: current-tree package checks support unreleased versions Jul 11, 2026
@steipete
steipete merged commit 6e9e64b into main Jul 11, 2026
100 of 102 checks passed
@steipete
steipete deleted the codex/qa-unreleased-package branch July 11, 2026 05:31
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 11, 2026
@clawsweeper

clawsweeper Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 11, 2026, 1:30 AM ET / 05:30 UTC.

Summary
The PR extends the existing Unreleased-changelog packaging opt-in to current-tree QA workflows and local package callers, and attempts to preserve that intent through generated Docker reruns.

PR surface: Tests +95, Config +21, Other +24. Total +140 across 18 files.

Reproducibility: yes. Use a QA-unreleased run that emits summary.json, then pass that file to scripts/docker-e2e-rerun.mjs; the current source path regenerates a command without allow_unreleased_changelog=true.

Review metrics: 1 noteworthy metric.

  • Workflow input surface: 1 optional boolean added, default false. The input changes package changelog selection and must survive every supported rerun artifact without reaching strict release validation.

Stored data model
Persistent data-model change detected: serialized state: test/scripts/docker-all-scheduler.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦐 gold shrimp
Result: needs maintainer review before merge.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Persist the opt-in in summary.json and directly test docker-e2e-rerun.mjs against that emitted artifact.

Risk before merge

  • [P1] If merged as-is, rerunning a QA-unreleased failure from the supported summary.json artifact can silently revert to strict packaging and fail before the selected Docker lane starts.

Maintainer options:

  1. Preserve summary rerun intent (recommended)
    Persist the trusted boolean in summary.json, parse only literal true, and directly test rerunning from the emitted summary artifact before merge.
  2. Pause the caller expansion
    Keep the remaining sibling callers strict until all supported rerun artifacts can carry the package intent consistently.

Next step before merge

  • [P2] The protected maintainer label and contributor-addressable blocker require normal author and maintainer follow-up rather than automated repair routing.

Security
Cleared: No concrete security or supply-chain regression was found; the new workflow value is a typed, exact-literal allowlisted boolean and introduces no dependency, permission, secret, download, or package-source change.

Review findings

  • [P2] Preserve the opt-in in summary-based reruns — scripts/test-docker-all.mjs:424-428
Review details

Best possible solution:

Persist the exact boolean intent in the summary schema, recover only a literal true in the rerun parser, and add a helper-level regression proving both summary and failure-index reruns preserve it while release callers remain strict.

Do we have a high-confidence way to reproduce the issue?

Yes. Use a QA-unreleased run that emits summary.json, then pass that file to scripts/docker-e2e-rerun.mjs; the current source path regenerates a command without allow_unreleased_changelog=true.

Is this the best way to solve the issue?

No, not yet. Reusing the explicit opt-in is the correct narrow boundary, but preserving it only in failures.json leaves the documented summary.json rerun path broken.

Full review comments:

  • [P2] Preserve the opt-in in summary-based reruns — scripts/test-docker-all.mjs:424-428
    The prior review blocker remains: writeRunSummary still omits the unreleased-changelog intent from summary.json. Passing that supported artifact to docker-e2e-rerun.mjs therefore regenerates a strict package command and can fail before the lane again; persist the boolean in the summary/reuse-input schema and add a regression that invokes the helper on the emitted summary, rather than asserting only against failures.json.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 58b0ec9e50fd.

Label changes

Label changes:

  • add P2: This repairs a bounded maintainer QA failure, but one supported rerun workflow still recreates it.
  • add merge-risk: 🚨 automation: Merging the final head would leave summary-based Docker rerun automation unable to retain the new package intent.

Label justifications:

  • P2: This repairs a bounded maintainer QA failure, but one supported rerun workflow still recreates it.
  • merge-risk: 🚨 automation: Merging the final head would leave summary-based Docker rerun automation unable to retain the new package intent.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (linked_artifact): Linked hosted CI before/after evidence and focused AWS Crabbox execution convincingly demonstrate the package improvement, although they do not cover the source-proven summary-rerun defect.
  • proof: sufficient: Contributor real behavior proof is sufficient. Linked hosted CI before/after evidence and focused AWS Crabbox execution convincingly demonstrate the package improvement, although they do not cover the source-proven summary-rerun defect.
Evidence reviewed

PR surface:

Tests +95, Config +21, Other +24. Total +140 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 97 2 +95
Docs 0 0 0 0
Config 3 23 2 +21
Generated 0 0 0 0
Other 6 48 24 +24
Total 18 168 28 +140

What I checked:

  • Current-main package contract: Packaging remains exact-version-only unless the existing --allow-unreleased-changelog option is explicitly enabled. (scripts/package-changelog.mjs:25, 58b0ec9e50fd)
  • Summary payload gap: The final head passes the environment to failure-index generation but writes no unreleased-changelog intent into summary.json. (scripts/test-docker-all.mjs:424, a7d61cc863cd)
  • Supported summary rerun path: The rerun helper accepts summary.json, but reusable workflow inputs are recovered only from top-level JSON state or an existing failure command; ordinary summary failure records do not contain the generated commands written separately to failures.json. (scripts/docker-e2e-rerun.mjs:325, a7d61cc863cd)
  • Regression coverage gap: The added test calls writeRunSummary but checks only the generated failures.json command, not the public rerun helper operating on the emitted summary.json. (test/scripts/docker-all-scheduler.test.ts:205, a7d61cc863cd)
  • Package-contract provenance: The existing safe opt-in originated in the merged related release work. (scripts/package-openclaw-for-docker.mjs:158, c47ceb0f3dcc)
  • Real behavior proof: The PR body provides a failing current-main CI baseline, a passing primary-path CI run, and reports 419 focused AWS Crabbox tests across packaging, restoration, workflow callers, installers, reruns, and Parallels. (a7d61cc863cd)

Likely related people:

  • vincentkoc: Authored the merged release commit that added the explicit Unreleased-note packaging behavior and primary QA use. (role: introduced package contract; confidence: high; commits: c47ceb0f3dcc; files: scripts/package-changelog.mjs, scripts/package-openclaw-for-docker.mjs, .github/workflows/ci.yml)
  • haruaiclone-droid: GitHub commit metadata and current blame associate this contributor with the Docker summary and rerun surfaces, although the broad squashed commit title is unrelated to those files. (role: recent area contributor; confidence: medium; commits: c2301d8e53e1; files: scripts/test-docker-all.mjs, scripts/docker-e2e-rerun.mjs)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete-oai

Copy link
Copy Markdown
Contributor

Land-ready proof for exact head a7d61cc863cd9d61ca43c93f2cc0e5d0a9c0e2aa:

  • Hosted exact-head CI run 29141158486 passed, including both QA Smoke profiles.
  • AWS Crabbox focused proof passed: 9 files / 419 tests across changelog safety, Docker scheduling and reruns, reusable callers, installers, and Parallels packaging.
  • oxfmt --check passed for all 15 formatter-supported changed files.
  • git diff origin/main --check and changed-script syntax checks passed.
  • Fresh whole-branch autoreview against origin/main returned clean with confidence 0.88.
  • Native review artifacts validate with zero findings and recommend READY FOR /prepare-pr.

The PR reuses #104162's false-by-default unreleased-changelog contract for the remaining current-tree QA callers. Release and package-acceptance callers remain strict; exact version notes still take precedence; undersized exact sections still fail; interrupted QA restoration is covered.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 11, 2026
…w#104186)

* fix(ci): package unreleased QA builds safely

* style(ci): format QA changelog intent
vincentkoc pushed a commit that referenced this pull request Jul 11, 2026
* fix(ci): package unreleased QA builds safely

* style(ci): format QA changelog intent

(cherry picked from commit 6e9e64b)
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…w#104186)

* fix(ci): package unreleased QA builds safely

* style(ci): format QA changelog intent

(cherry picked from commit 6e9e64b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants