Skip to content

Fix CI failures: Update Node.js to 22 and sync Konflux pipelines - #1352

Merged
openshift-merge-bot[bot] merged 7 commits into
openshift-knative:release-v1.17from
Kaustubh-pande:fix-fail-test
Sep 8, 2026
Merged

openshift-merge-bot[bot] merged 7 commits into
openshift-knative:release-v1.17from
Kaustubh-pande:fix-fail-test

Conversation

@Kaustubh-pande

Copy link
Copy Markdown

Summary

Fixes all failing CI checks for PR #1058 by updating Node.js version and synchronizing Konflux pipeline configurations with the latest hack repo templates.

Problem

PR #1058 had three failing checks:

  1. Backstage lint - Node.js version incompatibility
  2. Backstage unit tests - Node.js version incompatibility
  3. Konflux build - Pipeline validation error: invalid input params for task init: missing values for these params which have no default values: [image-url]

Root Causes

Issue 1: Node.js Version Incompatibility

The dependency ts-json-schema-generator@2.9.0 requires Node.js >=22.0.0, but workflows were running on Node 20.18.1.

Issue 2: Outdated Konflux Pipelines

The .tekton/docker-build.yaml pipeline was outdated and had incompatible parameter requirements for the init task. The old pipeline required image-url, rebuild, and skip-checks parameters that are no longer part of the current pipeline specification.

Changes

1. Update Node.js Version

File: backstage/.nvmrc

- 20.18.1
+ 22.11.0

2. Sync Konflux Pipeline

File: .tekton/docker-build.yaml
- Replace outdated pipeline with current version from hack repo (https://github.com/openshift-knative/hack)
- Remove obsolete rebuild parameter
- Remove image-url, rebuild, skip-checks from init task requirements
- Add missing parameters:
  - enable-package-registry-proxy
  - sast-target-dirs
  - source-date-epoch
  - rewrite-timestamp
  - omit-history
- Update task bundle versions to latest:
  - sast-snyk-check-oci-ta: 0.4 → 0.5
  - prefetch-dependencies-oci-ta: 0.2 → 0.10.1
  - apply-tags: updated SHA

3. Add Required Parameter

File: .tekton/kn-backstage-plugins-eventmesh-117-pull-request.yaml
+ - name: enable-cache-proxy
+   value: "false"

…ibility

ts-json-schema-generator@2.9.0 requires Node.js >=22.0.0, updating from 20.18.1
to fix failing lint and unit test workflows.

Fixes: openshift-knative#1058
Replace outdated docker-build.yaml with current version from hack repo.
The old pipeline had init task requiring image-url, rebuild, skip-checks
parameters which caused validation failure. The updated pipeline correctly
only requires enable-cache-proxy for the init task.

Changes:
- Remove rebuild parameter (no longer exists in current pipeline)
- Remove image-url, rebuild, skip-checks from init task
- Add enable-package-registry-proxy parameter
- Add sast-target-dirs parameter
- Add source-date-epoch, rewrite-timestamp, omit-history parameters
- Update task bundle versions to latest

Fixes Konflux error: invalid input params for task init: missing values for
these params which have no default values: [image-url]
The updated docker-build.yaml pipeline's init task requires the
enable-cache-proxy parameter. Adding it with default value 'false'.

This is the correct minimal fix based on hack repo template - no need
for image-url parameter as suggested by other tools.
Updated generated Dockerfiles to use:
- Go 1.26 (from 1.23)
- OpenShift 4.23 (from 4.19)

Generated files:
- openshift/ci-operator/build-image/Dockerfile
- openshift/ci-operator/knative-images/eventmesh/Dockerfile
@openshift-ci
openshift-ci Bot requested review from Cali0707 and matzew September 8, 2026 13:26
@openshift-ci openshift-ci Bot added the approved label Sep 8, 2026
…sion

Pipeline updates:
- Update GO_BUILDER to golang_1.26 in both pull-request and push tasks
- Add enable-cache-proxy parameter to push task (was missing)

Package.json fix:
- Update engines.node from '18 || 20' to '18 || 20 || 22'
- Fixes: 'The engine "node" is incompatible with this module. Expected version "18 || 20". Got "22.11.0"'

This ensures consistency with the generated Dockerfiles which now use Go 1.26.
Changes:
1. Update engines.node from '18 || 20' to '>=18'
   - Allows Node 22 (required by ts-json-schema-generator@2.9.0)
   - Also supports future Node versions

2. Add yarn resolution for @azure/msal-node to ^6.0.0
   - Fixes: '@azure/msal-node@2.6.0: The engine "node" is incompatible
     with this module. Expected version "16|| 18 || 20"'
   - Version 6.0.0 supports Node >=20 (including 22+)

Tested locally with yarn install - no engine compatibility errors.
Problem:
- ts-json-schema-generator@2.9.0 requires Node >=22
- isolated-vm@4.6.0 doesn't compile with Node 22 (V8 API incompatibilities)
- This created a dependency conflict

Solution:
- Revert to Node 20.18.1 (from .nvmrc)
- Add yarn resolution to force ts-json-schema-generator@2.4.0
  - Version 2.4.0 supports Node >=18 (works with Node 20)
  - Avoids isolated-vm compilation issues
  - Satisfies all CI workflow requirements

Tested locally - no Node engine incompatibility errors.
@dsimansk

dsimansk commented Sep 8, 2026

Copy link
Copy Markdown

/approve
/lgtm

@openshift-ci

openshift-ci Bot commented Sep 8, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk, Kaustubh-pande

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 918a8bd into openshift-knative:release-v1.17 Sep 8, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants