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

libcni: always delete the cache on conflist for CNI DEL #1095

Conversation

maiqueb
Copy link
Contributor

@maiqueb maiqueb commented May 27, 2024

This aligns the call with DelNetwork, and allows CRIO tests to bump - [0].

[0] - cri-o/cri-o#8207 (comment)

This aligns the call with `DelNetwork`, and allows CRIO tests to bump -
[0].

[0] - cri-o/cri-o#8207 (comment)

Signed-off-by: Miguel Duarte Barroso <[email protected]>
@coveralls
Copy link

Coverage Status

coverage: 63.596% (-0.01%) from 63.609%
when pulling 6ef5715 on maiqueb:always-attempt-to-cleanup-cache-on-list-delete
into c04330e on containernetworking:main.

if cachedResult != nil {
_ = c.cacheDel(list.Name, rt)
}
_ = c.cacheDel(list.Name, rt)
Copy link

Choose a reason for hiding this comment

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

why should delete if there is no cachedResult?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The alternatives would be to stop checking the results in the cache in the crio tests (since the tests use CNI 0.3.1 ...) or to fix a lot of tests to use CNI version >= 0.4.0 .

This was discussed in the CNI maintainers meeting may 27th 2024, and seemed the simpler way forward, given it is totally innocuous.

Copy link

Choose a reason for hiding this comment

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

if maintainers approve 🤷 ... but it feels weird to change a library because some tests seems to be wrong ...

Copy link

Choose a reason for hiding this comment

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

that seems a fair point

/lgtm

@squeed squeed merged commit cebd7df into containernetworking:main May 28, 2024
5 checks passed
@maiqueb maiqueb deleted the always-attempt-to-cleanup-cache-on-list-delete branch May 28, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants