-
Notifications
You must be signed in to change notification settings - Fork 141
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
runtimetest:add platform validation #15
Conversation
Signed-off-by: Wang Qilin <qilin.wang@huawei.com>
On Mon, Jan 25, 2016 at 03:25:46AM -0800, Wang Qilin wrote:
It looks like this test (as of 7be5036) is raising an error if the When passed a config specifying a different platform (e.g. an amd64 Although neither 1 nor the inflight opencontainers/runtime-spec#225 2 has |
@wangkirin Yep, agree with @wking |
@wking +1. |
@wangkirin Could you please update the PR per the feedback? |
@wking @mrunalp @zenlinTechnofreak Sorry for being late ! Firtst, When passed a config specifying a platform different from the Second, If we allow the container begin to run even the platform specified in the config.json is different from the runtime( like current And I also agree with @wking , we should have further definition in specs, may be not only in the platform-specific-configuration section , but also in the lifecycle section. So I suggest pending this PR |
On Tue, Mar 08, 2016 at 05:13:36AM -0800, Wang Qilin wrote:
+1 to this. There are a number of places where the runtime can die However, the spec doesn't currently get into how errors are exposed at
|
…releases-docs Add governance and releases docs
The SPEC says "The runtime MUST generate an error if it does not support the specified os." |
On Tue, Feb 28, 2017 at 06:54:59PM -0800, Ma Shimiao wrote:
The SPEC says "The runtime MUST generate an error if it does not
support the specified os." If os or arch doesn't match we expect in
configuration and platform validation is executed, then we can
confirm the runtime did not generate an error as expected.
I still [1] think it's better to handle this in the validation suite
(e.g. #326) and not in runtimetest.
As it stands with 7be5036, runtimetest would error if an x86 config
ran on an amd64 host, but depending on the host kernel, and amd64 host
may be capable of running 386 bundles as well. And x32 bundles, if
someone were to add an x32 entry to our arch list (there does not seem
to be a GOARCH for x32 [2]). So strict equality seems like an overly
specific arch check.
[1]: #15 (comment)
[2]: https://golang.org/doc/install/source#environment
|
@wking Agree with you, putting platform validation into the validation suite will be better. |
add platform validation function in runtimetest
compare user defined in
config.json
with runtime parameters to determine if the test passSigned-off-by: Wang Qilin qilin.wang@huawei.com