Coder Social home page Coder Social logo

Comments (17)

bobsongplus avatar bobsongplus commented on June 14, 2024 1

@duduainankai
It seems like that above all command-line can pass except start
can test by this command:
sudo RUST_BACKTRACE=1 YOUKI_LOG_LEVEL=debug RUNTIME=/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki ./validation/kill/kill.t

from youki.

kmpzr avatar kmpzr commented on June 14, 2024

@utam0k, I'll take create.

from youki.

fabjan avatar fabjan commented on June 14, 2024

@utam0k all the tasks described (except create) link to https://github.com/opencontainers/runtime-tools/tree/master/validation/kill

from youki.

utam0k avatar utam0k commented on June 14, 2024

@0xdco Sure, I assigned it to you.

@utam0k, I'll take create.

from youki.

utam0k avatar utam0k commented on June 14, 2024

Ops, I fixed them. Thanks for pointing that out!

@utam0k all the tasks described (except create) link to https://github.com/opencontainers/runtime-tools/tree/master/validation/kill

from youki.

fabjan avatar fabjan commented on June 14, 2024

NP! I was actually checking the issues out to see if there was something I could maybe help out with but it seems to me that working on things like this without Linux is not the way to go.

from youki.

utam0k avatar utam0k commented on June 14, 2024

Thanks for your interest. You can develop by using the devcontainer.
However, I haven't used it recently, so it may take a while to build if it's not well maintained. If you want, you can challenge it.

NP! I was actually checking the issues out to see if there was something I could maybe help out with but it seems to me that working on things like this without Linux is not the way to go.

from youki.

bobsongplus avatar bobsongplus commented on June 14, 2024

@utam0k i would like take start, may be will take some time to fix this

from youki.

utam0k avatar utam0k commented on June 14, 2024

@TinySong Thanks for your interest. I assigned start to you. I'm looking forward to your PR :)

from youki.

lizhemingi avatar lizhemingi commented on June 14, 2024

@utam0k I would like to have a try on delete if you don't mind. And it seems that state and kill already pass the test.

from youki.

bobsongplus avatar bobsongplus commented on June 14, 2024

@utam0k
there have some problem and don't know how to deal with
according to GitHub Actions file , we use integration_test.sh to integrate test, the script just run runtime-tools to command-line test. but according to the status of the project https://github.com/opencontainers/runtime-tools, the project looks like it hasn't been maintained for a long time, is it necessary to use runtime-tools as youki runtime standard.
for example:
when run start integration test,always failed. After read deeply the runtime-tools code, the line setting process=nil, the create always failed, just return, cannot execute next step, then start cannot pass the integration test

the integration test log:

sudo RUST_BACKTRACE=1 YOUKI_LOG_LEVEL=debug RUNTIME=/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki ./validation/start/start.t
TAP version 13
/tmp/ocitest062540744/config.json
/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki start
ok 1 - start` operation MUST generate an error if it is not provided the container ID
  ---
  {
    "error": "exit status 2",
    "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/runtime.md#start",
    "stderr": "error: The following required arguments were not provided:\n    \u003ccontainer-id\u003e\n\nUSAGE:\n    youki start \u003ccontainer-id\u003e\n\nFor more information try --help\n"
  }
  ...
/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki start 0cfaf3a8-94c8-4878-83a0-20eee16388b0
ok 2 - attempting to `start` a container that is not `created` MUST generate an error
  ---
  {
    "error": "exit status 1",
    "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/runtime.md#start",
    "stderr": "Error: 0cfaf3a8-94c8-4878-83a0-20eee16388b0 doesn't exists.\n"
  }
  ...
/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki create --bundle /tmp/ocitest062540744 0cfaf3a8-94c8-4878-83a0-20eee16388b0
ok 3 - `process.args` MUST NOT be applied until triggered by the start operation
  ---
  {
    "error": "stat /tmp/ocitest062540744/output: no such file or directory",
    "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/runtime.md#create"
  }
  ...
/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki start 0cfaf3a8-94c8-4878-83a0-20eee16388b0
ok 4 - `start` operation MUST run the user-specified program as specified by `process`
  ---
  {
    "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/runtime.md#start"
  }
  ...
/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki start 0cfaf3a8-94c8-4878-83a0-20eee16388b0
ok 5 - attempting to `start` a container that is not `created` MUST generate an error
  ---
  {
    "error": "exit status 1",
    "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/runtime.md#start",
    "stderr": "[ERROR src/start.rs:28] 2021-06-10T16:35:51.774650795+08:00 0cfaf3a8-94c8-4878-83a0-20eee16388b0 counld not be started because it was Stopped\r\nError: 0cfaf3a8-94c8-4878-83a0-20eee16388b0 counld not be started because it was Stopped\n"
  }
  ...
ok 6 - attempting to `start` a container that is not `created` MUST have no effect on the container
  ---
  {
    "reference": "https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/runtime.md#start"
  }
  ...
 # the below is debug log 
/home/ubuntu/development/rust/youki/target/x86_64-unknown-linux-gnu/debug/youki create --bundle /tmp/ocitest062540744 0cfaf3a8-94c8-4878-83a0-20eee16388b0
# create function exit 
create failed exit status 1
not ok 7 - exit status 1

from youki.

utam0k avatar utam0k commented on June 14, 2024

@TinySong runtime-tools is certainly not very active in maintenance.
So I'm thinking of creating an originan integration test.
However, this will take quite some time to complete. So until then, I will use runtime-tools.
#56

If the tests that are failing still fail when using runc, then give up on this test case.

from youki.

utam0k avatar utam0k commented on June 14, 2024

@utam0k I would like to have a try on delete if you don't mind. And it seems that state and kill already pass the test.

Sure! I assigned you it. For kill and state, can I ask you to give me a PR just to add the test cases?

from youki.

bobsongplus avatar bobsongplus commented on June 14, 2024

@TinySong runtime-tools is certainly not very active in maintenance.
So I'm thinking of creating an originan integration test.
However, this will take quite some time to complete. So until then, I will use runtime-tools.
#56

If the tests that are failing still fail when using runc, then give up on this test case.

@utam0k Yeah,I think we can give up the ‘start’ integration test case , testing runc throw out the same error.

from youki.

lizhemingi avatar lizhemingi commented on June 14, 2024

@utam0k I would like to have a try on delete if you don't mind. And it seems that state and kill already pass the test.

Sure! I assigned you it. For kill and state, can I ask you to give me a PR just to add the test cases?

Sure.

And I think @TinySong is right, all test cases except start pass the test already.

I think we may add them all.

image

from youki.

utam0k avatar utam0k commented on June 14, 2024

@TinySong Thanks for checking the runc case. hmm... Since I have no choice, can I ask you to write down in integration_test.sh that the test does not pass even with runc?

@utam0k Yeah,I think we can give up the ‘start’ integration test case , testing runc throw out the same error.

from youki.

utam0k avatar utam0k commented on June 14, 2024

@utam0k I would like to have a try on delete if you don't mind. And it seems that state and kill already pass the test.

Sure! I assigned you it. For kill and state, can I ask you to give me a PR just to add the test cases?

Sure.

And I think @TinySong is right, all test cases except start pass the test already.

I think we may add them all.

image

Thank you for your research. Now, I would like to close this issue by stating that only start does not pass the test.

from youki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.