Skip to content

fix: disable yarn install scripts now that better-sqlite3 uses prebuilds - #5405

Merged
jonkoops merged 1 commit into
redhat-developer:mainfrom
jonkoops:fix/yarn-install-scripts
Sep 15, 2026
Merged

jonkoops merged 1 commit into
redhat-developer:mainfrom
jonkoops:fix/yarn-install-scripts

Conversation

@jonkoops

Copy link
Copy Markdown
Contributor

better-sqlite3 v13 ships prebuilt binaries, but our Yarn config still ran install scripts on every dependency. That triggered node-gyp compiles during yarn install, which failed in cluster-free E2E on Playwright images that do not have make or gcc, even though no compile was needed.

#5226 added enableScripts: true when upgrading to Yarn 4.17, because better-sqlite3 v12 still needed a local compile. #5359 bumped better-sqlite3 to v13 with prebuilds, which left that setting forcing unnecessary compiles.

This PR turns install scripts off again (Yarn 4’s default), removes the root dependenciesMeta and the node-gyp devDependency from #546, drops the e2e-tests postinstall Playwright hook (removing the need for --mode=skip-build on CI), and updates docs to describe the manual yarn playwright install chromium step and drop the node-gyp toolchain prerequisites. Stale comments in CI and SonarCloud config are trimmed to match.

RHDHBUGS-3725

Comment thread .github/workflows/e2e-tests-lint.yaml Fixed
@codecov

codecov Bot commented Sep 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.69%. Comparing base (93a56d3) to head (474315d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5405      +/-   ##
==========================================
- Coverage   63.68%   59.69%   -3.99%     
==========================================
  Files         121      109      -12     
  Lines        2288     2062     -226     
  Branches      527      501      -26     
==========================================
- Hits         1457     1231     -226     
  Misses        829      829              
  Partials        2        2              
Flag Coverage Δ
rhdh 59.69% <ø> (-3.99%) ⬇️
Components Coverage Δ
Backend plugins ∅ <ø> (∅)
Backend app 69.69% <ø> (ø)
Frontend app 58.82% <ø> (ø)
Plugin utils ∅ <ø> (∅)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93a56d3...474315d. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

Comment thread docs/e2e-tests/README.md
@github-actions

Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@github-actions

Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@jonkoops
jonkoops force-pushed the fix/yarn-install-scripts branch from 48b5c4d to 313b785 Compare September 15, 2026 12:09
better-sqlite3 was bumped to v13, which ships prebuilt binaries for common
platforms. We still had enableScripts: true from the Yarn 4.17 upgrade, when
v12 needed a local compile. That made Yarn run node-gyp during install even
when a prebuild was available, which broke cluster-free E2E on images without
a C++ toolchain.

Drop enableScripts and the related root workarounds (dependenciesMeta,
node-gyp devDependency). Remove the e2e-tests postinstall Playwright hook
(removing the need for --mode=skip-build on CI) in favor of documenting an
explicit playwright install step. Update stale comments and docs to match,
including the e2e README prerequisites anchor after the postinstall heading
was removed.

Ref: RHDHBUGS-3725
Signed-off-by: Jon Koops <jonkoops@gmail.com>
@jonkoops
jonkoops force-pushed the fix/yarn-install-scripts branch from 313b785 to 474315d Compare September 15, 2026 12:10
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

The container image build workflow finished with status: cancelled.

@github-actions

Copy link
Copy Markdown
Contributor

Image was built and published successfully. It is available at:

@openshift-ci openshift-ci Bot added the lgtm label Sep 15, 2026
@jonkoops
jonkoops merged commit da71952 into redhat-developer:main Sep 15, 2026
31 checks passed
@jonkoops
jonkoops deleted the fix/yarn-install-scripts branch September 15, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants