-
Notifications
You must be signed in to change notification settings - Fork 72
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
[MAINTENANCE] Move functionality from libs to the testsuite repo where meaningful #2219
Comments
lgtm ! it would defacto fix the lib version mismatches We might also consider removing unused or useless code and it would be great to remove the subprocesses as much as we can (see kubectl as a good example where API is rather used). |
This has been started already in cnf-testsuite/kubectl_client#17 and cnf-testsuite/helm#6. These PRs were started as part of #2199 but since I had the chance to go through all the code anyway I also deleted much of the unused / useless stuff and tried to clean the rest as much as possible. Unfortunately these PRs are quite big and there is a lot to review. |
I think we should discuss the strategy a bit more: I propose that we move all cnf-testsuite org shards to the main repo without exception. There is really no reason not to, as over half of the shards are inter-connected and those that are not (tar, find, git, ...) could likely be replaced by an external shard in the future (or just moved to
|
Refs: #2219 - Migrates release_manager shard to main testsuite project. Signed-off-by: svteb <[email protected]>
Refs: #2219 - Migrates tar shard to main testsuite project. - Additionally migrates/removes the find shard, the Find module only has one method and it is only used in tar spec tests. I've thus decided to move it into tar_spec.cr, this change can be reversed in the future if necessary. - Tar spec tests are intentionally not runnable, as there is currently a conflict between the lib and src/modules (duplicate declarations). Signed-off-by: svteb <[email protected]>
Refs: #2219 - Migrates git shard to main testsuite project. - Flattens out the directory structure. - Some of the deleted utils files might be necessary, `require` statements will be resolved in later commits, if that is the case. Signed-off-by: svteb <[email protected]>
Refs: #2219 - Migrates release_manager shard to main testsuite project. Signed-off-by: svteb <[email protected]>
Refs: #2219 - Migrates kernel_introspection shard to main testsuite project. Signed-off-by: svteb <[email protected]>
Refs: #2219 - Migrates docker_client shard to main testsuite project. - Flattens out the directory structure. Signed-off-by: svteb <[email protected]>
Currently, testsuite functionality uses set of crystal repos:
In many cases, the functionality inside them is quite testsuite-specific and not really universally usable, or does not contain enough of meaningful logic/functionality that would justify a separate library for it.
Moving the functionality to the testsuite repo would bring benefits:
Actions:
The text was updated successfully, but these errors were encountered: