mirror of
https://codeberg.org/Toasterson/solstice-ci.git
synced 2026-04-10 13:20:41 +00:00
This commit introduces gRPC-based log streaming between the VM runner (`solstice-runner`) and orchestrator. Key updates include: - Implemented gRPC server in the orchestrator for receiving and processing runner logs. - Added log streaming and job result reporting in the `solstice-runner` client. - Defined `runner.proto` with messages (`LogItem`, `JobEnd`) and the `Runner` service. - Updated orchestrator to accept gRPC settings and start the server. - Modified cloud-init user data to include gRPC endpoint and request ID for runners. - Enhanced message queue logic to handle job results via `publish_job_result`. - Configured `Cross.toml` for cross-compilation of the runner.
31 lines
1 KiB
TOML
31 lines
1 KiB
TOML
[package]
|
|
name = "common"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
miette = { version = "7", features = ["fancy"] }
|
|
thiserror = "1"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
|
|
opentelemetry = { version = "0.26", features = ["trace"] }
|
|
opentelemetry_sdk = { version = "0.26", features = ["rt-tokio"] }
|
|
opentelemetry-otlp = { version = "0.26", features = ["grpc-tonic"] }
|
|
tracing-opentelemetry = "0.27"
|
|
tracing-appender = "0.2"
|
|
atty = "0.2"
|
|
kdl = "4"
|
|
# gRPC/protobuf runtime for Runner API
|
|
tonic = { version = "0.12", features = ["transport"] }
|
|
prost = "0.13"
|
|
# messaging + serialization
|
|
lapin = { version = "2", default-features = false, features = ["rustls"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
uuid = { version = "1", features = ["serde", "v4"] }
|
|
time = { version = "0.3", features = ["serde", "macros"] }
|
|
futures-util = "0.3"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
|
|
|
|
[build-dependencies]
|
|
tonic-build = "0.12"
|