feat: release Dever 0.1.5 with direct workers and long transactions

This commit is contained in:
Codex committed 2026-10-11 11:17:33 +00:00
1 parent 89629c2197
commit a900d7e8db
153 files changed
+3676 -3708

No files matched your search

+7 -5
View File
@@ -1,5 +1,5 @@
#[path = "support/sandbox.rs"]
mod sandbox;
#[path = "support/process_runtime.rs"]
mod process_runtime;
#[path = "support/temp.rs"]
mod temp;
@@ -385,7 +385,7 @@ fn existing_cache_permissions_are_checked_before_reuse_and_launch() {
}
#[test]
#[ignore = "requires explicitly prepared sandbox assets and the private Rust bootstrap compiler"]
#[ignore = "requires explicitly prepared process_runtime assets and the private Rust bootstrap compiler"]
fn packaged_exec_runs_without_source_worker_or_inherited_environment() {
let root = TemporaryDirectory::new();
let mut sources = dever_core::source::SourceMap::default();
@@ -424,7 +424,9 @@ fn packaged_exec_runs_without_source_worker_or_inherited_environment() {
bytes: manifest,
executable: false,
});
for asset in sandbox::assets(&std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../..")) {
for asset in
process_runtime::assets(&std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../.."))
{
resources.push(dever_core::native::EmbeddedResource {
path: asset.path,
sha256: digest(&asset.bytes),
@@ -446,7 +448,7 @@ fn packaged_exec_runs_without_source_worker_or_inherited_environment() {
fs::create_dir(root.path().join("lifecycle")).unwrap();
fs::write(
root.path().join("config/setting.json"),
r#"{"adapter":{"notification.mail":{"use":"default","setting":{"mode":"normal","marker":"/data/lifecycle/worker"},"files":{"lifecycle":{"path":"lifecycle","write":true}}}}}"#,
serde_json::json!({"adapter":{"notification.mail":{"use":"default","setting":{"mode":"normal","marker":root.path().join("lifecycle/worker")}}}}).to_string(),
)
.unwrap();
assert!(!root.path().join(&entry).exists());