-
Notifications
You must be signed in to change notification settings - Fork 297
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 high CVEs #280
Fix high CVEs #280
Conversation
34bdf46
to
0414917
Compare
I patched #224 on my local machine and ran integration tests. All tests are still passing after these changes.
|
67a5258
to
96db75a
Compare
96db75a
to
b909b6f
Compare
@nwneisen - I discovered some issues with these changes. We seem to end up with different components using different versions of Practically this is leading to broken tests (although some of the tests also broke just because the required modifications were not done and the CI for the repo does not run unit tests which is why this was possibly not detected). Here is what I see when I run unit tests with the change:
Without these changes(sync to 9c5ee55), I see only one failure which looks like it was caused by #147 and so is pre-existing for changes in this PR
If you are able to repro this, we may want to consider pulling out these changes till the broken tests are fixed so that we do not make even more unit tests non-functional. A lot of these tests provide very valuable coverage. |
Hi @vikramhh, thanks for raising! As a user, can I ask for a clarification please? Are you concerned about just the tests, or do you suspect this has introduced bugs to cri-dockerd itself? |
@matthewtorr-msft - I am concerned that if the tests are broken, it would not have been possible to run the tests to validate this PR. To that end, I am more concerned about the process here - it is of course always possible for a bug to be missed even after tests are run. While I was able to verify the hostport related changes by locally fixing the test and running it, there are other tests that also broke. It is hard to know whether the change introduced bugs without running those tests. |
@vikramhh Thanks for pointing out the unit tests. I've prioritized getting the e2e and integration tests running in the repo again and I've never ran them. I've already been working getting the tests fixed. So far, none of these test's failures has been for something that wasn't corrected in cri-dockerd itself during this PR. Once I have all of the tests passing, I will add a CI step so that the tests run during every PR. |
@nwneisen - just to make sure, this is about tests breaking and not test failures. |
@vikramhh - Correct. No tests have failed. They've only been broken due to method arguments changing or similar |
@nwneisen - tests have broken due to changes in this PR. If tests are broken, they cannot even be run. In that case, it is hard to argue if they have failed or not. The reasons why they are broken are varying - certainly tests broken due to the example I adduced above (different components using different |
@vikramhh Tests have been broken long before this PR because they haven't been getting run. I can guarantee that if you fix the one failing test before this PR, you will be snowballed with more failing tests because some of the tests I'm fixing are for changes that went in months ago. And I can say whether they are failing or not because I've been fixing them and once I fix what made them break, they pass. |
@nwneisen - that is not correct. Only one test was broken before this PR. Rest all broke after this PR. I mentioned that above. However I could be wrong - please share steps to repro these breaks on this repo before this PR - just like I shared above. You may find your energies better directed on fixing these though instead of getting into a back and forth with me on whether something is broken and when - I merely happened to review this PR and am just reporting what I observe. |
@vikramhh I agree and thank you for the review. My point in going back in forth on this is that these tests have been broken for months (years?) and they shouldn't be used as a reason to block other changes. They should be fixed but in their current state, they are most likely worthless. The one failing test is hiding other broken tests. If you fixed the one broken test before this PR, you would see that there are plenty more behind it. |
@nwneisen - I feel you are still missing the point. The one failing test is no longer a single failing test - multiple tests are failing now and we can go back to the state where a single test was failing by just rolling back this PR. If a PR makes more tests fail, it would be good to at least mention that - or better yet not to add to the number of tests that are failing. As I mentioned above, the test that was already failing happened due to #147 which was less than a year ago. While a pre-existing test should not be used to block other changes, it would be good if those "other changes" were tested using unit tests - and furthermore if those "other changes" did not add to the volume of failing tests. I feel it is not too much to expect that of any PR, not just this one. |
This updates some vendor versions in order to fix CVEs. This is the latest version thaat can be used before starting to run into issues with k8s 1.28.
Proposed Changes