Skip to content

Conversation

Stringy
Copy link
Contributor

@Stringy Stringy commented May 29, 2025

Description

There is a discrepancy between the flows shown on the network graph and the flows used by the network baseline API, where aggregation has not occurred and therefore it may report duplicate baseline results for a given deployment.

This PR applies the same aggregation method to the baseline API in order to match the graph view.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Test changes should be sufficient; otherwise manual testing on OCP cluster has confirmed that aggregation is successful and matches the network graph API

Copy link

openshift-ci bot commented May 29, 2025

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

@rhacs-bot
Copy link
Contributor

rhacs-bot commented May 29, 2025

Images are ready for the commit at 673344e.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.9.x-263-g673344e902.

Copy link

codecov bot commented May 29, 2025

Codecov Report

❌ Patch coverage is 92.59259% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.69%. Comparing base (8d4e182) to head (673344e).
⚠️ Report is 77 commits behind head on master.

Files with missing lines Patch % Lines
central/networkbaseline/manager/manager_impl.go 92.59% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #15491   +/-   ##
=======================================
  Coverage   48.68%   48.69%           
=======================================
  Files        2602     2602           
  Lines      191486   191501   +15     
=======================================
+ Hits        93234    93253   +19     
+ Misses      90922    90918    -4     
  Partials     7330     7330           
Flag Coverage Δ
go-unit-tests 48.69% <92.59%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Stringy Stringy force-pushed the giles/fix-baseline-external-flows-aggregation branch 2 times, most recently from 5ed3a0f to 6233050 Compare July 2, 2025 09:03
Copy link
Contributor

Caution

There are some errors in your PipelineRun template.

PipelineRun Error
quay-proxy no kind "ImageDigestMirrorSet" is registered for version "config.openshift.io/v1" in scheme "k8s.io/client-go/kubernetes/scheme/register.go:83"

@Stringy Stringy force-pushed the giles/fix-baseline-external-flows-aggregation branch from 5720584 to 673344e Compare July 15, 2025 13:23
@Stringy
Copy link
Contributor Author

Stringy commented Jul 15, 2025

/test all

@Stringy Stringy marked this pull request as ready for review July 16, 2025 13:57
Copy link
Contributor

@ovalenti ovalenti left a comment

Choose a reason for hiding this comment

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

LGTM !

@Stringy Stringy merged commit fa5a01e into master Jul 28, 2025
92 checks passed
@Stringy Stringy deleted the giles/fix-baseline-external-flows-aggregation branch July 28, 2025 11:39
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.

3 participants