CI: Introduce CI for libs to Improve code quality and reduce noises

Currently, runtime-rs related code within the libs directory lacks
sufficient CI protection. We frequently observe the following issues:
- Inconsistent Code Formatting: Code that has not been properly
  formatted
is merged.
- Failing Tests: Code with failing unit or integration tests is merged.

To address these issues, we need introduce stricter CI checks for the
libs directory. This may specifically include:
- Code Formatting Checks
- Mandatory Test Runs

Fixes #11512

Signed-off-by: alex.lyn <alex.lyn@antgroup.com>
This commit is contained in:
alex.lyn 2025-07-24 14:55:07 +08:00 committed by Alex Lyn
parent 0f19465b3a
commit b23d094928
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,10 @@ jobs:
path: src/runtime-rs path: src/runtime-rs
needs: needs:
- rust - rust
- name: libs
path: src/libs
needs:
- rust
- name: agent-ctl - name: agent-ctl
path: src/tools/agent-ctl path: src/tools/agent-ctl
needs: needs:

View File

@ -136,6 +136,7 @@ mapping:
- Static checks / build-checks / check (make check, dragonball, src/dragonball, rust) - Static checks / build-checks / check (make check, dragonball, src/dragonball, rust)
- Static checks / build-checks / check (make check, genpolicy, src/tools/genpolicy, rust, protobuf-compiler) - Static checks / build-checks / check (make check, genpolicy, src/tools/genpolicy, rust, protobuf-compiler)
- Static checks / build-checks / check (make check, kata-ctl, src/tools/kata-ctl, rust) - Static checks / build-checks / check (make check, kata-ctl, src/tools/kata-ctl, rust)
- Static checks / build-checks / check (make check, libs, src/libs, rust)
- Static checks / build-checks / check (make check, runtime-rs, src/runtime-rs, rust) - Static checks / build-checks / check (make check, runtime-rs, src/runtime-rs, rust)
- Static checks / build-checks / check (make check, runtime, src/runtime, golang, XDG_RUNTIME_DIR) - Static checks / build-checks / check (make check, runtime, src/runtime, golang, XDG_RUNTIME_DIR)
- Static checks / build-checks / check (make check, trace-forwarder, src/tools/trace-forwarder, rust) - Static checks / build-checks / check (make check, trace-forwarder, src/tools/trace-forwarder, rust)
@ -144,6 +145,7 @@ mapping:
- Static checks / build-checks / check (make test, dragonball, src/dragonball, rust) - Static checks / build-checks / check (make test, dragonball, src/dragonball, rust)
- Static checks / build-checks / check (make test, genpolicy, src/tools/genpolicy, rust, protobuf-compiler) - Static checks / build-checks / check (make test, genpolicy, src/tools/genpolicy, rust, protobuf-compiler)
- Static checks / build-checks / check (make test, kata-ctl, src/tools/kata-ctl, rust) - Static checks / build-checks / check (make test, kata-ctl, src/tools/kata-ctl, rust)
- Static checks / build-checks / check (make test, libs, src/libs, rust)
- Static checks / build-checks / check (make test, runtime-rs, src/runtime-rs, rust) - Static checks / build-checks / check (make test, runtime-rs, src/runtime-rs, rust)
- Static checks / build-checks / check (make test, runtime, src/runtime, golang, XDG_RUNTIME_DIR) - Static checks / build-checks / check (make test, runtime, src/runtime, golang, XDG_RUNTIME_DIR)
- Static checks / build-checks / check (make test, trace-forwarder, src/tools/trace-forwarder, rust) - Static checks / build-checks / check (make test, trace-forwarder, src/tools/trace-forwarder, rust)
@ -160,6 +162,7 @@ mapping:
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, dragonball, src/dragonball, rust) - Static checks / build-checks / check (sudo -E PATH="$PATH" make test, dragonball, src/dragonball, rust)
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, genpolicy, src/tools/genpolicy, rust, protobuf-compiler) - Static checks / build-checks / check (sudo -E PATH="$PATH" make test, genpolicy, src/tools/genpolicy, rust, protobuf-compiler)
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, kata-ctl, src/tools/kata-ctl, rust) - Static checks / build-checks / check (sudo -E PATH="$PATH" make test, kata-ctl, src/tools/kata-ctl, rust)
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, libs, src/libs, rust)
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, runtime-rs, src/runtime-rs, rust) - Static checks / build-checks / check (sudo -E PATH="$PATH" make test, runtime-rs, src/runtime-rs, rust)
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, runtime, src/runtime, golang, XDG_RUNTIME_DIR) - Static checks / build-checks / check (sudo -E PATH="$PATH" make test, runtime, src/runtime, golang, XDG_RUNTIME_DIR)
- Static checks / build-checks / check (sudo -E PATH="$PATH" make test, trace-forwarder, src/tools/trace-forwarder, rust) - Static checks / build-checks / check (sudo -E PATH="$PATH" make test, trace-forwarder, src/tools/trace-forwarder, rust)