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 envtests with FlowCollector deletion #557

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

jotak
Copy link
Member

@jotak jotak commented Feb 2, 2024

There was is timing issue with FlowCollector taking more time than the test timeout to be deleted. One option could have been to increase the timeout, but here we're simply checking that the DeletionTimestamp field is set, which means the resource has been marked for deletion.

Another issue found while testing, was the eBPF agent potentially calling status.CheckDaemonSetProgress with a nil parameter, which triggered an error. Adding nil-checks to StatusManager functions.

@jotak
Copy link
Member Author

jotak commented Feb 2, 2024

this time, I think I've done it... damn test!

Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (5d91297) 57.87% compared to head (3333219) 57.80%.
Report is 1 commits behind head on main.

❗ Current head 3333219 differs from pull request most recent head 8d4e831. Consider uploading reports for the commit 8d4e831 to get more accurate results

Files Patch % Lines
pkg/manager/status/status_manager.go 0.00% 7 Missing and 5 partials ⚠️
pkg/test/envtest.go 84.21% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #557      +/-   ##
==========================================
- Coverage   57.87%   57.80%   -0.07%     
==========================================
  Files          73       73              
  Lines        9543     9563      +20     
==========================================
+ Hits         5523     5528       +5     
- Misses       3684     3694      +10     
- Partials      336      341       +5     
Flag Coverage Δ
unittests 57.80% <51.61%> (-0.07%) ⬇️

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.

Copy link
Contributor

@jpinsonneau jpinsonneau left a comment

Choose a reason for hiding this comment

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

Let's give a try in the CI. Code looks good and tests are passing locally, thanks !

Copy link

openshift-ci bot commented Feb 5, 2024

New changes are detected. LGTM label has been removed.

There was is timing issue with FlowCollector taking more time than the
test timeout to be deleted. One option could have been to increase the
timeout, but here we're simply checking that the DeletionTimestamp field
is set, which means the resource has been marked for deletion.

Another issue found while testing, was the eBPF agent potentially
calling `status.CheckDaemonSetProgress` with a nil parameter, which
triggered an error. Adding nil-checks to StatusManager functions.
@jotak
Copy link
Member Author

jotak commented Feb 5, 2024

/approve

Copy link

openshift-ci bot commented Feb 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jotak

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 approved label Feb 5, 2024
@jotak jotak merged commit 906286f into netobserv:main Feb 5, 2024
8 of 9 checks passed
@jotak jotak deleted the fix-flaky branch February 8, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants