Skip to content

batch object materialization - #2

Merged
caroott merged 22 commits into
mainfrom
feature/batch-object-materialization
Nov 1, 2026
Merged

caroott merged 22 commits into
mainfrom
feature/batch-object-materialization

Conversation

@caroott

@caroott caroott commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

Adds batch materialization of large objects and a raw output channel for subprocess logs, and fixes several Git LFS problems around index.lock, cancellation and GitLab endpoints.

Added

  • WorkspaceSession.ObjectBatchMaterialization: Materialize and Dematerialize now accept many paths in one call. The Git provider supplies the service; lakeFS doesn't, and withFallbackServices fills it with a no-op.
  • OperationContext.ReportOutput: an opt-in channel that streams redacted git and git-lfs output for a "Show logs" view. Create a context with OperationContext.createWithOutput to use it.

Changed

  • Materialize and Dematerialize fail with local_changes when a path has local edits (previously lfs_operation_failed).
  • Fetch, clone and LFS transfers report live progress through ReportProgress.
  • A single-file materialize reads the LFS listing once and checks git status only for that path, which makes it much faster in large repositories.

Breaking

OperationContext, WorkspaceSession, ServiceAvailability and NodeProcess.ProcessRequest have new fields. Code that builds these records as literals has to set them; the create helpers already do.

Fixed

  • Canceling an LFS download no longer leaves .git/index.lock behind. A held lock now gives the remove_index_lock recovery, including when git-lfs exits 0 after failing to update the index.
  • Files left modified by a lock-blocked checkout are restaged on the next materialize instead of being refused.
  • Windows network errors ("actively refused", "forcibly closed", ...) are classified as Network or Timeout instead of ProviderError.
  • Redaction.redact removes the whole userinfo when the user name contains @.
  • LFS transfers to GitLab remotes without a .git suffix no longer fail with "Unprocessable entity" ([Bug]: Git LFS download failed (macOS) nfdi4plants/ARCitISA#1471).

@caroott
caroott merged commit 153834a into main Nov 1, 2026
16 checks passed
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.

1 participant