-
Notifications
You must be signed in to change notification settings - Fork 355
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
Refactor Cond.rs #82
Comments
@YJDoc2 I also thought that this refactoring was necessary. |
Hey I was trying to run integration tests before I make any changes, but I am running into some issues : after solving those, Now I am having problem, where there are errors while running tests :
and then several no such file errors like this :
Can you help me to check this? |
That could be one reason, but I am running Ubuntu 20.04 LTS, same distro as used to run the github action tests, so it should work the same, as action on a PR seem to pass |
Hey, I checked it some more, and found out that
This was in fact expected, and not a failed test.
Is due to the fact that the kernel I am using is not configured with swap limit capabilities, similar to this podman issue : |
@YJDoc2 I tried it in the same environment as yours and it failed not only with youki but also with runc and crun for the same reason. |
Yes, I tried to run it with runc as well yesterday, and that's how I found out there was an issue with my system and not in youki. That is why I have asked in #39 about how we can create a better testing env so that we can reliably run integration tests, waiting for @tsturzl 's reply on that. I think till then I won't do heavy refactoring of this, apart from necessary name changes etc. as currently the only way I can be sure that my changes doesn't break anything is to push a commit and run github action to verify it doesn't break anything. So maybe #39 should have a higher priority before this. |
@YJDoc2 I know it's not a very good move, but how about using |
I think for short term we can do that, but for long term we will need to port all test into rust to merge them into cargo test, and then we can have self contained testing, but I think that will be complex, as well as we will need to keep up with changes in OCI runtime tools. I think opening an issue on OCI tools to see what they have to say on the issue of kernel configuration would be a good start to determine long-term solution plan. What is you opinion on opening an issue ? |
@YJDoc2
I agree that creating an issue is a good idea. Let's try it. However, since it is not within our control, we may not be able to expect much response.
|
I was checking out their issues, and quite a few of them seem to be not responded by the repo. Still, I think it will be worth a try. How about about something along the lines of :
If you want, you can open the issue, otherwise I'd be happy to, let me know. Thanks |
@YJDoc2 |
Opened opencontainers/runtime-tools#721 for this, sorry for the delay 😓 |
Is this still relevant now that the code changed so much? Maybe we can close this now? |
There are no problems. |
As discussed in #14 , we can rename cond to pipe as it is more understandable. If you won't mind, I would like to refactor it and its occurrences. Reason to open new issue is that it is more than just documentation, so didn't want to add it in #14. you're fine with it, assign me this issue.
Another good reason to do this, as the module comment for it indicates it is a
but it is actually related to unix pipes, and the name can cause more confusion later on.
The text was updated successfully, but these errors were encountered: