Skip to content

fix(desktop): refresh contract hashes and prevent validation drift - #1996

Merged
hidb4ai merged 1 commit into
oceanbase:masterfrom
hidb4ai:codex/fix-desktop-ci-failures
Oct 14, 2026
Merged

hidb4ai merged 1 commit into
oceanbase:masterfrom
hidb4ai:codex/fix-desktop-ci-failures

Conversation

@hidb4ai

@hidb4ai hidb4ai commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

Closes #1995.

Rationale for this change

After an OpenAPI update, Desktop's frontend and native operation manifests still contain the previous contract hash. pnpm lint fails at generate:check, skips packaging, and the unconditional artifact upload then adds a missing-files error. Both attempts of the affected Windows run reproduce the same failure.

What changes are included in this PR?

  • Regenerate the frontend and native operation manifests from the current OpenAPI contract.
  • Add a regression test for both contract identities to make contract-test and the regular Python test suite, using normalized LF content.
  • Include the regeneration command in Desktop contract drift errors.
  • Keep the artifact upload running after failures to preserve available evidence. Empty uploads warn after an earlier failure or cancellation and remain errors when all preceding steps succeeded.

Are there any user-facing changes?

No public API, persisted format, or migration changes. This fixes generated contract identities and CI failure reporting.

How was this change tested?

  • The new regression test failed for both stale manifests before regeneration.
  • python scripts/generate_api.py --check and python scripts/generate_js_operations.py --check passed.
  • python -m pytest -q tests/test_api_contract.py tests/test_js_operations.py tests/test_desktop_contract.py: 55 passed, using the existing virtual environment.
  • Desktop lint, typecheck, test, and build passed with Node 24.14.1 and pnpm 11.13.1; 28 frontend tests passed.
  • prek run -a passed using the existing virtual environment (UV_NO_SYNC=true).
  • git diff --check passed.

Local validation ran on Linux. Windows installer construction and installed-package acceptance require the PR's Windows CI run.

AI usage statement

Implemented and validated with OpenAI Codex (GPT-6).

@oceanbase oceanbase deleted a comment from hidb4ai Oct 14, 2026
@hidb4ai
hidb4ai merged commit 407f31c into oceanbase:master Oct 14, 2026
38 of 40 checks passed
@hidb4ai hidb4ai added the 1.4.0 v1.4.0 release tracking label Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.4.0 v1.4.0 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(desktop): stale contract hashes fail Windows validation

1 participant