Skip to content

ROX-12975: Extend Enricher to accept NodeInventory as a second parameter#4492

Merged
vikin91 merged 19 commits intomasterfrom
piotr/ROX-12975-change-enrichNode
Feb 2, 2023
Merged

ROX-12975: Extend Enricher to accept NodeInventory as a second parameter#4492
vikin91 merged 19 commits intomasterfrom
piotr/ROX-12975-change-enrichNode

Conversation

@vikin91
Copy link
Contributor

@vikin91 vikin91 commented Jan 20, 2023

Description

This PR was created as a split from #4430 in order to make the change easier to review.
This PR is meant to replace #3940.

Here, we change the call to EnrichNode, so that it accepts two parameters: Node and NodeInventory. This allows us to keep Node and NodeInventory proto messages separate.

⚠️ This implementation is prone to a race condition between the central pipelines: Node and NodeInventory. This issue will be resolved in a follow-up (ROX-14484).

Checklist

  • Investigated and inspected CI test results
  • Unit test and regression tests added (to some degree...)

Not apply

  • Evaluated and added CHANGELOG entry if required
  • Determined and documented upgrade steps
  • Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

Testing Performed

Screenshot 2023-01-18 at 18 05 45

Screenshot 2023-01-27 at 15 11 00

@openshift-ci
Copy link

openshift-ci bot commented Jan 20, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@vikin91
Copy link
Contributor Author

vikin91 commented Jan 20, 2023

@github-actions github-actions bot added area/central ci-all-qa-tests Tells CI to run all API tests (not just BAT). labels Jan 20, 2023
@vikin91 vikin91 changed the title Extend Enricher to accept NodeInventory as a second parameter ROX-12975: Extend Enricher to accept NodeInventory as a second parameter Jan 20, 2023
@ghost
Copy link

ghost commented Jan 20, 2023

Images are ready for the commit at 1684b59.

To use with deploy scripts, first export MAIN_IMAGE_TAG=3.73.x-646-g1684b59a61.

Base automatically changed from piotr/ROX-13722-readd-node-id to master January 23, 2023 09:09
@vikin91 vikin91 force-pushed the piotr/ROX-12975-change-enrichNode branch from caff3f5 to f8ade4b Compare January 23, 2023 09:44
@vikin91 vikin91 marked this pull request as ready for review January 23, 2023 17:05
@vikin91 vikin91 force-pushed the piotr/ROX-12975-change-enrichNode branch from f8ade4b to bef41cf Compare January 24, 2023 09:38
@vikin91 vikin91 requested a review from Maddosaurus January 24, 2023 15:53
@vikin91 vikin91 force-pushed the piotr/ROX-12975-change-enrichNode branch 2 times, most recently from 9114872 to 6e5392c Compare January 26, 2023 08:50
@vikin91
Copy link
Contributor Author

vikin91 commented Jan 31, 2023

/retest

@vikin91 vikin91 requested a review from fredrb January 31, 2023 12:44
@vikin91 vikin91 requested review from jschnath and lvalerom January 31, 2023 12:44
@vikin91
Copy link
Contributor Author

vikin91 commented Jan 31, 2023

The CI failure ImageScanningTest: Image scanning test to check if scan time is not null is unrelated - see test-failures Slack channel and the ticket: https://issues.redhat.com/browse/ROX-14619

@openshift-ci
Copy link

openshift-ci bot commented Feb 1, 2023

@vikin91: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/gke-postgres-upgrade-tests 23806e7 link false /test gke-postgres-upgrade-tests

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@Maddosaurus Maddosaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the sync review!

@vikin91
Copy link
Contributor Author

vikin91 commented Feb 1, 2023

Will rebase this again after reading the suggestions to do so on Slack.

@vikin91 vikin91 force-pushed the piotr/ROX-12975-change-enrichNode branch from 23806e7 to 4e20215 Compare February 1, 2023 12:55
Copy link
Contributor

@lvalerom lvalerom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me, just one comment regarding the go.mod.

go.mod Outdated
github.com/stackrox/helmtest v0.0.0-20220930104945-c4a3c15e834a
github.com/stackrox/k8s-istio-cve-pusher v0.0.0-20210422200002-d89f671ac4f5
github.com/stackrox/scanner v0.0.0-20230120022619-96107ead11f0
github.com/stackrox/scanner v0.0.0-20230127183442-f5521e941607
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw you reverted the tag in SCANNER_VERSION should this also be reverted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will double check that. My intention was to take both from master for now.

We need to bump the SCANNER_VERSION after this stackrox/scanner#1065 is merged, but let's not make too many steps at once.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did go get -u github.com/stackrox/scanner@master and go mod tidy and committed 1684b59. Will deploy it locally again to test that thoroughly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good locally. I will let the CI finish its checks

@vikin91
Copy link
Contributor Author

vikin91 commented Feb 1, 2023

CI looks good so far! I will merge this on Thu in the morning to land it after the cut of RC.1 for 3.74 happens.

@vikin91 vikin91 merged commit f7b5a78 into master Feb 2, 2023
@vikin91 vikin91 deleted the piotr/ROX-12975-change-enrichNode branch February 2, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/central area/postgres ci-all-qa-tests Tells CI to run all API tests (not just BAT).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants