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.
20 lines
547 B
TOML
20 lines
547 B
TOML
[package]
|
|
name = "workflow-runner"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[[bin]]
|
|
name = "solstice-runner"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
common = { path = "../common" }
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
miette = { version = "7", features = ["fancy"] }
|
|
tracing = "0.1"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "process", "fs", "io-util"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_yaml = "0.9"
|
|
# gRPC client
|
|
tonic = { version = "0.12", features = ["transport"] }
|
|
tokio-stream = "0.1"
|