-
Notifications
You must be signed in to change notification settings - Fork 2
fix: skip session upload from an empty directory or $HOME #1113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,7 +221,7 @@ async fn activate_creates_session() { | |
| let activate_args = ActivateArgs { | ||
| name: Some("test-session".to_string()), | ||
| path: Some(project.path().to_string_lossy().to_string()), | ||
| sync: SyncMode::Tarball, | ||
| sync: Some(SyncMode::Tarball), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win Add integration coverage for implicit sync behavior. These fixtures all use As per coding guidelines, “When changing VM or daemon behavior, add or update the appropriate integration tests and run Also applies to: 266-266, 345-345 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| network: CliNetworkMode::NoNet, | ||
| ingress: vec![], | ||
| loadout: vec![], | ||
|
|
@@ -263,7 +263,7 @@ async fn activate_uploads_project_files() { | |
| let activate_args = ActivateArgs { | ||
| name: Some("upload-test".to_string()), | ||
| path: Some(project.path().to_string_lossy().to_string()), | ||
| sync: SyncMode::Tarball, | ||
| sync: Some(SyncMode::Tarball), | ||
| network: CliNetworkMode::NoNet, | ||
| ingress: vec![], | ||
| loadout: vec![], | ||
|
|
@@ -342,7 +342,7 @@ async fn activate_uses_repo_dir_when_no_positional_path() { | |
| let activate_args = ActivateArgs { | ||
| name: Some("repo-dir-test".to_string()), | ||
| path: None, | ||
| sync: SyncMode::Tarball, | ||
| sync: Some(SyncMode::Tarball), | ||
| network: CliNetworkMode::NoNet, | ||
| ingress: vec![], | ||
| loadout: vec![], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Move directory inspection off the async runtime thread.
is_empty_or_homeperforms synchronouscanonicalizeandread_dirhere. A stalled filesystem can block the Tokio worker during activation; run this check intokio::task::spawn_blockingand propagate the join error.Proposed fix
Based on learnings, avoid direct
std::fswork from async tasks; usespawn_blocking.📝 Committable suggestion
🤖 Prompt for AI Agents
Source: Learnings