Repository navigation
Description
Describe the bug
Desktop validation fails when the checked-in frontend and native operation manifests retain an old OpenAPI SHA-256. The lint failure skips installer construction and acceptance tests, but the unconditional artifact upload then reports a second error about missing files.
Both attempts of this run fail at the same contract check. Retrying this commit does not resolve the failure.
Steps to reproduce
- Check out
0867144ceed7e78910d1745df66ce72ca1a05ce0. - Install the pinned Desktop dependencies with
pnpm --dir desktop install --frozen-lockfile. - Run
pnpm --dir desktop generate:checkorpnpm --dir desktop lint.
Expected behavior
All checked-in Desktop contract outputs should match openapi/powercontext.yaml. The regular contract checks should detect a stale frontend or native contract identity before it reaches the Windows packaging workflow.
When an earlier validation step fails before producing artifacts, the upload step should preserve the original failure without adding a misleading missing-files error. Successful builds should still reject missing artifacts.
Actual behavior
The first failure is:
Error: Contract drift: ui/src/generated/operations.ts
The current normalized OpenAPI SHA-256 is c4571e4bd59833451e3091ee604e836d185643b0b0d9fa08dceb8eea43060cbf, while both manifests retain 7e1c301bf7f2ac51781280959efd0b2d92511ddeadee8314ba1683d956c93cc7:
desktop/ui/src/generated/operations.tsdesktop/src-tauri/src/transport/operations.json
Installer construction and smoke testing are skipped. The upload step uses if: always() with if-no-files-found: error, so it also fails because neither the installer nor the acceptance reports were created.
A previous run also failed on generated-contract drift in both attempts: https://github.com/oceanbase/powercontext/actions/runs/37881095166. These reproduced failures are deterministic; they do not establish the cause of every reported intermittent failure.
Environment
- Commit:
0867144ceed7e78910d1745df66ce72ca1a05ce0 - Workflow:
.github/workflows/desktop.yml,windowsjob - Runner:
windows-2025 - Node:
24.14.1 - pnpm:
11.13.1 - The same contract mismatch was reproduced locally on Linux.
Are you willing to submit a PR to fix this bug?
Yes. The fix regenerates both manifests, adds a contract identity regression check to the regular Python contract suite, and keeps artifact uploads strict on successful jobs while warning on empty uploads after an earlier failure.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
E2ern1ty commentedon Oct 14, 2026
Hi maintainers, I'd like to work on this issue.
I confirmed on current
master(666b043a) that both manifests still retain the stale hash7e1c301b…, and the last change toopenapi/powercontext.yamllanded in #1933 (0867144c) — the contract outputs were not regenerated with it. Plan:pnpm --dir desktop generate:checkpasses again.if-no-files-founderror, while successful builds still fail on missing artifacts.generate:checkandlint.fix(desktop): refresh contract hashes and prevent validation drift (#…