GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

  • After the rename, sync the target's parent directory; propagate any sync failure instead of reporting success (mirrors journal compaction, ModuleDir::save, and the fork_world id-worlds: fork_world reports success without syncing the destination directory (forked journal + module copies not crash-durable) #16140 fix).
  • Fault-injection seam export_world_to_file_with_dir_sync (same shape as the id-worlds: ModuleDir::save swallows directory-sync failure — a crash can lose an installed module the journal references #16058/id-worlds: initial FileJournal creation omits parent-directory sync before durable acknowledgements #16131/id-worlds: fork_world reports success without syncing the destination directory (forked journal + module copies not crash-durable) #16140 durability tests).
  • Regression test export_world_to_file_propagates_a_directory_sync_failure: injected sync failure is Err, never Ok.

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.

All reactions
@dezren39
fix(id-worlds): sync export parent dir after rename before reporting …
6876adc
…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.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

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:

  • Trigger review
  • 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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet

developing-today-fleet Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@developing-today-fleet developing-today-fleet Bot closed this Nov 27, 2026
@developing-today-fleet
developing-today-fleet Bot deleted the sweep/16179-export-dir-sync branch November 27, 2026 15:29
This was referenced Nov 27, 2026
id-worlds: program registry publish/unpublish reports success without parent-directory sync (bundle + withdrawal not crash-durable) #16221
Closed
perf(id-directory): skip redundant keyset re-verification in fold-order property #16224
Merged
[Performance] pkgs/id unit tests take 358s against the 120s target — profile and cut #15142
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

id-worlds: export_world_to_file omits parent-directory sync after rename (export not crash-durable)

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.