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
tests/integration: nits #2592
tests/integration: nits #2592
Conversation
Use update_config like in all the other places. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
0c8b135
to
b068da0
Compare
Interesting... my changes resulting in spec generated by
Indeed, runtime-spec says pids.limit is required: @AkihiroSuda mind to take a look? Or should we NOT run this for the rootless case? |
Shouldn't be required even for rootful, I guess |
OK this is caused by runc/tests/integration/helpers.bash Line 108 in d636ad6
which is indeed an invalid |
With some grep|awk help, found a few places where the containers supposed to be removed in teardown() weren't. To find container names: grep -E '^[[:space:]]*\<_*_*runc\>.*\<(create|run|restore)\>' Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Commit d78ae51 adds this line, but the file is never created. This is probably a leftover from copy-pasting update.bats code. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Fix - whitespace at EOL - empty lines at EOF Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
929526a
to
7efdb52
Compare
The purpose of the spec validation test is to make sure that config.json generated by runc spec is valid. Therefore, it does not depend on ROOTLESS_FEATURES. Taking that into account, and given the fact that this test involves cloning repos and building some code, it makes sense to not run it 4 times for various rootless features. Time it takes to execute spec.bats in rootless mode has improved. Before: real 0m21.286s user 0m37.837s sys 0m5.745s After: real 0m13.162s user 0m30.814s sys 0m4.050s Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Most of whatever is happening in the test cases is already available in setup_hello and teardown_hello. Use these. Rewrite the validation test to be more compact and not dependent on `pwd` value. Also, pinning xeipuuv/gojsonschema to a particular version is no longer required. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
7efdb52
to
30601ef
Compare
@mrunalp @AkihiroSuda PTAL |
Most notable one is spec.bats simplification and speedup.
The rest is nits and minor fixes. Please see individual commits for details.