Skip to content

[Bug]: After upgrading to 2.1.0, building of docker images fails with Node.js exception #625

@kagw95

Description

@kagw95

Summary

In the repository, PRs from dependabot are merged, upgrading qubership-workflow-hub to 2.1.0.
After it, build-and-push steps (building of docker images) fail with the following exception:

Run netcracker/qubership-workflow-hub/actions/metadata-action@753d4a726521a14cafe4d7ff9fe46a1fe1250d74
file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:11
  throw Error('Dynamic require of "' + x + '" is not supported');
        ^

Error: Dynamic require of "net" is not supported
    at file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:11:9
    at node_modules/tunnel/lib/tunnel.js (file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:37:15)
    at __require2 (file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:14:50)
    at node_modules/tunnel/index.js (file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:266:22)
    at __require2 (file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:14:50)
    at file:///home/runner/work/_actions/netcracker/qubership-workflow-hub/753d4a726521a14cafe4d7ff9fe46a1fe1250d74/actions/metadata-action/dist/index.js:19494:22
    at ModuleJob.run (node:internal/modules/esm/module_job:430:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:661:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5)

Node.js v24.13.1

Expected Behaviour

Docker images are built successfully.

Actual Behaviour (What actually happened)

Above exception.

Reproduction Steps / Logs

https://github.com/Netcracker/qubership-testing-platform-mia/actions/runs/22889685161/job/66410234933

logs_59981339625.zip

Impact / Severity

No response

Environment

No response

Hypothesis (Optional)

No response

Proposed Fix (Optional)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions