Commit Graph

625 Commits

Author SHA1 Message Date
Bryant Biggs cd5a84d8a7 chore: Update tonic dependencies to latest 2025-06-11 00:07:41 +00:00
jokemanfire cea5523d20 fix(update): avoid update resource while the process is zombie
add a check in zombie init process

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-05-09 01:42:38 +00:00
dependabot[bot] 9b5727a28e build(deps): bump bnjbvr/cargo-machete from 0.7.0 to 0.8.0
Bumps [bnjbvr/cargo-machete](https://github.com/bnjbvr/cargo-machete) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/bnjbvr/cargo-machete/releases)
- [Changelog](https://github.com/bnjbvr/cargo-machete/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bnjbvr/cargo-machete/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: bnjbvr/cargo-machete
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-08 19:31:20 +00:00
Maksym Pavlenko 4744fafcd6 Remove Ubuntu 20.04 runners and bump containerd versions
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-05-08 18:40:27 +00:00
jokemanfire 3b42040af2 optimize: use a more user-friendly interface in ttrpc
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-04-15 03:41:12 +00:00
Jorge Prendes 8130e41939 remove dependency on signal-hook-tokio
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-04-10 16:27:31 +00:00
Jorge Prendes 2a098d9f69 re-enable cargo machete
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-04-09 14:23:23 +00:00
Jorge Prendes 59589df20f ping grcov version
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-04-09 13:47:06 +00:00
Jorge Prendes 18fcf6bc52 remove unused dependencies
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:27:16 +00:00
Jorge Prendes 277a1a65f2 use windows activation strategy on async code
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:27:16 +00:00
Jorge Prendes df1b8f05dd use windows activation strategy on all platforms in sync code
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:27:16 +00:00
Jorge Prendes 35980682a6 Consolidate the NamedPipeLogger into the FifoLogger
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 23:25:14 +00:00
Jorge Prendes f4fdddc5e5 ignore advisory with proc-macro-error and protobuf to unblock CI
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
2025-03-19 22:54:47 +00:00
Jiaxiao (mossaka) Zhou 8fba47295b feat(shim): make logger module public
Downstream shim implementations can use this module to setup logger by
themselves. One example is runwasi's container process needs to use this
module to setup logger so that logs from the container process can be
populated to containerd.

Signed-off-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com>
2025-02-25 23:17:12 +00:00
jokemanfire 906bd0f466 Update publisher err deal.
ref:https://github.com/containerd/ttrpc-rust/pull/259
Due to the inclusion of the latest version of ttrpc, this part of the code has been updated

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-02-24 18:54:43 +00:00
Kyle Kosic 559cc576b9 add experimental flag 2025-02-20 18:20:05 +00:00
Phil Estes 9d9cc05d18 Add example using the transfer service
Pulls an image to the containerd content store

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-02-01 06:55:48 +00:00
Maksym Pavlenko 822a065062 Add Jiaxiao Zhou to reviewers
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-31 19:05:21 +00:00
Maksym Pavlenko cd926a2d89
Remove --files-with-diff
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-31 11:09:25 -08:00
Maksym Pavlenko ae876e3a33
Fix shim dependency
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 12:06:30 -08:00
Maksym Pavlenko c016d933ed
Bump shim crate version to 0.8
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 11:59:33 -08:00
Maksym Pavlenko 2d999680fe
Fix publish?
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 11:49:18 -08:00
Maksym Pavlenko ef81c80577
Bump shim protos to 0.8
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-28 11:30:33 -08:00
jokemanfire e5db241747 Fix complie error
1. update ttrpc version
2. proto3 syntax  "To define 'optional' fields in Proto3, simply remove the 'optional' label, as fields are 'optional' by default"
3. compile fail because "required for the cast from `Arc<std::boxed::Box<<T as asynchronous::Shim>::T>>` to `Arc<(dyn containerd_shim_protos::shim_async::Task + std::marker::Send + Sync + 'static)>`"

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-01-27 20:08:08 +00:00
dependabot[bot] 26b783c0b4 build(deps): bump actions/stale from 9.0.0 to 9.1.0
Bumps [actions/stale](https://github.com/actions/stale) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](28ca103628...5bef64f19d)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 20:06:30 +00:00
jokemanfire 545b0e789e Add info for get runtimeinfo
This interface is already in goshim.
Use containerd-shim-runc-v2 --info.

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-01-27 20:06:12 +00:00
Maksym Pavlenko 1f1e38dc06
Bump client to 0.8.0
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-16 13:46:49 -08:00
Phil Estes 2d47d88f13 Add a to_any helper in the containerd client crate
This provides a solution to Any->type matching that happens on
the containerd Go-based server side where the Any types in prost
use typeurl as defined in the protobuf spec and the server side
is matching on the fullname property of the type.

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-01-16 20:44:01 +00:00
Maksym Pavlenko 2cb7714e76 Fix CI
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-16 19:22:09 +00:00
jokemanfire a345bac309 OpenOptions in blocking mod is a time-consuming operation.
1.Prevent it from blocking a tokio thread. Change sync to async.
2.Add pipe unit test which I found error in Pipe new.

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2025-01-09 02:57:43 +00:00
Phil Estes 41d2ded16a Add mod for transfer types
Makes the transfer types available in containerd_client imports

Signed-off-by: Phil Estes <estesp@amazon.com>
2025-01-08 19:50:56 +00:00
Maksym Pavlenko 95964f295e
Bump containerd client to 0.7.0
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-08 10:43:30 -08:00
Maksym Pavlenko ce05587af2 Update vendor
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-08 18:31:52 +00:00
Maksym Pavlenko 30be44066a Update vendor script
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-08 18:31:52 +00:00
Maksym Pavlenko 68bff89898
Don't check labels
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-07 16:05:15 -08:00
Maksym Pavlenko 92e4b8b4fb Update Go version
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-06 22:04:41 +00:00
Maksym Pavlenko c3620b7602 Update containerd versions for Linux integration
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-06 22:04:41 +00:00
Maksym Pavlenko 4c66dd46f5
Add stale bot
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-06 12:55:10 -08:00
Maksym Pavlenko bd5dd4fcbd
Remove unused fields
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-06 10:58:59 -08:00
jokemanfire feac9615e1 Fix publisher debug info is not correct
In the containerd log, it is not print correct
2025-01-06 10:52:50 -08:00
Maksym Pavlenko 314e384806
Fix unused fields on MacOS
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2025-01-06 10:50:54 -08:00
Maksym Pavlenko 346b82e673
Fix unused fields on Mac
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2024-12-31 15:09:58 -08:00
Maksym Pavlenko e27decc5ba
Fix clippy
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2024-12-31 14:33:44 -08:00
Maksym Pavlenko 6ad0a6e0d3
Bump Rust version to 1.81
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
2024-12-31 14:33:32 -08:00
jokemanfire 4133fef4c0 Optimize: refine the scope of the lock.
We can discard the lock before reporting the incident.According to Goshim.

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2024-12-15 03:25:25 +00:00
jokemanfire a0f3bf13a1 Attemp to resolve fifo open deadlock
If long time no read side , may cause shim lock.
Avoid fifo open deadlock,use a easy timeout

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2024-12-13 20:04:38 +00:00
jokemanfire 6526c28e87 Prevent the init process from exiting and continuing with start
No need to wait for runc return an error

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2024-12-13 20:02:50 +00:00
jokemanfire eef8806871 fix process exit (not init) event not publish
1.add get id interface in process
2.add process event publish in service

Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
2024-12-11 20:10:31 +00:00
fengwei0328 1e17e1495e The task_dir successfully cleans when the file is absent
Signed-off-by: fengwei0328 <feng.wei8@zte.com.cn>
2024-12-06 18:54:16 +00:00
zzzzzzzzzy9 7051e312f5 if init is paused/pausing, exec state should be the same 2024-12-04 21:57:39 +00:00