Skip to content

Merge facebook/sapling main (8ffaf78f65f) into the fork - #2

Merged
lucasingels merged 978 commits into
mainfrom
merge-upstream-2026-09-04
Sep 4, 2026
Merged

lucasingels merged 978 commits into
mainfrom
merge-upstream-2026-09-04

Conversation

@lucasingels

Copy link
Copy Markdown
Owner

Brings in 973 upstream commits since the 2026-07-27 merge-base a4ae4e2dde2, as a single git merge (one conflict-resolution pass rather than replaying the fork's 50 commits, since sl rebase has previously dropped hunks silently). The fork tip before the merge is preserved as tag backup/pre-merge-2026-09-04.

Conflict resolutions follow upstream-rebase-analysis-2026-09-03.md:

  • cmdworktree: take upstream's removal of the worktree.enabled config gate (05a48716697); our default-flip patch is superseded.
  • edenfs-commands Cargo.toml: take upstream, which drops the termwiz version field entirely.
  • edenfsctl Cargo.toml: take upstream (fail 0.5.1).
  • edenfs-client Cargo.toml: upstream's version bumps, but keep dropping the fbsource-only path keys on fbinit / futures_stats / fb303_core_clients / fbinit-tokio (upstream still declares both path and git, which breaks the OSS build).
  • redirect_ffi, edenfs_ffi, backingstore Cargo.toml: upstream's bumps plus our staticlib crate-type and blake3 pure pins.
  • getdeps buildopts.py: keep the openssl@3 prefix lookup with [email protected] fallback; drop the pyre-fixme line upstream stripped.
  • check_filesystems.py: upstream's scoped hg diff, using our self-locating get_hg_binary().
  • ISL: SubmitSingleCommitButton shows "Submit Draft" when the draft checkbox is set, otherwise the provider-specific verb; TopBar keeps both GerritSetupButton and the new WorktreeButton; UICodeReviewProvider keeps formatDiffNumber(diffId, summary) and gains upstream's getMultiDiffUrl.
  • vscode CHANGELOG: fork releases above upstream's Unreleased section.

Follow-up PRs stacked on this one drop the fork patches upstream made redundant (osxfuse dependency, worktree gate) and force the ISL worktree UI on for OSS builds.

Not verified here: the eden getdeps build itself (that is what the GitHub Actions work is for). The manifests still pin fbthrift/rust-shed/fb303 to the July revs; whether upstream's newer code needs newer revs is being checked separately.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FszfgdLkHM42Rg1E1ay1C7

muirdm and others added 30 commits August 26, 2026 12:23
Summary:
Move the directory-aware path summary implementation out of the template
function so command output can reuse it without evaluating a template. This
does not change `pathsummary()` behavior.

Reviewed By: zzl0

Differential Revision: D113924848

fbshipit-source-id: ae00ef51143eebd71eeb4b7e865917a0c78c8da4
Summary: Add a test documenting clearly what commit and amend currently output (basically nothing).

Reviewed By: zzl0

Differential Revision: D113924843

fbshipit-source-id: 6050f3ef92ed4c8bee7ec858016dfe88a32465a4
Summary:
Make `commitstatus()` report the full created or rewritten commit hash and a bounded directory-aware summary of changed paths during normal output or in verbose mode. Normal commits use `ctx.files()`; amend compares the successor to its predecessor so unchanged files already in the commit are not reported.

Call `commitstatus()` from standard amend and amend-to paths. HGPLAIN and `--quiet` suppress the additional output unless verbose mode is active. The feature defaults on through `commit.show-status`, and `commit.status-path-limit` bounds path expansion.

The goal of this change is to give more feedback to agents as they commit and amend. This will help them notice when the accidentally include unrelated files in a commit. The alternative is to require them to specify exact files to "sl commit" and "sl amend", but I feel that would add too much friction for a relatively rare issue.

Reviewed By: zzl0, quark-zju

Differential Revision: D113924844

fbshipit-source-id: 9a9c7a69c360604aba953c7c01998cc886ea9f40
Summary:
When a DXXX lookup finds multiple visible local successors that still reference the diff, list them and require the user to choose instead of selecting the newest revision silently. Agents abort with a hint to specify a commit hash directly rather than guessing. Noninteractive human resolution keeps the newest revision, while `phrevset.prompt-ambiguous-successors=false` preserves the previous silent behavior as a rollback option for humans and agents alike.

Record ambiguity and selection metrics along with a structured event.

Reviewed By: zzl0

Differential Revision: D114432041

fbshipit-source-id: b556f681644b18a59f1d51acf485c7d24d284b3d
Summary: Record separate counters when bad diff id or obsolete commit operations are rejected for agents, accepted or declined by humans, or allowed for automation and explicit config overrides. Evaluate bypassed operations before recording them so ordinary automation does not increment the counters.

Reviewed By: zzl0

Differential Revision: D115211463

fbshipit-source-id: 0ad0eeab212b3998d512bf7dbd82aea8d4b24014
Summary:
Add a scoped `rewriteutil.copycommitmessage` extension point and invoke it while `graft` and `rebase --keep` write copied commits. The hook receives the source commit so implementations can distinguish copies of live commits from recovery copies of hidden or obsolete ones. The default hook preserves the message, so this commit does not change behavior by itself.

Cover both the in-memory and working-copy rebase implementations so extensions can apply one policy consistently, including graft and rebase conflict continuation.

Reviewed By: zzl0

Differential Revision: D115253889

fbshipit-source-id: a2a456d2aed00697fb55afbb9bf5b54c7a0ad227
Reviewed By: zzl0, quark-zju

Differential Revision: D116550123

fbshipit-source-id: c56b76dedb60f417a35e5cf1e24f34ca6c3f01bd
Summary:
Use the copied-message hook to remove `Differential Revision` lines from agent-driven `graft` and `rebase --keep` operations, emitting a clear stderr note so agents know the new commit is unlinked. Removal uses `diffprops.diffrevisionlineregex`, derived from the same core pattern as detection so the two cannot disagree.

For humans, prompt to remove the binding ([r]emove), preserve the duplicate association ([p]roceed), or [c]ancel; `bad-diff-id-human-mode=abort` rejects the copy outright. `warn` mode is checked before the agent branch, so an agent configured with `bad-diff-id-agent-mode=warn` keeps the old copy behavior with a warning instead of being unlinked.

Copies that recover lost work keep their binding: when the source commit is hidden or obsolete and no other visible draft still carries the diff number, unlinking would force the next `jf submit` to create a duplicate diff, so the association is preserved and pre-approved instead. The visible-draft scan only runs for copies of hidden or obsolete sources and never in plain mode.

This diff also enforces the "commit introduces an untracked Differential Revision" rule (moved here from the strict-invariants diff) so copies and fresh commits are handled by the same release.

The copy behavior is controlled solely by the default-enabled `fbcodereview.unlink-copied-diff-revisions` config, independent of the pre-existing `allow-diff-revision-drop` killswitch, so it can be rolled back on its own; disabling it fully restores the old copy behavior. `HGPLAIN` continues to preserve automation behavior. Record counters for each agent, human, and recovery outcome.

Reviewed By: zzl0

Differential Revision: D115253890

fbshipit-source-id: ce087c79b6cb6ecf1a322595bc276045cf7c2847
Summary:
Replace the pre-existing `commit.reject-modifying-obsolete` boolean with `commit.modify-obsolete-mode`. Support `ignore`, `warn`, `prompt`, and `abort`, defaulting to warning for humans and aborting for agents. Unrecognized values behave as `ignore`, so emergency values such as `off` and `false` safely disable the guard.

Note this deliberately relaxes the interactive human default from prompt-with-confirmation to warn-and-proceed; setting `prompt` restores the confirmation gate.

The legacy boolean remains honored when the new config is unset, so existing recipes such as `--config commit.reject-modifying-obsolete=false` (documented in agent skills outside this repository) keep working as an escape hatch.

Update all in-repository references. The AutoDev design-doc update is split into a separate child diff so it can land after this change is deployed.

Reviewed By: quark-zju, zzl0

Differential Revision: D116550121

fbshipit-source-id: 2fcf50b2fdf78ca8d0d22271701a1022c15a3462
Summary:
Add a `rewriteutil.precheckmessage` extension point and invoke it from `rebase --collapse` when the final message is supplied with `-m`/`-l`, before any commit is rewritten. Previously the diff binding validation only ran when the collapsed commit was written, so a rejection left an interrupted rebase behind that required `rebase --abort` which is annoying.

The fbcodereview implementation reuses the commit-set validation and records an approval keyed by the predecessor and successor diff numbers, so a message that passes preflight (or that a human explicitly approves) is not re-validated or re-prompted when the collapsed commit is committed.

Reviewed By: zzl0, quark-zju

Differential Revision: D116550120

fbshipit-source-id: dc2244d18e588b16760673a06166b3126cecdce2
Summary:
Print `checked out <hash> "<title>"` after a successful checkout, in both the native Rust implementation and the Python fallback. Navigation to the wrong commit is currently invisible: `goto` prints only file counts, so a revset that resolves somewhere unexpected (for example a commit-cloud-synced stack from another machine) goes unnoticed until later work lands on the wrong commit. A recent audit of agent sessions found four such incidents in one week and specifically asked for `goto` to echo its destination.

The output is suppressed in plain mode, with `--quiet`, and via the default-enabled `checkout.show-destination` config. `prev` and `next` already print their own destination line, so they suppress goto's. Tests run with the feature disabled by default, mirroring `commit.show-status`.

Reviewed By: zzl0

Differential Revision: D116963607

fbshipit-source-id: 0e216dc4823091b6de925bec11766190010076b0
Summary:
Record per-flag occurrence counts while parsing. `ParseOutput.specified_opts` becomes an insertion-ordered map from each explicitly specified option to its occurrence count, replacing the previous name list; `ParseOutput::opt_count` reads it in Rust, and `parsecommand` returns it to Python as an ordered dict in place of the former name list.

For boolean flags, a polarity flip restarts the count: `-q --no-quiet` counts as one `--no-quiet`, and `--no-quiet -q` counts as one `-q`. The count therefore reflects consecutive occurrences of the flag's final value, which is what "the user insisted" semantics need.

This allows repeated boolean flags (e.g. `--quiet --quiet`) to carry meaning; a follow-up uses it to let agents explicitly insist on quiet output.

Reviewed By: zzl0

Differential Revision: D116963609

fbshipit-source-id: 327af28058b20ddcaa632987d2ecd0081960dc2e
Summary:
Agents habitually pass `--quiet`, and it has repeatedly hidden output that mattered: checkout destinations, divergence warnings, hint lines. When an agent (and not `HGPLAIN` automation) passes `--quiet` exactly once, ignore it and print a one-line stderr note: `note: --quiet ignored for agents since output can contain important details (pass --quiet --quiet to force quiet)`. Passing `--quiet` twice expresses deliberate intent and is honored.

Both dispatch layers implement the rule using the new flag occurrence counts: the Rust dispatcher rewrites the parsed options and pins `ui.quiet=false` over the conservative early-parse pin, and Python dispatch clears the option plus any config the native layer pinned before falling back. A command that starts native and falls back mid-run (e.g. `goto` with a revset) prints the note from each layer; the duplicate line is cosmetic and rare, and keeping the layers independent is simpler than cross-process deduplication.

`agent.ignore-quiet` (default enabled) is the rollback switch, and the test hgrc disables it so the existing test corpus is unaffected.

Reviewed By: zzl0

Differential Revision: D116963608

fbshipit-source-id: 3f253689401b12c538a0f3155d5cf47cb2c1708d
Summary:
This revset controls the "titles" namespace's search range.
I plan to make it filter commits by date in a future change.

By using a revset function, users can override the behavior via `[revsetalias]`
configs.

Reviewed By: janezhang10

Differential Revision: D115157682

fbshipit-source-id: 1f495f8c9af210b9f3a387f691e2444a79037f91
Summary:
Time-related features should use HgTime APIs so tests can set the current time
without having to patch time.time stdlib.

Reviewed By: janezhang10

Differential Revision: D115157681

fbshipit-source-id: 94a3f14442ef1b85c5e972a36f5c89be5a3ced48
Summary:
Currently, the next inode number only persists on clean exit. If eden crashes,
to get the "next inode number", it has to scan the entire overlay, which can be
too slow (p99 could be hours, p90 is minutes - note: there are multiple O(N)
steps in fsck; above time includes all steps, but this diff is about the first,
"get max inode" step)

To avoid the O(overlay) scan. I'm adding an "inode reservation" state, which is:
- backed by a file (actually, symlink to avoid corrupted empty file)
- on-disk state is always >= next inode
- periodically updated (to reduce overhead, current overhead is about 2s for
  10M allocations)

This way, to get the "next inode" after crash, we can recover from this inode
reservation state file.

The read path is graceful - if the file is missing or corrupted, we will have
to fallback to the O(N) scan.

The write path is not graceful. We expect it to succeed. Otherwise, the file
cannot be trusted by the read path.

Reviewed By: muirdm

Differential Revision: D117235883

fbshipit-source-id: acf53f8736a2522c3bc12aa9d1c622f32ed0e2d8
Summary:
Found while working on {D117562867}.

This change has no effect before or after D117562867 but the dependency renames are unnecessary.

Reviewed By: diliop

Differential Revision: D117608146

fbshipit-source-id: 4f5c512dd7ef4ad8543af92ed3c45076c4391679
Summary:
Release notes:
https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md

Reviewed By: diliop

Differential Revision: D117544292

fbshipit-source-id: afeb96a807ebde3ea36a8ffd2ce3104747933961
Summary:
Release notes:
https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md

Reviewed By: diliop

Differential Revision: D117544882

fbshipit-source-id: 34af3630c96ded8504df735fa09d77df6f6c99ce
…server diversion

Summary:
Two additions to the Multi-Repo Land diversion's scuba rows in the git server:

- `mrl_emergency_push_authorized` — a break-glass push that bypasses the diversion was previously glog-only; the row carries the repo and the authorized identities, so bypass usage is auditable (the reconciler bounds the resulting pin staleness, but each use should be visible).
- The `mrl_direct_land` row now includes `skipped_branch_names` (capped at 100) next to the existing count. The names exist only at this call site: the MRL server logs a count and scribe only records changed branches.

Reviewed By: Joald, YousefSalama

Differential Revision: D117680639

fbshipit-source-id: 12f9aa126177290829be971011f79d66564bc33c
Summary:
When a group-gated hook bypass is refused, the pusher is told which group they are missing but nothing records *whose* membership was tested. That distinction matters because the identity checked is not always the one the pusher expects: on the commit-author path an unparsable author silently falls back to the pusher's own identities, which for a bot-authored commit pushed by a service are unrelated to the bot.

Add `BypassIdentitySource` and `CheckedBypassIdentities` to carry that. Nothing constructs them yet; the following diffs thread them through the bypass decision and log them.

`identities` holds `TYPE:data` strings only, never typed or CAT-bearing renderings, because the value is destined for Scuba.

Differential Revision: D117375902

fbshipit-source-id: 974fb727b309d1bf1e0de1ed9e8163c42131dcfc
Summary:
Resolving a group-gated bypass runs a membership check, but which identity set that check ran against is discarded as soon as the verdict is known. Nothing downstream can say whether the group was tested against the pusher, the commit author, or the pusher standing in for an unparsable author.

Record it. `BypassAuthorizationResult` and `BypassDecision` now carry a `CheckedBypassIdentities` for every variant that ran a check, populated at the two `check_bypass_group_membership` call sites, and `UnauthorizedUser` gains the bypass reason it was already discarding. `check` is `None` only when the hook has no bypass permission checker, so no membership check ran at all.

Up to two checks can run for one decision: on the client-identities path a miss falls through to the commit author. What is recorded is the check that *decided*, so a client-identity miss reports the author check that followed it.

Nothing reads the new field yet -- `record_outcome_and_apply_bypass` still ignores it. The next diff logs it.

Differential Revision: D117375904

fbshipit-source-id: 4eb91078e727131a2afc9fa9bd6f688e1e41aa4b
Summary:
`scm_hooks` sets `bypass_reason` and `bypass_permission_group` on `accepted_via_bypass` and on the agent-refusal path, but the `UnauthorizedUser` arm sets neither. Over 7 days that is 88M `rejected` rows in which a denied bypass is indistinguishable from a push that never attempted one.

That gap costs real debugging time. A codemod bot was added to `restrict_user_directories_bypass_group`, is a member, and still could not bypass. Nothing in Scuba explained it: on fbsource the check runs against a commit-author-derived identity, `extract_identity_from_author` cannot parse the `root@<host>` author Sandcastle produces when `ui.username` is unset, and it falls back to the pusher's identities, which belong to the pushing service rather than the bot. Answering "whose membership was tested?" meant reading `manager.rs`.

Populate the existing bypass columns on `UnauthorizedUser` so `outcome='rejected' AND bypass_reason IS NOT NULL` selects exactly the denials, and emit the identities the check ran against as `bypass_identity_source` and `bypass_identities_checked`. `bypass_blocked_for_agent` stays unset on that arm so the two refusal kinds stay distinguishable.

The identities are for debugging and are deliberately not added to the pusher-facing rejection message, which is unchanged.

Differential Revision: D117375906

fbshipit-source-id: e7418e729bc0a38ea3d49dee2bd734741073fb81
Summary:
The provenance recorded on a bypass decision is only observable through Scuba, so pin it directly instead. `compute_bypass_decision` is private and reaches `HookManager::hooks`, hence the `#[cfg(test)]` accessor, following the existing `set_employee_service_for_test` precedent.

Each route to a decision gets a case: a denial on the client-identities path records the check that actually decided, which is the commit author after the client miss falls through; a denial with the JK off records `CommitAuthor` directly; an unparsable `root@<host>` author records `CommitAuthorFallbackToClient` together with the pusher's identities, which is the case that motivated this work; an authorized bypass carries the same provenance so accepted and denied rows stay comparable; and a hook with no permission checker records none, because no membership check ran.

Differential Revision: D117375907

fbshipit-source-id: e4da98394daf532dbaa72a464757a87e0ddee80a
Summary: Adds command-palette support for managing Sapling worktrees directly from the VS Code extension, since worktree operations previously required the CLI or ISL UI and weren't accessible when invoking commands from an active editor/workspace context. New `sapling.worktree.switch/add/remove/rename` commands resolve the relevant repo (or ask if multiple are present), guard against repos where worktrees aren't supported or enabled, and drive the existing Add/Remove/Rename worktree operations with quick-pick/input prompts for selecting targets and confirming destructive actions like removal.

Reviewed By: nsblake

Differential Revision: D115048606

fbshipit-source-id: 157e6ee4ff1fb48ce2bbfdb50795837ed817a8e3
Summary:
This diff makes it obvious when a commit is checked out (. ) in another worktree on disk, and ensures those commits are always visible in the smartlog.

Server:
- Extend `WorktreeEntry` with optional `node` (checked-out hash) populated best-effort via `sl whereami -R <path>`. Failures (mid-checkout) leave it unset.
- Include other worktrees' dot hashes in the smartlog revset via `present(<hash>)`, excluding the current worktree and deduping, so sibling checkouts are fetched even if not otherwise interesting.
- Add explicit `refreshWorktreeInfo` client->server message and also call `refreshWorktreeInfo()` on generic `refresh`, since sibling checkouts happen outside this process's file watcher.

Client:
- Add `WorktreeInfoPoller` in `App.tsx` that polls `refreshWorktreeInfo` every 15s when worktrees feature flag is on, this is an EdenFS repo, and there is >1 worktree.
- Add `CheckedOutElsewhere.tsx` with gated atoms (`enabledWorktreeInfo` requires EdenFS + feature flag): `otherWorktreeCheckoutsByHash` (hash -> sibling entries), `isCheckedOutElsewhere` atomFamily, and `currentWorktreeName` (linked worktree label or basename).
- In `Commit.tsx`, render attention badges for `checkedOutElsewhere` with worktree icon. On VS Code show a context menu (Current/New Window) via `openWorktreeInWindow`; elsewhere switch cwd directly via `changeCwd`. Hover tooltip explains action.
- Update `YouAreHere` glyph / `CommitTreeList` to show "You are here ($name)" when working inside a linked worktree.
- Add `InlineBadge` kind `attention` and CSS for badge row/hover.
- Move `pathsAreIdentical` and `guessPathSep` from `WorktreeSection` to `shared/utils.ts` for reuse.

Reviewed By: nsblake

Differential Revision: D115775873

fbshipit-source-id: e5ccdf6f8c1f7d1a41bb30c0605f7b2f0a7d04aa
Summary:
Instead of disabling "Open in New Window" inside Basecamp, make every worktree open path create a proper new Basecamp tile. In Basecamp `vscode.openFolder({forceNewWindow:true})` is intercepted to create a new tile with the correct environment (focusedEnvironment folderPaths/hostname), so the same primitive works for both desktop and Basecamp — it just needs the right label.

Server / types:
- `isl-server/src/serverPlatform.ts`: add optional `isBasecamp?: boolean` to `ServerPlatform`.
- `isl-server/src/ServerToClientAPI.ts`: include `isBasecamp: platform.isBasecamp ?? false` in `applicationInfo`.
- `isl/src/types.ts`: add `isBasecamp?: boolean` to `ApplicationInfo`.
- `vscode/extension/vscodePlatform.ts`: populate `isBasecamp` from `Internal.isBasecamp()?.()`.
- `vscode/extension/extension.ts`: publish `sapling:isBasecamp` context (retained for future use).

ISL client:
- `isl/src/Commit.tsx` (`CheckedOutElsewhereBadge`): keep both menu items, switch label to "Open in New Tile" when `applicationInfo.isBasecamp`. Still calls `openWorktreeInWindow(path, true)` -> `platform/openInNewWindow` -> `vscode.openFolder(forceNewWindow:true)` which Basecamp turns into a new tile.
- `isl/src/WorktreeSection.tsx` (`WorktreeRowWithHover` switch dialog): restore the two-button choice, label the primary button "Open in New Tile" in Basecamp vs "Open in New Window" elsewhere. Add missing `useAtomValue(applicationinfo)` binding that was dropped by the linter. (`AddWorktreeModal`): keep "new" default for VS Code, relabel the radio to "Open in new tile" in Basecamp vs "Open in new window" elsewhere.
- `vscode/extension/commands.ts` (`sapling.worktree.switch` / `sapling.worktree.add`): stop early-returning to current window in Basecamp; always show the quick-pick and relabel its "new window" entry to "Open in New Tile" when `Internal.isBasecamp()`. Both still execute `vscode.openFolder` with `forceNewWindow:true` for the new-tile case, which yields a properly-environment-wired tile.
- `vscode/package.json`: revert the `!sapling:isBasecamp` gate on `sapling.worktree.switch` so the command stays discoverable in Basecamp.

Reviewed By: nsblake

Differential Revision: D116650080

fbshipit-source-id: c30930b0f08428682a60abad2ce400d389b43989
Summary:
Fix OSS HHVM builds on x64 and arm64.

- Pin release-train, Rust, fb-mysql, and other external dependency inputs.
- Fix compiler, linker, dependency, and architecture portability issues, including XED support for tc-print and disabling ImageMagick OpenMP to match the internal build and avoid shutdown crashes.
- Preserve native quick and slow test coverage on both architectures.

Reviewed By: binliu19

Differential Revision: D116318957

fbshipit-source-id: bdd48a58868217361d58d3ff33fc3d052910643b
Summary:
Update the `_interestingdraft()` revset used by the titles namespace to limit
search range to 30 days of draft commits. Users can still override the behavior
by adding a revset alias.

Note I changed the revset from `sort(draft(), -rev)` to `reverse(draft())`.
This is important for the revset optimization engine, since `sort(...)` has
weight 10, same as `age(...)`, but `reverse(draft())` has weight 1.

Compare:

  $ sl debugrevspec -p optimized "limit(sort(draft(), -rev) & age('<30d'), 10)"
  * optimized:
  (func
    (symbol 'limit')
    (list
      (andsmally
        (func
          (symbol 'sort')
          (list
            (func
              (symbol 'draft')
              None)
            (string '-rev')))
        (func
          (symbol 'age')
          (string '<30d')))
      (symbol '10')))

vs:

  $ sl debugrevspec -p optimized "limit(reverse(draft()) & age('<30d'), 10)"
  * optimized:
  (func
    (symbol 'limit')
    (list
      (and
        (func
          (symbol 'reverse')
          (func
            (symbol 'draft')
            None))
        (func
          (symbol 'age')
          (string '<30d')))
      (symbol '10')))

Note the `andsmally` version sub-optimally thinks the `age` revset is "small".
That shows up in extra fetches in `test-eager-exchange.t`, and is probably
unusably slow practically in a monorepo.

Reviewed By: janezhang10

Differential Revision: D115157683

fbshipit-source-id: a772993c2331b0e99f9f1ccbfc303761b97a59a8
vilatto and others added 20 commits September 3, 2026 15:24
Summary:
The gate for macOS privhelper-driven auto-restart, plus the two knobs that
bound it. `privhelper:restart-edenfs-on-crash` defaults to false so the
feature lands dark and rolls out on its own schedule; the budget defaults to
3 restarts within 10 minutes.

The keys name the process being restarted, not just the supervisor, so they
stay unambiguous next to a knob for the opposite direction -- edenfs
restarting a crashed privhelper.

The knobs are declared before anything reads them, so that the diff which
wires the feature in is not also the diff that decides how it is gated.

Reviewed By: muirdm

Differential Revision: D117276813

fbshipit-source-id: d60436d6e4c5cc083aadc7fab704d9bffaeae87c
Summary:
Add a pre-migration FUSE GETATTR benchmark that exercises the current Future-based request path end to end without `/dev/fuse`: FakeFuse socketpair send, DevFuseTransport worker read and parse, FuseChannel request/context/stat handling, ImmediateFuture ready or deferred branch, reply framing/write, receive, and full deterministic `fuse_attr_out` validation.

Measure immediate completion and a genuinely deferred Promise path. The deferred case uses one transport worker and a FIFO FUSE_FORGET marker; observing the later marker proves GETATTR returned through the non-ready branch and attached its continuation before the benchmark fulfills the Promise. The marker has no reply and its exact count is bounded and asserted.

Exclude fixture/channel setup, INIT, warmup, close, StopFuture wait, and teardown from timing. The suspended measurement intentionally includes the marker request and Promise coordination, so absolute immediate and suspended values are not directly comparable; the stable purpose is before/after comparison of the same path during the now_task migration.

Reviewed By: janezhang10

Differential Revision: D113219697

fbshipit-source-id: a5f4edb9711a55fc6873b6f08bebcd60249b24e7
Summary: When experimental.preferred-target is configured, native Rust checkout immediately falls back to Python, where agent-driven goto/update and rebase requests that explicitly target the main bookmark (including its configured hoisted form) are rejected. The error recommends the preferred target for faster builds and documents the command-line override that clears the setting. Humans and HGPLAIN automation pass through the Python policy unchanged. The presence of preferred-target is the sole rollout switch; experimental.enforce-preferred-target is not used. Existing interrupted-update cleanup semantics are unchanged.

Reviewed By: muirdm

Differential Revision: D117895933

fbshipit-source-id: 8127573015910481c8698569440826d88fb88942
Summary:
Add a `debugpathcreation` extension that finds the creation commit for a
tracked directory. Follow ordinary `sl copy` and `sl rename` history.
Conservatively stop when parent mappings are ambiguous.

___

Differential Revision: D118640123

fbshipit-source-id: a6f30a9d43751004293c08648a15697c10341b7f
Summary:
Teach `debugpathcreation` to use explicit subtree-copy metadata before applying the ordinary directory-copy heuristic. Preserve nested destination paths and label subtree hops in the informational trace.

___

Differential Revision: D118640124

fbshipit-source-id: 64dd36ba79e986a5b0c25c636fbeb2474e5b365b
Summary:
Require at least 90% of destination files to map back to the same source directory. Count source and destination files and warn, rather than reject, when their sizes differ so small additions and deletions remain traceable.

___

Differential Revision: D118640125

fbshipit-source-id: 95dcad9827b149feae2b3d6f33c064661f707a18
Summary:
Make the directory-copy similarity threshold configurable and add the standard `-r/--rev` option so callers can start tracing from a historical commit.

___

Differential Revision: D118640126

fbshipit-source-id: dd3be7492d3f3c070656b9cbe3dcb1e417793e59
Summary:
Allow `debugpathcreation` to trace individual files as well as directories. Conservatively stop at merge commits.

___

Differential Revision: D118640130

fbshipit-source-id: bde07d2352168b3ed9ebfdd92313266b64292586
Summary:
Skipping 0.95.0 because it depends on libsqlite3-sys 0.36.0 which contains a lock order regression in the bundled sqlite affecting arvr/projects/surreal and arvr/projects/oatmeal. See CI signals on {D118580436}.

Skipping 0.96.0 because it pins `curl-sys = "=0.4.83"` for a FreeBSD-specific reason (see [cargo#16379](rust-lang/cargo#16379), solved in [cargo#16786](rust-lang/cargo#16786)) which is incompatible with the newer `curl-sys` currently being used in our repo.

Reviewed By: diliop

Differential Revision: D118593768

fbshipit-source-id: 94cc78add230d4c24c34b649231954bb8ec1fc94
Summary:
D117475730 added the `gcc12` getdeps dependency to support the CentOS Stream 9 Open/R build. Although its compiler overrides were correctly limited to CentOS Stream 9, the dependency itself was unconditional. Ubuntu 24.04 GitHub Actions therefore tried to resolve a `gcc12` manifest with no matching Ubuntu package and failed during `query-paths`, before compilation.

Scope `gcc12` to CentOS Stream 9 alongside the existing compiler definitions and regenerate the OpenR Linux workflow fixture. This preserves the intended CentOS GCC 12 toolchain from D117475730 while removing the invalid Ubuntu dependency.

Differential Revision: D118736179

fbshipit-source-id: af500b1e3f256223ff4c252c3b5839d4758499e1
Summary:
Add a regression that cancels an EdenFS status calculation while a subtree load is pending, then issues another status request after the cancelled calculation completes.

The `FIXME(T287330084)` records that the later request incorrectly receives the empty result of the cancelled calculation from the status cache.

Reviewed By: MichaelCuevas

Differential Revision: D118734762

fbshipit-source-id: 7245a191ca744f0573077821926d56d119cfb84d
Summary:
Treat a status producer that observes request cancellation as failed for status-cache consumers. Complete its in-progress promise with `folly::OperationCancelled` and remove the promise from the cache instead of publishing or caching the partial status.

The cancelled producer retains the existing partial-result behavior. Coalesced callers receive the cancellation, matching the existing handling for producer exceptions. Retrying a coalesced request after any producer error is a separate issue and is intentionally not addressed here.

Reviewed By: MichaelCuevas

Differential Revision: D118734763

fbshipit-source-id: 27d3017ad433f90ee22590444541e74340bc2798
Reviewed By: diliop

Differential Revision: D118680686

fbshipit-source-id: 375be976dba3de2615f79abbded4fbdc2f911a56
Summary:
Config plumbing for an opt-in "omitted" presentation mode for restricted ACL roots (behavior lands in D116034970). No behavior change.

- RestrictedContentMode enum ("restricted" / "omitted") with a FieldConverter, modeled on ReaddirPrefetch
- EdenConfig setting acl:restricted-content-mode, default Restricted
- Immutable snapshot on ObjectStore taken from the startup config, so a runtime reload cannot flip presentation between resumed readdir calls of one enumeration

Reviewed By: muirdm

Differential Revision: D116034968

fbshipit-source-id: 83b108ab127c9d5fa3fb46a7259b9b93e6fb1aa4
Summary:
TDD commit 1 for omitted mode. New RestrictedTreeInodeTest cases run with acl:restricted-content-mode = omitted and pin the current behavior (restricted roots still enumerate via getChildren, co_getChildren, co_getChildrenAttributes, fuseReaddir), each marked FIXME; D116034970 implements omission and flips them. omittedMode_explicitLookupStillReturnsEACCES is a regression guard and is not flipped.

The mode is snapshotted onto the mount's ObjectStore at construction, so updateEdenConfig() is too late to set it. TestMount gains an optional construction-time configureEdenConfig mutator applied to the EdenConfig before ServerState and ObjectStore are built. Defaults to empty; existing tests unaffected.

Reviewed By: muirdm

Differential Revision: D116034967

fbshipit-source-id: 8b3ebac19d54411908eff4e6c1cbb1e6129e4e02
Summary:
With acl:restricted-content-mode = omitted, restricted ACL roots disappear from readdir (FUSE/NFS), TreeInode::getChildren / co_getChildrenAttributes, and the raw-Tree arm of VirtualInode::getChildren / co_getChildrenAttributes (Thrift readdir). Explicit lookup by name still resolves the mode-000 placeholder and reads under it still return EACCES. Default restricted mode is unchanged.

TreeInodeState::entries is now a DirEntries that cannot be iterated directly: every walk goes through all() (checkout, diff, GC, prefetch, persistence) or visible(mode) (readdir, getChildren, Thrift readdir), so each reader states whether restricted roots hidden in omitted mode are included; lookups stay unfiltered. VirtualInode's raw-Tree paths use the same visibleEntries() filter with the ObjectStore's startup snapshot of the mode, so no caller passes it. readdir offsets are inode-number based, so omission is offset-stable across resumed calls.

Out of scope: glob (still lists restricted roots), enumeration-time permission refresh, parent st_nlink counting omitted entries, PrjFS. This is presentation, not a confidentiality boundary.

Reviewed By: muirdm

Differential Revision: D116034970

fbshipit-source-id: a7effef5431b4bd423fc467a662e88b314dcfc59
Summary: End-to-end coverage for acl:restricted-content-mode = omitted through a real daemon. RestrictedTreeOmittedModeTest subclasses _RestrictedTreeTestBase and sets the mode via edenfs_extra_config(), which the daemon reads at startup. Three tests: os.listdir omits restricted roots at / and under parent/, opening restricted/secret.txt still returns EACCES, and Thrift readdir omits the restricted names. Stat of the restricted root itself is intentionally unchanged (mode-000 placeholder).

Reviewed By: muirdm

Differential Revision: D116034969

fbshipit-source-id: aeaa1ee6fe38429723af468b91ecf24130032e4f
…tside checkout

Summary: Two non-checkout transitions change a restricted root's visibility: the TTL recheck in transitionToUnrestricted (hidden → listed) and the load-time backfill in maybeBackfillAclDirEntry when a fetched child tree turns out restricted (listed → hidden). Both updated the parent DirEntry but never invalidated the parent's cached listing, which FUSE (FOPEN_CACHE_DIR) and NFS clients keep serving until it ages out. In omitted mode, invalidate the parent's dir cache on both. Restricted mode is unchanged: the name is always listed and the child's own invalidation already refreshes its mode. No-op on Windows: PrjFS enumerates the raw Tree and never hides entries.

Reviewed By: genevievehelsel

Differential Revision: D118720610

fbshipit-source-id: 21fbcac6872f7c021c21a17b9cef44e5ad2a3558
Summary: `monad` is an interactive command, so usually we do not want to see service logs at all.  Set the default log level to `OFF`.  We can optionally have logs using options like `--log-level INFO` if we want.

Reviewed By: RajivTS, YousefSalama, mitrandir77

Differential Revision: D118455079

fbshipit-source-id: ace61a9326c2e5f56ceeed8c3d84d3d5375a016f
Brings in 973 upstream commits since the 2026-07-27 merge-base a4ae4e2. Conflict resolutions follow upstream-rebase-analysis-2026-09-03.md:

- cmdworktree: take upstream's removal of the worktree.enabled config gate (05a4871); our default-flip patch is superseded.
- edenfs-commands Cargo.toml: take upstream, which drops the termwiz version field entirely.
- edenfsctl Cargo.toml: take upstream (fail 0.5.1).
- edenfs-client Cargo.toml: upstream's version bumps, but keep dropping the fbsource-only path keys on fbinit/futures_stats/fb303_core_clients/fbinit-tokio.
- redirect_ffi, edenfs_ffi, backingstore Cargo.toml: upstream's bumps plus our staticlib crate-type and blake3 pure pins.
- getdeps buildopts.py: keep the openssl@3 prefix lookup with [email protected] fallback; drop the pyre-fixme line upstream stripped.
- check_filesystems.py: upstream's scoped hg diff, using our self-locating get_hg_binary().
- ISL: SubmitSingleCommitButton shows Submit Draft when checked, otherwise the provider verb; TopBar keeps both GerritSetupButton and the new WorktreeButton; UICodeReviewProvider keeps formatDiffNumber(diffId, summary) and gains getMultiDiffUrl.
- vscode CHANGELOG: fork releases above upstream's Unreleased section.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FszfgdLkHM42Rg1E1ay1C7
Upstream moved to React 19 types, where JSX is no longer a global namespace; every other ISL file now imports it from 'react'. Fixes the two TS2503 errors the merge left in GerritUICodeReviewProvider.tsx.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FszfgdLkHM42Rg1E1ay1C7
lucasingels and others added 3 commits September 4, 2026 11:16
The merge brings in upstream's oxlint config, whose curly rule fails yarn lint on four brace-less if statements in labelDecision(). No behavior change.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FszfgdLkHM42Rg1E1ay1C7
The merge resolution applied the provider-specific verb only to the non-draft label, so Gerrit (submitButtonLabel() = "Publish", supportSubmittingAsDraft = "always") showed "Submit Draft" with the draft checkbox ticked. Use the verb in both branches.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FszfgdLkHM42Rg1E1ay1C7
…he --oss build

The fork's [patch.crates-io] points wezterm-dynamic at a git revision where the HashMap FromDynamic/ToDynamic impls sit behind the "std" feature. termwiz 0.23.3 derives those on a HashMap and nothing in the graph enabled the feature, so `build.py --oss` failed to compile termwiz. Request it from lib/io, which already depends on termwiz, so cargo's feature unification turns it on.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JGehtn7KyNS8zxn6t8v2wk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.