1
0
mirror of https://github.com/containers/youki synced 2024-09-19 18:37:40 +02:00
Commit Graph

40 Commits

Author SHA1 Message Date
Jorge Prendes
bdd4f5c674 Add rustfmt.toml to standardize formatting
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2024-05-15 14:59:06 +01:00
Yashodhan
601df9ecd3
Fix cgroups determination in exec implementation (#2720)
* Set cgroups path for tenant containers from main container

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Ignore new_user_ns for creating cgroups path

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Remove user_ns param completely

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Add tests in podman rootless for exec

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Fix add_task implementation for cgroups v2 and systemd

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* minor refactor in tenant builder

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Add unit test for systemd add_task function

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Fix task addition to properly add tasks via dbus api

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* Fix cross cotainers for tests running

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2024-04-27 21:49:58 +09:00
Yashodhan Joshi
9097a56b05 Add test-threads=1 to coverage CI and feature-test 2024-02-20 21:35:01 +05:30
Yashodhan
53adffe43a
Re enable skipped e2e tests (#2647)
* Add env var check for e2e tests not supported by runc

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* use nix to get domain name

* Extract the runc check into a function

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2024-01-23 20:36:04 +09:00
Toru Komatsu
464344923f
Name the test tools contest (#2486)
* Name the test tools `contest`

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Address the feedbacks

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix a build error

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix a workflow

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Address the feedbacks

Signed-off-by: utam0k <k0ma@utam0k.jp>

---------

Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-01-12 14:28:47 +05:30
Jorge Prendes
60dfbaa0d4
Update doc with cross-rs and musl builds (#2621)
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2024-01-11 20:39:29 +09:00
Jorge Prendes
ff79c54968
(feat) add support for musl using cross-rs (#2536)
* add cross configuration for musl

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* use cargo.sh wapper in build.sh

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* make tests build with musl

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* add targets to run musl tests

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* Use cargo.sh wrapper and cross in CI

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* Update scripts/cargo.sh

Co-Authored-By: adrianalin <pop.adrian61@gmail.com>
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* Use glibc as cross default target

---------

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Co-authored-by: adrianalin <pop.adrian61@gmail.com>
2023-12-21 11:50:03 +00:00
Jorge Prendes
6bd1281bc4
Simplify release workflow (#2541)
* simplify release workflow

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

* Update doc-updating-script to reflect new tar structure

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>

---------

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2023-12-16 11:01:06 +09:00
cuisongliu
ac20fc302e
docs(main): support arm64 release docs (#2510)
* docs(main): support arm64 release docs

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* docs(main): support arm64 release docs

Signed-off-by: cuisongliu <cuisongliu@qq.com>

* docs(main): support arm64 release docs

Signed-off-by: cuisongliu <cuisongliu@qq.com>

---------

Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-11-26 12:58:09 +09:00
Jorge Prendes
3cdc7510b2
restore name of workflow steps
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2023-11-15 22:13:43 +00:00
cuisongliu
d0515ff231 fix(main): support arm64 release youki
Signed-off-by: cuisongliu <cuisongliu@qq.com>
2023-11-14 00:27:18 +08:00
Yashodhan
80f1f36ae9
Refactor test dir structure (#2421)
* Move individual rust-oci-tests components in the tests dir

We can use several things from test_framework and even integration_test
for additional tests such as podman rootless and wasm tests

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix scripts and docs for the new dir structure

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2023-10-10 21:00:02 +09:00
yihuaf
5cb6e6f62b Fix musl test function not parametered correctly
The musl test did not parameter correctly. Remove the hardcode package
and features.

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-11 16:44:31 -07:00
Eric Fang
dfe6ee80bc
turn on musl test in CI (#2069)
* turn musl test in CI

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix a version

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-06-22 20:35:23 +09:00
Eric Fang
f4e7e300e6
Fix the feature test and turn on in CI (#2060)
* reworked the justfile to be explicit with path

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix the feature tests

Signed-off-by: yihuaf <yihuaf@unkies.org>

* add the musl test

Signed-off-by: yihuaf <yihuaf@unkies.org>

* moving all stub into a single dir

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-06-19 21:21:18 +09:00
Eric Fang
ebef6dba09
Introduce a log-level flag. (#2036)
* Implement `--log-level`

In short:

Propose the default log level for release to error
Keep the --debug flag and it sets the log level to debug
Introduce --log-level flag to set the log level
--debug flag will be ignored if --log-level flag is also set.
Keep the default log level for debug build to debug

Signed-off-by: yihuaf <yihuaf@unkies.org>

* minor fix to CI

Signed-off-by: yihuaf <yihuaf@unkies.org>

* move log-level to youki_extend

Signed-off-by: yihuaf <yihuaf@unkies.org>

* remove the workflow_dispatch trigger

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-06-17 21:56:49 +09:00
Eric Fang
3a790dffe9
Using typos-cli to catch typos + fixes for existing typos (#2018)
* adds a typos configuration file

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix all the typos

Signed-off-by: yihuaf <yihuaf@unkies.org>

* add typos to justfile and CI

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-06-08 10:19:17 +05:30
Kris Nóva
bef32e083f
Introduce seccomp feature for libcontainer with musl (#1484)
* Introduce seccomp feature for libcontainer with musl

Signed-off-by: Kris Nóva <kris@nivenly.com>

* remove mystery merge conflict

Signed-off-by: Eric Fang <yihuaf@unkies.org>

---------

Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Eric Fang <yihuaf@unkies.org>
Co-authored-by: Eric Fang <yihuaf@unkies.org>
2023-03-23 10:57:51 -07:00
utam0k
ce403847ae
skip cgroup v2 test of oci-tools
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-12-12 21:58:01 +09:00
Yashodhan Joshi
6becc9af4e Change targets in the makefile 2022-11-30 12:13:03 +05:30
Toru Komatsu
7c2c61e66d
Merge pull request #1347 from YJDoc2/fix_create_no_bin_test
Fix TestContainerNoBinaryExists test, by making create behaviour similar to runc
2022-11-28 21:28:43 +09:00
Yashodhan Joshi
ccf92b39f2 Add unit tests, refactor functions as per review
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2022-11-28 11:43:46 +05:30
Uchio Kondo
4f7d556153 Detect architecture by uname command
Signed-off-by: Uchio Kondo <udzura@udzura.jp>
2022-11-18 20:21:54 +09:00
Silcet
289e71f73d
Included test for the features
Signed-off-by: Silcet <camorga1@gmail.com>
2022-11-17 17:41:50 +01:00
Yashodhan Joshi
12ff81e423 Skip misc_props test in integration tests
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2022-11-17 20:16:43 +05:30
Manabu Ori
73c3542027 Fix whitespaces: replace TABs to SPACEs
Signed-off-by: Manabu Ori <manabu.ori@gmail.com>
2022-08-31 23:48:44 +09:00
Manabu Ori
9996250470 build.sh: add -f option for feature flags
Signed-off-by: Manabu Ori <manabu.ori@gmail.com>
2022-08-26 22:32:19 +09:00
Tony Duan
6e8f869bf3
chore: a separate target directory for runtimetest
building static-linked runtimetest requires additional RUSTFLAGS env
var. Unfortunately, the additional env var invalids the build cache,
leading cargo rebuilding everytime.

See https://github.com/rust-lang/cargo/issues/8716

A temporary solution is to build runtimetest in a seperate
`runtimetest-target` directory.

Signed-off-by: Tony Duan <tony84727@gmail.com>
2022-06-14 23:32:49 +08:00
utam0k
0758953fd7
Remove the build dependency from some tests.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-05-09 21:10:14 +09:00
utam0k
6a98b59026 Convenient use of rust-analyzer and other tools by placing Cargo.toml in the root.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-04-26 12:03:09 +00:00
YJDoc2
f6e41b5d8a
Update the docs for the directory structure changes (#813)
* Update the docs for the directory structure changes
2022-04-13 20:59:52 +02:00
utam0k
3d44b4c0bd
fix conflicts.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-03-18 21:02:29 +09:00
utam0k
1b2d99e48b
fix log control env val not passing properly.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-03-17 22:05:38 +09:00
utam0k
17d7303c26
Make relase and debug optional in scripts/build.rs 2022-03-13 21:43:13 +09:00
utam0k
54bb830b4b
Introduce the root Makefile.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-03-11 22:14:34 +09:00
Yashodhan Joshi
8a8cc294f1 CI fix 2022-02-23 18:04:01 +05:30
Yashodhan Joshi
0ca07cb0a8 Add -eu to scripts 2022-02-19 23:29:10 +05:30
Yashodhan Joshi
cd56e28c04 Fix CI 2022-02-07 15:09:42 +05:30
Yashodhan Joshi
446080fada Move OCI test script into scripts/ 2022-02-06 16:10:54 +05:30
Yashodhan Joshi
082bb12670 Add scripts to build binaries, run rust integration tests and clean up 2022-02-06 16:01:13 +05:30