Skip to content

1.23 beta5 - #898

Merged
peter-leonov-ch merged 1 commit into
releasefrom
main
Jun 27, 2026
Merged

1.23 beta5#898
peter-leonov-ch merged 1 commit into
releasefrom
main

Conversation

@peter-leonov-ch

@peter-leonov-ch peter-leonov-ch commented Jun 27, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

## Problem

The `publish: datatype parser` workflow ([failing
run](https://github.com/ClickHouse/clickhouse-js/actions/runs/28300601707/job/83848134306))
fails at the `npm ci` step:

```
sh: 1: cd: can't cd to node_modules/parquet-wasm
npm error command failed
npm error command sh -c cd node_modules/parquet-wasm && npm pkg delete type
```

The job runs `npm ci` with `working-directory:
packages/datatype-parser`. Because that package has no lockfile of its
own, npm resolves to the **root workspace** install, which fires the
root `postinstall`. In that scoped install `parquet-wasm` (a test-only
root devDependency, unrelated to the datatype-parser package) isn't
present, so `cd node_modules/parquet-wasm` exits non-zero and aborts the
whole install — the publish job never reaches its build step.

## Fix

Guard the root `postinstall` so it skips cleanly when `parquet-wasm` is
absent instead of hard-failing:

```json
"postinstall": "cd node_modules/parquet-wasm 2>/dev/null && npm pkg delete type || true",
```

This is harmless for the normal full dev install (dir present → runs as
before) and unblocks any `npm ci` that doesn't pull in `parquet-wasm`,
including this publish workflow.

## Follow-up

The publish workflow dispatches from the protected `release` branch, so
after this merges to `main`, `release` needs to be updated to the new
snapshot before re-dispatching the publish.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 27, 2026 20:34
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@codecov

codecov Bot commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI 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.

Pull request overview

This PR adjusts the root workspace postinstall to avoid failing when parquet-wasm isn’t present, unblocking the publish: datatype parser workflow where npm ci is executed from packages/datatype-parser and does not install root-only devDependencies.

Changes:

  • Make the root postinstall tolerant of missing node_modules/parquet-wasm during scoped installs.

Comment thread package.json
@peter-leonov-ch
peter-leonov-ch merged commit 0d72245 into release Jun 27, 2026
143 checks passed
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.

3 participants