mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-10 22:43:37 +00:00
daytona-check pipeline
This commit is contained in:
parent
35bccb5d36
commit
278bb323fa
2 changed files with 44 additions and 0 deletions
12
pipelines/daytona-check/check.dot
Normal file
12
pipelines/daytona-check/check.dot
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
digraph DaytonaCheck {
|
||||
graph [goal="Run cargo test in a Daytona sandbox and summarize results"]
|
||||
rankdir=LR
|
||||
|
||||
start [shape=Mdiamond, label="Start"]
|
||||
exit [shape=Msquare, label="Exit"]
|
||||
|
||||
run_tests [label="Run Tests", prompt="Run `cargo test --workspace 2>&1` and report the results"]
|
||||
report [label="Report", prompt="Summarize the test results"]
|
||||
|
||||
start -> run_tests -> report -> exit
|
||||
}
|
||||
32
pipelines/daytona-check/task.toml
Normal file
32
pipelines/daytona-check/task.toml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
version = 1
|
||||
task = "Run cargo check in a Daytona cloud sandbox"
|
||||
graph = "check.dot"
|
||||
|
||||
[llm]
|
||||
model = "claude-sonnet"
|
||||
|
||||
[execution]
|
||||
environment = "daytona"
|
||||
|
||||
[execution.daytona.sandbox]
|
||||
name = "attractor-cargo-check"
|
||||
auto_stop_interval = 60
|
||||
|
||||
[execution.daytona.sandbox.labels]
|
||||
project = "attractor-rust"
|
||||
|
||||
[execution.daytona.snapshot]
|
||||
name = "attractor-rust-check-dev"
|
||||
cpu = 4
|
||||
memory = 8
|
||||
disk = 10
|
||||
dockerfile = """
|
||||
FROM rust:1.85-slim-bookworm
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
pkg-config libssl-dev cmake git curl ca-certificates ripgrep \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN rustup update stable && rustup default stable
|
||||
RUN useradd -m -s /bin/bash daytona
|
||||
USER daytona
|
||||
WORKDIR /home/daytona
|
||||
"""
|
||||
Loading…
Add table
Reference in a new issue