GeezerVison is showing github.com — fix(id-worlds): sync export parent dir after rename before reporting success by developing-today-fleet[bot] · Pull Request #16196 · developing-today/code
Conversation
Closes #16179.
Evidence
export_world_to_file (pkgs/id/crates/id-worlds/src/world_export.rs) created the partial beside the target, fsynced the file data, and renamed into place — but never synced the parent directory. A crash/power loss between the rename and the directory entry persisting leaves the export missing even though the caller received Ok(manifest).
Change
Tests
cargo test -p id-worlds world_export: 8 passed.
- Full
cargo test -p id-worlds: 1298 passed, 0 failed.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-27T14:35:32Z",
"session_id": "ses_e5de2ab4927ffeSM5yoTbYX0ek",
"lane": null,
"host": "amd",
"worktree": "/home/user/git/fleet/sweep-16179",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/user/git/fleet/sweep-16179",
"repo": "developing-today/code",
"branch": "sweep/16179-export-dir-sync",
"sha": "6876adc07845f68afc72de86356060ba452c5674"
},
"auth_subject": "oc-code-01",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…success (#16179)
export_world_to_file synced only the partial file data: the new file's
directory entry in its parent was never synced, so a crash after Ok
could leave the export missing even though the caller was told it
succeeded.
Sync the parent directory after the rename into place, propagating any
failure instead of returning Ok (mirroring journal compaction,
ModuleDir::save, and the fork_world #16140 fix). Adds a
fault-injection seam (export_world_to_file_with_dir_sync) and a
regression test proving a sync failure is Err, never Ok.
Tests: full id-worlds suite, 1298 passed.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
8d66dd94-b330-42a3-8d30-017571aeac16
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Superseded: #16179 was fixed and merged first by #16183 (commit 98ac5d8), which covers this fully — parent-dir sync with a "." fallback for bare filenames, cfg(unix) gating mirroring HostFile::save, plus ordering and failure-propagation tests. Closing this duplicate; the one-line Send+Sync follow-up the merged fix needed is #16210.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 27, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|