Re: tests

2018-01-11 Thread Guillaume Perréal

Le 11/01/2018 à 16:44, Laurent Bercot a écrit :

 Oh, definitely, and s6 is already used in numerous Docker containers.
Most people who want to do that use the s6-overlay project:
https://github.com/just-containers/s6-overlay

 Some big companies (Badoo, for instance) rely on s6 to power their
containers, so I think it's a good testimony to the fact that it works :)

I also use it to run my X sessions: it monitors background services and 
applets, as well as some "front-end" applications (browser, mailer, ...) 
that tends to die often.

--
Guillaume.


Re: tests

2018-01-11 Thread SZÉPE Viktor

 Oh, definitely, and s6 is already used in numerous Docker containers.
Most people who want to do that use the s6-overlay project:
https://github.com/just-containers/s6-overlay


Thank you for the link!


 Some big companies (Badoo, for instance) rely on s6 to power their
containers, so I think it's a good testimony to the fact that it works :)


Do they contribute back?



SZÉPE Viktor, honlap üzemeltetés
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498  s...@szepe.net  skype: szepe.viktor
Budapest, III. kerület






Re: tests

2018-01-11 Thread Laurent Bercot

I was thinking about unit test to test your functions,
and building your code and installing it into a Docker container.


 That's the very point: s6 is organized into several small
executables interacting together, so unit tests for functions are
pretty difficult to write. The units that would need testing are
individual executables, so you'd need to come up with a mock
environment to test every executable separately. I'm not sure how
to proceed with this, and have not prioritized it so far because
hand-testing is still manageable for now and I have much more
interesting projects to work on :P



Projects with PID 1 in Docker exist: https://github.com/Yelp/dumb-init


 Oh, definitely, and s6 is already used in numerous Docker containers.
Most people who want to do that use the s6-overlay project:
https://github.com/just-containers/s6-overlay

 Some big companies (Badoo, for instance) rely on s6 to power their
containers, so I think it's a good testimony to the fact that it works 
:)


--
 Laurent



Re: tests

2018-01-11 Thread SZÉPE Viktor

Idézem/Quoting Laurent Bercot :


Are there tests for s6?
Are there plans to reach decent code coverage?


 Hi Viktor,
 Sorry for the delayed answer.
 There are no automated tests at the moment. It is hard to design
both a test infrastructure and tests themselves for such a low-level
project. At the moment I'm testing everything by hand, which takes
time.

 If you want to contribute tests (that don't make the package
dependencies significantly heavier), they will be welcome.


Hi Laurent!

I was thinking about unit test to test your functions,
and building your code and installing it into a Docker container.
Projects with PID 1 in Docker exist: https://github.com/Yelp/dumb-init



SZÉPE Viktor, honlap üzemeltetés
https://github.com/szepeviktor/debian-server-tools/blob/master/CV.md
--
+36-20-4242498  s...@szepe.net  skype: szepe.viktor
Budapest, III. kerület






Re: tests

2018-01-11 Thread Laurent Bercot

Are there tests for s6?
Are there plans to reach decent code coverage?


 Hi Viktor,
 Sorry for the delayed answer.
 There are no automated tests at the moment. It is hard to design
both a test infrastructure and tests themselves for such a low-level
project. At the moment I'm testing everything by hand, which takes
time.

 If you want to contribute tests (that don't make the package
dependencies significantly heavier), they will be welcome.

--
 Laurent