Skip to content

ci(nodejs): remove nodejs build dependency on extensions - #1523

Open
adsharma wants to merge 1 commit into
mainfrom
remove-nodejs-extension-dep
Open

adsharma wants to merge 1 commit into
mainfrom
remove-nodejs-extension-dep

Conversation

@adsharma

@adsharma adsharma commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Audit

In build-and-deploy.yml, build-nodejs had needs: [build-precompiled-bin, build-linux-builder-image, build-extension], which transitively gated deploy-nodejs (needs build-nodejs) on extensions being built.

The edge dates to 3e3352b (ci: fix nodejs test failures, May 2026): LBUG_EXTENSION_VERSION had just been bumped to 0.17.0 before that version was published to the remote extension repo, so INSTALL JSON in the Node.js tests failed. The fix served locally-built extensions from a loopback HTTP server (useBuiltExtensions input + local server steps in nodejs-workflow.yml).

Why it is no longer necessary

  • The current extension version (0.22.0) returns HTTP 200 on the official repo (https://extension.ladybugdb.com/v0.22.0/.../json/libjson.lbug_extension), so plain INSTALL JSON resolves remotely.
  • The workflow already runs this path on every manual dispatch with the default skipExtensions=true (useBuiltExtensions=false), so the local-server workaround is exercised as unnecessary in practice.
  • nodejs-workflow.yml is only called from build-and-deploy.yml, so its useBuiltExtensions input has no other consumers.

Change

  • build-and-deploy.yml: drop build-extension from build-nodejs needs, drop the needs.build-extension.result clause from its if, drop the useBuiltExtensions passthrough. deploy-nodejs is now decoupled from extension builds.
  • nodejs-workflow.yml: remove the now-unused useBuiltExtensions inputs and the four gated steps (download extensions artifact, start local repo server on Linux/macOS and Windows, sed rewrite of test_data_type.js).

The standalone build-extension job and the skipExtensions input are untouched; extension builds still run independently.

The build-nodejs job (and transitively deploy-nodejs) depended on
build-extension, a workaround from 3e3352b (May 2026) when
LBUG_EXTENSION_VERSION 0.17.0 wasn't yet published to the remote
extension repo, so Node.js tests served locally-built extensions over
a loopback HTTP server.

The current extension version (0.22.0) is available on
https://extension.ladybugdb.com, so plain INSTALL JSON in the Node.js
tests resolves remotely. The workflow already exercised this path on
every manual dispatch with the default skipExtensions=true
(useBuiltExtensions=false), so the local-server machinery is dead
weight. Drop the needs edge, the useBuiltExtensions input, and the
local extension-server test steps.

This branch has not been deployed

No deployments
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