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

Report crun version in minikube version #12027

Closed
andriyDev opened this issue Jul 20, 2021 · 24 comments · Fixed by #12381
Closed

Report crun version in minikube version #12027

andriyDev opened this issue Jul 20, 2021 · 24 comments · Fixed by #12381
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@andriyDev
Copy link
Contributor

andriyDev commented Jul 20, 2021

@andriyDev andriyDev added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/improvement Categorizes issue or PR as related to improving upon a current feature. labels Jul 20, 2021
@aminoxix
Copy link

@andriyDev : Important location link is not working..? 🤔

@andriyDev
Copy link
Contributor Author

@Amino19 Woops! I guess my link extension doesn't work haha, fixed!

@jayesh-srivastava
Copy link
Member

Hi. Is this issue open? Can I work on it?

@aminoxix
Copy link

Hi. Is this issue open? Can I work on it?

@jayesh-srivastava : Hi, Thanks for showing interest.
Pl go through the links, mentioned by @andriyDev, & ones you feel comfortable to get started with, give a shot with PR, after self-assigning yourself, by typing /assign 🙂

@jayesh-srivastava
Copy link
Member

Okay sure. Thank you so much. I am a new contributor here but will try to work on this.

@jayesh-srivastava
Copy link
Member

/assign

@jayesh-srivastava
Copy link
Member

Hi @Amino19 , I have somewhat understood what needs to be done, basically, I'll have to add crun in the list. Just wanted to ask that what will be its value and is that all that I have to do. Your help will be much appreciated : )

@spowelljr spowelljr added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Jul 30, 2021
@spowelljr
Copy link
Member

@jayesh-srivastava crun --version gets you the version for crun. The only other thing that needs to be done is update the test to ensure it's actually being output.

https://github.com/kubernetes/minikube/blob/master/test/integration/functional_test.go#L1983

@afbjorklund
Copy link
Collaborator

afbjorklund commented Aug 4, 2021

Note that crun --version also output some extra junk (beyond version), but fixed in PR #12085

$ crun --version
crun version 0.20.1.5-925d-dirty
commit: 0d42f1109fd73548f44b01b3e84d04a279e99d2e
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +YAJL

The "dirty" thing is some kind of upstream packaging bug, modifying the source before building...

https://build.opensuse.org/package/show/devel:kubic:libcontainers:stable/crun

EDIT: Actually it is showing the commit of the packaging repository: https://gitlab.com/rhcontainerbot/crun

https://gitlab.com/rhcontainerbot/crun/-/commit/925db482ab20e0effd1fdaef1cfb5002019a9b5f (5 commits ahead)

The "commit" shown (for 0.20.1) is from the previous software version (crun 0.20): containers/crun@0d42f11

@ichxxx
Copy link

ichxxx commented Aug 27, 2021

Hello, @jayesh-srivastava . Are you still interested in this issue?

@jayesh-srivastava
Copy link
Member

Hey @spowelljr I have added the crun version. I am facing some issues in updating the tests to output it. I have made a PR without updating the test. Can anyone guide me through how to update the tests?

@spowelljr
Copy link
Member

spowelljr commented Sep 8, 2021

Hi @jayesh-srivastava, to update the test all you need to do is add crun to the list of strings to search for in the output.

https://github.com/kubernetes/minikube/blob/master/test/integration/functional_test.go#L2140

@jayesh-srivastava
Copy link
Member

Hey @spowelljr I have understood and will update the test. Thank you. I already made a PR earlier without updating the test. Should I make a new one?

@spowelljr
Copy link
Member

@jayesh-srivastava You should update the existing PR since it hasn't been merged yet, just commit another change to the same branch and push it again, thanks!

@jayesh-srivastava
Copy link
Member

@spowelljr Gotcha, thanks!

@jayesh-srivastava
Copy link
Member

Hey @spowelljr, made the necessary change and updated the existing PR.

@spowelljr
Copy link
Member

@jayesh-srivastava The change looks good, thanks! Waiting for the tests to finish to make sure they pass.

In the meantime, could you address @medyagh's comment: #12381 (comment)

All he's asking is to run minikube version --components against the master branch and save the output and then do the same thing on your own branch and then put both the outputs into the PR description so we can easily see the difference. You can use my recent PR as an example of what he means #12437.

@jayesh-srivastava
Copy link
Member

@spowelljr Sure will try to address this.

@jayesh-srivastava
Copy link
Member

Hey @spowelljr regarding yesterday's PR, only one test is failing. Can you please address this and tell me what's the issue?

@jayesh-srivastava
Copy link
Member

@spowelljr Attaching a screenshot for your reference:
Screenshot (803)

@spowelljr
Copy link
Member

@jayesh-srivastava minikube has tests that are flakey (fail from time to time), in this case the test that failed is TestFunctional/parallel/MountCmd/any-port which is completely unrelated to anything you changed. So don't worry about the test failure, we're used to it and know to check what exactly failed and ignore it if it's unrelated.

@jayesh-srivastava
Copy link
Member

Oh okay @spowelljr. So will my PR be approved?

@spowelljr
Copy link
Member

Your PR is already approved, it just needs to be merged, I'll merge it now.

@jayesh-srivastava
Copy link
Member

Thanks @spowelljr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/improvement Categorizes issue or PR as related to improving upon a current feature. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
6 participants