Skip to content

Fix the 0.9.0 release validation gate failure on main (baseline 43bd2d72d2e69337df42ec6b6abec7113d9229ed). #3363

Closed

Description

@propr-dev

Fix the 0.9.0 release validation gate failure on main (baseline 43bd2d7).

A clean lockfile install and test:prepare succeed, but the release workflow's required command npm run lint --workspaces --if-present -- --max-warnings 0 fails at packages/core/src/agents/impl/utils/usageTrackingWrapper.ts:341:8: executeWithUsageTracking has 5 parameters (max-params maximum 4). Refactor the options/call sites cleanly without relaxing lint rules or changing usage accounting, cancellation, return values, or execution behavior. Run full affected-workspace lint and targeted usage tracking/agent tests. Check the current upstream main first so already-fixed issues aren't duplicated.

Create one focused PR for release gate fixes, ready for independent review. Do not auto-merge, publish, tag, deploy, or modify visual styling. The orchestrator is running all 942 non-live test units and browser/image checks; any additional confirmed failures will be supplied as follow-ups to this same task/PR to keep release fixes grouped.

Separate operational findings, not authorization to weaken protections: the remote test repository's incremental reindex fails with 'Worktree disk pressure: admission reserve unavailable; data retained', and GitHub reports zero registered self-hosted runners while the nightly full suite and Docker release jobs require [self-hosted,linux,x64,propr]. Do not lower storage safety thresholds, delete worktrees, or change runner routing speculatively. Report if disk pressure prevents this task from running.


Submitted by @integry through ProPR.

Additional confirmed release-harness failure from independent validation

On the clean 43bd2d7 candidate, all five production images built successfully. Running APP_TAG=propr-release-check/app:0.9.0 LAUNCHER_TAG=propr-release-check/launcher:0.9.0 scripts/smoke-test-sqlite-startup.sh as a normal uid 1000 user against rootful Docker encounters cleanup failure: rm: cannot remove /tmp/propr-sqlite-smoke-local-.../blank-1/data/web-push: Permission denied. The API creates a root-owned protected web-push directory inside the harness bind mount. cleanup() currently uses host rm -rf, which cannot traverse it. This is independent of the initial 45-second startup timeout under a heavily loaded host; do not inflate defaults to hide product failures.

Fix ownership-safe cleanup for this harness, and inspect scripts/smoke-test-images.sh for the same issue. Follow the existing integration-test-root helpers' pattern of verifying exact root ownership and limiting a cleanup container to that root. Never use broad deletion or weaken production web-push directory permissions. Preserve cleanup failure reporting and add a targeted regression for root-owned protected children, with an integration smoke if possible. Keep this with the lint fix in the same PR.

Other observed failures are currently environment-related and should not be fixed speculatively: this host has old glibc, missing matching Playwright browsers, and browser host-network requests can fail with ERR_NETWORK_CHANGED while Docker creates/removes networks. Validation has moved to Ubuntu 24.04 containers and a dedicated browser network. A few long desktop fixtures hit 180-second deadlines under contention and will be rerun separately.

SQLite failure-path reproduction (same candidate)

With the supported SQLITE_STARTUP_TIMEOUT_SECONDS=180 override for this busy validation host, all three blank startups and the existing/upgraded database startup PASS. The genuine corrupt-migration case then fails the harness with launcher did not report the genuine migration failure, even though the immediately printed launcher logs contain Database migration phase failed. Inspect the docker logs ... | grep -Fq ... check under set -o pipefail: early grep exit can make the upstream Docker process fail with SIGPIPE. Capture then inspect complete logs (or otherwise consume input without this false-negative), with a regression reproducing enough output after the match. Keep the assertion that no DB consumer starts after migration failure.

The actual launcher error is also obscured: Database migration phase failed: [WARN tini (7)] Tini is not running as PID 1 and isn't registered as a child subreaper. Migration runs use Docker --init while the app already has a tini ENTRYPOINT, and migrationFailure selects only the first stderr line. Preserve process reaping and bounded safe diagnostics while making an actual migration failure actionable rather than reporting only an unrelated init warning. Do not expose secrets or raw unlimited container output. Both sync and async migration paths should retain equivalent behavior.

Image smoke passed independently with free ports: STACK=propr-release090-smoke2 API_PORT=24400 UI_PORT=24401 DOCS_PORT=24402 APP_TAG=propr-release-check/app:0.9.0 UI_TAG=propr-release-check/ui:0.9.0 DOCS_TAG=propr-release-check/docs:0.9.0 AGENT_TAG=propr-release-check/agent:0.9.0 LAUNCHER_TAG=propr-release-check/launcher:0.9.0 EXPECTED_VERSION=0.9.0 scripts/smoke-test-images.sh.

Independent final-check evidence, 2026-10-28

Validated baseline: 43bd2d72d2e69337df42ec6b6abec7113d9229ed. This is baseline evidence, not sign-off on the eventual fix commit.

  • Hosted full suite: 942/942 distinct test units passed, all four shards, native Electron and docs jobs successful. Downloaded shard summaries confirm every unit occurs exactly once.
  • Dedicated integration suite: 312 passed, 2 skipped across ten files. One file needed a rerun with the worktree's Git metadata correctly mounted; scoped live GitHub App credential cases remain skipped.
  • Focused functional browser coverage: 134 passed across 24 specs. 121 passed initially; all 13 failures passed with unchanged assertions/timeouts after reducing workers and removing local contention. Broad visual/viewport sweeps were intentionally not pursued.
  • Clean dependency install, build/test preparation, root/workspace typechecks, OpenAPI/client contract checks, production UI/docs builds, release metadata verification, runtime/desktop packaging audits passed. Required core zero-warning lint still needs the fix above.
  • All five candidate Docker images built locally; image smoke passed (native SQLite/sharp, launcher, API/daemon/worker/UI/docs, compatibility and assets). SQLite blank startup 3/3 and existing-database upgrade passed; corrupt-migration diagnostics/assertion and cleanup need the grouped fixes above.
  • Actual packed [email protected] installed and ran version/help checks under Node 22 and 24. npm collision preflight passed. No v0.9.0 GitHub tag, npm version, or 0.9.0 manifest for app/UI/docs/agent/launcher currently exists.
  • Live API E2E: 20/21 passed. Incremental indexing remains blocked by the remote worker's Worktree disk pressure: admission reserve unavailable; data retained. Live slow provider/planning cases were not enabled. Do not describe this as a completely passing live E2E suite.
  • No physical microphone/OS push delivery checks or production desktop signing/publication performed. Desktop remains a separate release-candidate track; production desktop environments are not configured. Docs install reports low/moderate development-tool advisories, with no high/critical findings.

Remaining release gates / handoff

  1. Produce this grouped fix PR. Independent reviewer must inspect the diff, rerun zero-warning lint and affected tests, rebuild app/launcher and rerun the SQLite smoke as a normal host user against rootful Docker, then merge only after validation/CI pass.
  2. Restore an eligible [self-hosted, linux, x64, propr] GitHub runner: repository runner API currently returns zero runners, while Docker build/smoke/push and latest promotion require one. Hosted validation does not resolve this publishing blocker.
  3. Restore remote worktree admission capacity without deleting retained task data or weakening reserve protection; rerun live incremental indexing and confirm the ProPR fix job can complete.
  4. Verify the npm trusted-publisher mapping for integry/propr, workflow docker-images.yml, and Docker Hub publishing permissions. Docker Hub secret names exist, but read-only validation does not prove write authorization; npm OIDC mapping was not verified.
  5. Pin the final merged SHA and repeat release metadata/artifact checks. Only after explicit publication approval, create/push annotated v0.9.0 at that SHA. The tag workflow validates, builds/smokes/pushes versioned images, publishes the smoke-tested CLI with provenance, creates the GitHub release, then promotes Docker latest. Manual workflow dispatch also publishes and is not a dry run.

No release/tag/publish/deployment has been performed by the independent checker. Validation logs and packed CLI are retained under /tmp/propr-release-090/ on the validation host, including validation-summary.json and hosted shard artifacts. The checker will independently validate the eventual fix before merging; this evidence does not authorize auto-merge by ProPR.

Activity

  1. propr-dev commented on Oct 28, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3363/claude-opus-5-5-fix-the-0-9-0-release-val-20261028-1630-eyj
    • Base Branch: main
    • Worktree: issue-3363-20261028-1630-claude-opus-5-5-eyj

    🔍 Track Task Execution

  2. propr-dev commented on Oct 28, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3363/claude-opus-5-5-fix-the-0-9-0-release-val-20261028-1640-dgt
    • Base Branch: main
    • Worktree: issue-3363-20261028-1640-claude-opus-5-5-dgt

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions