Uh oh!
There was an error while loading. Please reload this page.
runtimetest:add platform validation - #15
Conversation
Signed-off-by: Wang Qilin <qilin.wang@huawei.com>
wking
commented
Jan 25, 2016
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#2252 has |
mrunalp
commented
Jan 26, 2016
@wangkirin Yep, agree with @wking |
zenlint
commented
Jan 30, 2016
@wking +1. |
mrunalp
commented
Mar 8, 2016
@wangkirin Could you please update the PR per the feedback? |
wangkirin
commented
Mar 8, 2016
@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 |
wking
commented
Mar 8, 2016
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
Mashimiao
commented
Mar 1, 2017
The SPEC says "The runtime MUST generate an error if it does not support the specified os." |
wking
commented
Mar 1, 2017
via email
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 |
Mashimiao
commented
Mar 6, 2017
@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.jsonwith runtime parameters to determine if the test passSigned-off-by: Wang Qilin qilin.wang@huawei.com