Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix node-v15 pipeline test failures #8892

Merged

Conversation

andrewballantyne
Copy link
Contributor

https://issues.redhat.com/browse/ODC-5824

Does two things:

  1. Cleans up logs so the pipeline tests run without spewing run-time console logs
  2. Fixes up a couple tests so they can work with node-v15 -- jest.spyOn invokes the method with no arguments and one of our methods was incorrectly trying to test that a try/catch caught errors and mocked a situation where an undefined Pipeline object was being invoked for .metadata.name

Best guess why this is happening is this is somehow in the Node code on how to swallow some errors that jest is creating (maybe in a worker thread?) and thus when upgraded to v15 it exposes this issue instead of hiding it. There is a slack thread of others on the team testing on v14 of node and it passes as it always has -- see the ticket for that thread.

@andrewballantyne andrewballantyne changed the title Fix node-v15 pipeline failures Fix node-v15 pipeline test failures May 11, 2021
@openshift-ci openshift-ci bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label May 11, 2021
@openshift-ci openshift-ci bot added component/dev-console Related to dev-console component/pipelines Related to pipelines-plugin approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 11, 2021
@karthikjeeyar
Copy link
Contributor

Verified on latest node, works as expected without any errors in the output.
/lgtm

@karthikjeeyar
Copy link
Contributor

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, karthikjeeyar

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

The pull request process is described here

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-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 12, 2021
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit d13c6e4 into openshift:master May 12, 2021
@spadgett spadgett added this to the v4.8 milestone May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console component/pipelines Related to pipelines-plugin kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants