Skip to content

chore(ci): Upgrade lerna to 10.1.1, fix publish retries, re-enable provenance - #12300

Merged
ovr merged 1 commit into
masterfrom
chore/upgrade-lerna-10.1.1
Oct 16, 2026
Merged

ovr merged 1 commit into
masterfrom
chore/upgrade-lerna-10.1.1

Conversation

@ovr

@ovr ovr commented Oct 16, 2026

Copy link
Copy Markdown
Member

The v1.8.7 release (run) published only part of the packages:

  1. Attempt 1 failed on 4 packages (cloud, maven, base-driver, client-react) with sigstore TLOG_CREATE_ENTRY_ERROR (409) an equivalent entry already exists.
  2. Attempts 2–5 all failed with EUNCOMMIT — the failed attempt left gitHead written into every package.json, so nothing after the first failure could publish.

Changes:

  • lerna 10.0.1 → 10.1.1 — upgrades the npm publishing stack (libnpmpublish 11 → 12, sigstore 4 → 5, npm-registry-fetch 20). Lockfile churn is confined to lerna's subtree: no existing lock key resolves to a different version.
  • on_retry_command: git checkout -- . — resets the tree before each retry. lerna publish from-package skips versions already on the registry, so a retry finishes the rest.
  • NPM_CONFIG_PROVENANCE: true — re-enables provenance, disabled in e0ffcda. The false was a no-op on lerna 10 anyway: after the OIDC token exchange it sets provenance = true for public repos, which is why the 409 was a sigstore error.

🤖 Generated with Claude Code

…ovenance

The v1.8.7 npm publish failed half-way: attempt 1 hit sigstore
TLOG_CREATE_ENTRY_ERROR (409) on 4 packages, and every retry then died
with EUNCOMMIT because the failed attempt left gitHead in every
package.json.

- lerna 10.0.1 -> 10.1.1: upgrades the npm publishing stack
  (libnpmpublish 11 -> 12, sigstore 4 -> 5)
- reset the working tree before each retry; `from-package` skips
  versions that are already published
- NPM_CONFIG_PROVENANCE: true. The `false` was a no-op anyway: lerna 10
  force-enables provenance after the OIDC token exchange for public repos

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@claude

claude Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @ovr's task in 1m 42s —— View job


LGTM: 0 high, 0 medium, 0 low. Only non-blocking notes.

Review details
  • Read the diff and .github/workflows/publish.yml
  • Check the retry and provenance changes
  • Check the lockfile churn
  • Review threads
  • Post the review

Verified

  • on_retry_command: git checkout -- . (.github/workflows/publish.yml:90) is safe. Attempt 1 of the failing run got past lerna's EUNCOMMIT check, so yarn build / lerna run build leave tracked files clean. The only thing the reset reverts is what lerna wrote during the publish (gitHead). dist/ is ignored, so the reset keeps it and a retry doesn't need a rebuild. from-package creates no tags or commits, so nothing else needs undoing.
  • Lockfile: I compared the entry headers against origin/master. The removed lines are header rewrites where lerna's old ranges were dropped from a shared entry (for example "@octokit/core@^5", "@octokit/core@^5.2.2" → 5.2.2 and ci-info@^4.0.0, ci-info@^4.1.0 → 4.4.0, the same as before). The new sigstore@^5 / libnpmpublish@12 / npm-registry-fetch@20 / pacote@22 sit next to the old majors that other packages still use. I found no non-lerna key that resolves to a different version.
  • Comment at publish.yml:88-89 is 2 lines and states why the reset is needed, so it fits the comment rules.

Notes (non-blocking)

  • The upgrade probably isn't what stops the 409. As far as I recall, sigstore-js builds its Rekor witness with fetchOnConflict: false (I couldn't confirm this against the 5.x source because npm downloads are blocked in this job). In that case, an internal POST retry that lands after the server already stored the entry still fails with TLOG_CREATE_ENTRY_ERROR (409) on sigstore 5. That's fine now: the outer retry signs again with a new ephemeral key, which creates a different Rekor entry. The retry reset is the change that actually fixes this; the version bump just comes with it.
  • Registry lag on retry (unverified). If a version published in attempt N doesn't appear in the packument yet after the 30s retry_wait_seconds, from-package will try it again and npm will reject it as "cannot publish over previously published version". The next attempt should then skip it, so 5 attempts are likely enough. If a release ends up spending its retries on this, raise retry_wait_seconds.
  • Not tested: CI can't exercise this change; the first real check is the next tagged release.

Review threads

The listing returned 0 of my own threads, so there was nothing to resolve or re-affirm.

@ovr
ovr merged commit 93ba7ee into master Oct 16, 2026
18 checks passed
@ovr
ovr deleted the chore/upgrade-lerna-10.1.1 branch October 16, 2026 18:06
ovr added a commit that referenced this pull request Oct 16, 2026
…ovenance (#12300)

The v1.8.7 npm publish failed half-way: attempt 1 hit sigstore
TLOG_CREATE_ENTRY_ERROR (409) on 4 packages, and every retry then died
with EUNCOMMIT because the failed attempt left gitHead in every
package.json.

- lerna 10.0.1 -> 10.1.1: upgrades the npm publishing stack
  (libnpmpublish 11 -> 12, sigstore 4 -> 5, npm-registry-fetch 20)
- reset the working tree before each retry (`git checkout -- .`);
  `from-package` skips versions that are already published
- NPM_CONFIG_PROVENANCE: true. The `false` was a no-op anyway: lerna 10
  force-enables provenance after the OIDC token exchange for public repos

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.61%. Comparing base (71f9cb7) to head (4898105).
⚠️ Report is 3 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (71f9cb7) and HEAD (4898105). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (71f9cb7) HEAD (4898105)
cubesql 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #12300       +/-   ##
===========================================
- Coverage   85.55%   65.61%   -19.94%     
===========================================
  Files         264      253       -11     
  Lines       92599    21124    -71475     
  Branches        0     4430     +4430     
===========================================
- Hits        79225    13861    -65364     
+ Misses      13374     6583     -6791     
- Partials        0      680      +680     
Flag Coverage Δ
cube-backend 65.61% <ø> (?)
cubesql ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

ovr added a commit that referenced this pull request Oct 16, 2026
…12302)

Fixes the v1.8.8 release failure in "Build other packages".

lerna 10.1.1 (#12300) pulled parse-url 9.2.0 into the root yarn.lock, which
depends on the deprecated stub @types/parse-path@7.1.0 (no index.d.ts). The
vizard apps' tsconfig set no `types`, so tsc auto-included every @types/*
from ancestor node_modules, including the monorepo root, and failed with
TS2688 for 'parse-path'; nx then bailed on 27 dependent packages.

`"types": []` in both vizard apps limits them to their own references;
vite/client is already pulled in via src/vite-env.d.ts.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ovr added a commit that referenced this pull request Oct 23, 2026
…12302)

Fixes the v1.8.8 release failure in "Build other packages".

lerna 10.1.1 (#12300) pulled parse-url 9.2.0 into the root yarn.lock, which
depends on the deprecated stub @types/parse-path@7.1.0 (no index.d.ts). The
vizard apps' tsconfig set no `types`, so tsc auto-included every @types/*
from ancestor node_modules, including the monorepo root, and failed with
TS2688 for 'parse-path'; nx then bailed on 27 dependent packages.

`"types": []` in both vizard apps limits them to their own references;
vite/client is already pulled in via src/vite-env.d.ts.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ovr added a commit that referenced this pull request Oct 23, 2026
…12400)

lerna 10 (#12300) pulled parse-url 9.2.0, which depends on the deprecated stub @types/parse-path@7.1.0 (no index.d.ts). lts/v1.6 sets no compilerOptions.types, so root tsc auto-included it and failed with TS2688, breaking unit and Build & Test :dev on every PR into lts/v1.6.

Pin @types/parse-path to 7.0.3 (last release with real typings) via root resolutions.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ovr added a commit that referenced this pull request Oct 23, 2026
Bump Node.js from 22.22.0 to 22.23.4 in all Docker images (dev, latest, latest-debian-jdk, local, testing-drivers) and .nvmrc on lts/v1.6.

Picks up the Node.js 22.22.2, 22.23.0, 22.23.2 and 22.23.4 security releases (33 CVEs across tls, http/http2, crypto, dns, zlib, brotli and the permission model, including High-severity CVE-2026-21637, CVE-2026-21710, CVE-2026-48618, CVE-2026-48933, CVE-2026-56846, CVE-2026-56848, CVE-2026-58043), plus OpenSSL 3.5.9, undici 6.29.1, c-ares 1.34.9 and NSS 3.131.1.

Also required by lerna 10.1.1 (#12300), whose engines field (^22.22.2) made yarn install --prod fail in the :dev image on 22.22.0.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ovr added a commit that referenced this pull request Nov 9, 2026
…12302)

Fixes the v1.8.8 release failure in "Build other packages".

lerna 10.1.1 (#12300) pulled parse-url 9.2.0 into the root yarn.lock, which
depends on the deprecated stub @types/parse-path@7.1.0 (no index.d.ts). The
vizard apps' tsconfig set no `types`, so tsc auto-included every @types/*
from ancestor node_modules, including the monorepo root, and failed with
TS2688 for 'parse-path'; nx then bailed on 27 dependent packages.

`"types": []` in both vizard apps limits them to their own references;
vite/client is already pulled in via src/vite-env.d.ts.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
(cherry picked from commit b28fcdc)
ovr added a commit that referenced this pull request Nov 9, 2026
…ovenance

Backport of #12300 (with #12400) to lts/v1.4.

- lerna 9.0.7 -> 10.1.1: upgrades the npm publishing stack (libnpmpublish,
  sigstore, npm-registry-fetch). lerna 10 requires Node ^22.22.2, which the
  Docker images on this branch now use (22.23.4).
- NPM publish keeps retrying, but resets the working tree before each retry
  (`on_retry_command: git checkout -- .`, as on master): a failed attempt
  leaves gitHead in every package.json, which fails the next attempt with
  EUNCOMMIT; `from-package` skips versions that are already published.
- NPM_CONFIG_PROVENANCE: true (the `false` was a no-op with lerna 10, which
  force-enables provenance after the OIDC token exchange for public repos).
- Pin @types/parse-path to 7.0.3 (#12400): lerna 10 pulls in
  @types/parse-path 7.1.0, a stub without typings, which breaks `yarn tsc`
  with TS2688.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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

⌂ Proxy