-
Notifications
You must be signed in to change notification settings - Fork 0
Description
The job failed due to the following error in the logs:
deno: symbol lookup error: /home/runner/work/pluresdb/pluresdb/node_modules/udx-native/prebuilds/linux-x64/udx-native.node: undefined symbol: uv_interface_addresses
This error indicates a native dependency issue, likely caused by running tests in a Deno environment that expects Node.js-specific modules such as udx-native. The relevant test in legacy/tests/unit/hyperswarm-sync.test.ts also checks for this, and expects a Deno environment to throw errors for Hyperswarm-based sync, which relies on Node.js.
Solution:
- Update the workflow/job definition to skip (ignore) the tests in hyperswarm-sync.test.ts when running in Deno (or any CI using Deno). You can use Deno.test({ignore: true}) for these tests, or conditionally run them only in Node.js environments.
- Alternatively, adjust the dependencies: Ensure udx-native and related modules are not required or imported during Deno CI runs.
Code suggestion: In your test file, wrap Hyperswarm-dependent tests as ignored in Deno:
Deno.test({
name: "GunDB.enableSync - throws error in Deno environment",
ignore: true, // set this to true to skip in Deno CI
async fn() {
// ... test code ...
},
});And for CI, set an environment variable to skip these tests, or split Node.js and Deno workflows.
This will allow your job to succeed by avoiding tests and imports that can never work in the Deno runner context.