refactor: remove unused getInitPid function#534
refactor: remove unused getInitPid function#534cmainas merged 2 commits intourunc-dev:main-pr534from
Conversation
👷 Deploy Preview for urunc processing.
|
✅ Deploy Preview for urunc canceled.
|
|
I'm using MacOs, so not able to use the |
On mac it is possible to use However, AFAIK a Linux environment is required, so the number of make targets that can run on macOS will likely be limited, To set up a development environment on mac, I guess you might need a virtual machine running Linux. Maybe @cmainas knows if there are any limitations when running it in a VM, or if there is a better approach. |
98db186 to
7e3296d
Compare
|
Thanks for replying @IrvingMg
This part of code blocks running make file commands on macos |
|
Thank you @praffq-dev for the removal of the dead code. The changes look good, just add yourself here https://github.com/urunc-dev/urunc/blob/main/.github/contributors.yaml and make sure to rebase over the main branch. Thank you @praffq-dev for the review and the instructions about mac. Unfortunately, I have no experience with mac and no access to such OS. For a dev environment I would also recommend a Linux VM. There are multiple projects that offer quick and easy steps to create a small Linux VM in any OS. Also, there should be no implications with using nested virtualization. However, in the case of linting and unit testing I think there will be no problem running them in non-Linux environments and especially mac. The linting takes place through a container, so if you are able to spawn any Linux container in mac, you should be able to execute this. Also, unit testing is based on Go which again I think will not have any issues. It is clear though that the current format of the Makefile will not successfully detect the architecture and fail under mac. We could update the Makefile to not fail if it can not detect the architecture. After all, the architecture is necessary only for building which I doubt it will work well outside Linux due to the requirement of cgo. As a quick workaround, simply remove the line of Makefile you pasted and you can |
Remove the dead getInitPid function and its associated tests. Fixes: urunc-dev#466 Signed-off-by: praffq-dev <praffq.dev@gmail.com>
7e3296d to
b14daf2
Compare
|
Thanks @cmainas for the explaination, I've made the required changes. Will try out to run a VM and try to the run the lint and test commands |
|
Hello @praffq-dev , the commit linter complains because it assumes your name as a spelling mistake. You can squash the commits or add the unknown words here: https://github.com/urunc-dev/urunc/blob/main/.github/linters/urunc-dict.txt
It is ok for a PR with dead code elimination, but in general please try to test locally your changes. |
Signed-off-by: praffq-dev <praffq.dev@gmail.com>
b14daf2 to
4934116
Compare
|
Thanks for reviewing, I updated the PR with the required changes |
PR: #534 Signed-off-by: praffq-dev <praffq.dev@gmail.com> Reviewed-by: Irving Mondragón <mirvingr@gmail.com>
PR: #534 Signed-off-by: praffq-dev <praffq.dev@gmail.com> Reviewed-by: Irving Mondragón <mirvingr@gmail.com>
Remove the dead getInitPid function and its associated tests.
Fixes: #466
Description
Remove the unused
getInitPidfunction and related testcasesRelated issues
How was this tested?
getInitPidis not used anywhere, so I rechecked that and remove the code and it's respective test caseLLM usage
No
Checklist
make lint).make test_ctr,make test_nerdctl,make test_docker,make test_crictl).