Skip to content

fix: update DataLad homes from origin only - #164

Merged
oesteban merged 1 commit into
masterfrom
fix/datalad-fetch-origin
Dec 3, 2026
Merged

oesteban merged 1 commit into
masterfrom
fix/datalad-fetch-origin

Conversation

@oesteban

@oesteban oesteban commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

DataLad homes failed to update whenever GIN refused a git fetch. Without a sibling, datalad update fetches from every remote of every dataset, and each template autoenables a git remote on GIN (gin-src, type=git in its remote.log). One refused fetch makes the update report an error, and the client's update() returns False, although the update merges from origin (GitHub) only.

 DataladManager.update
-  datalad.api.update(dataset=path, recursive=True, merge=True)
+  datalad.api.update(dataset=path, sibling='origin', recursive=True, merge=True)

File contents are unaffected: datalad get still goes through git-annex, which falls back between the s3 export and gin-src.

Evidence

Merge Danger

Door: two-way

Blast Radius: DataLad homes

A DataLad home now needs its origin sibling, which datalad install creates for the superdataset and every template. Siblings a user added themselves are no longer fetched by templateflow update; datalad update still fetches them. No CHANGES entry here, to avoid a conflict with #160's 26.0.0 section: the line goes in with the release that carries this.

Without a sibling, `datalad update` fetches from every remote of every
dataset. Each template autoenables a git remote on GIN (gin-src), so a
DataLad home failed to update whenever GIN refused one fetch, although
the update merges from origin (GitHub) only. CircleCI's
test_setup_home[on] failed this way when GIN answered 403 for all 30
templates. File contents are unaffected: git-annex still gets them from
S3 or GIN.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.62%. Comparing base (418e87d) to head (a0c4158).
⚠️ Report is 12 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #164   +/-   ##
=======================================
  Coverage   77.62%   77.62%           
=======================================
  Files           9        9           
  Lines         447      447           
  Branches       82       82           
=======================================
  Hits          347      347           
  Misses         63       63           
  Partials       37       37           
Flag Coverage Δ
api,datalad 51.90% <100.00%> (ø)
api,dls3 27.29% <0.00%> (ø)
api,s3 57.27% <0.00%> (ø)
config 74.04% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oesteban
oesteban marked this pull request as ready for review December 3, 2026 18:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T18:53:43.488175Z a0c4158 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@oesteban
oesteban merged commit 5a5947c into master Dec 3, 2026
16 checks passed
@oesteban
oesteban deleted the fix/datalad-fetch-origin branch December 3, 2026 18:52
oesteban added a commit that referenced this pull request Dec 3, 2026
#164 merged before its entry was pushed, so
it comes here with this pull request's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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