Factory: acceptance runs in throw-away containers via an optional test runner service
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
63816c45fd
commit
115e9aec6c
9 files changed
+794
-11
No files matched your search
@@ -45,6 +45,7 @@ mod telegram;
|
||||
mod terminal;
|
||||
mod tools;
|
||||
mod types;
|
||||
mod testrunner;
|
||||
mod update;
|
||||
|
||||
use anyhow::Result;
|
||||
@@ -60,6 +61,11 @@ async fn main() -> Result<()> {
|
||||
tracing_subscriber::fmt().with_env_filter(filter).init();
|
||||
}
|
||||
|
||||
// `codecraft testrunner`: the service that runs throw-away test containers for the factory.
|
||||
if std::env::args().nth(1).as_deref() == Some("testrunner") {
|
||||
return testrunner::serve().await;
|
||||
}
|
||||
|
||||
// In Docker, HOME lives on the data volume; make sure it exists for git/npm.
|
||||
if let Ok(home) = std::env::var("HOME") {
|
||||
let _ = std::fs::create_dir_all(home);
|
||||
|
||||
Reference in new issue
Block a user