Skip to content

SG-44731 Adopt Git LFS for tk-framework-desktopserver vendored dependency ZIPs - #365

Open
julien-lang wants to merge 8 commits into
masterfrom
ticket/SG-42549-git-lfs-no-rebuild
Open

SG-44731 Adopt Git LFS for tk-framework-desktopserver vendored dependency ZIPs#365
julien-lang wants to merge 8 commits into
masterfrom
ticket/SG-42549-git-lfs-no-rebuild

Conversation

@julien-lang

@julien-lang julien-lang commented Aug 10, 2026

Copy link
Copy Markdown
Member

Problem

SG-44731 adopts Git LFS for vendored dependency ZIPs to reduce Toolkit repo/clone size. Replaces #338, which was an earlier proof of concept under a prior ticket number.

Changes

  • resources/**/*.zip (pkgs.zip for all supported Python versions) are now tracked via Git LFS (filter=lfs diff=lfs merge=lfs -text in .gitattributes).

Related PRs

- .gitattributes: track resources/**/*.zip via Git LFS
- .tkdeploy: refresh packaging exclusions to match files actually
  used today (drop .travis.yml/appveyor.yml, add
  .pre-commit-config.yaml, azure-pipelines, resources/python/pipelines,
  and the various resources/python/* build/script extensions)
- azure-pipelines.yml: temporarily pin the tk-ci-tools template ref to
  ticket/SG-44731-use-git-lfs for end-to-end testing before that PR
  merges
- resources/python/src/*/pkgs.zip: re-added as LFS pointers
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.82%. Comparing base (9b945eb) to head (389b97c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #365   +/-   ##
=======================================
  Coverage   65.82%   65.82%           
=======================================
  Files          24       24           
  Lines        1870     1870           
=======================================
  Hits         1231     1231           
  Misses        639      639           
Flag Coverage Δ
Linux 47.54% <ø> (ø)
Python-3.10 65.82% <ø> (ø)
Python-3.11 65.82% <ø> (ø)
Python-3.13 65.72% <ø> (ø)
Python-3.9 65.79% <ø> (ø)
Windows 63.80% <ø> (ø)
macOS 64.34% <ø> (ø)

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.

@julien-lang
julien-lang marked this pull request as ready for review September 8, 2026 22:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

LFS payload migration and documented LFS-aware runtime setup remain unresolved.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adopts Git LFS for vendored dependency archives and native binaries to reduce repository and clone size.

Changes:

  • Adds LFS attributes for .zip, .so, and .pyd files under resources/.
  • Requires corresponding payload migration and LFS-aware checkout documentation.
File summaries
File Summary
.gitattributes Adds Git LFS handling for vendored binary resources; migration and runtime setup updates remain unresolved.
Review details

Suppressed comments (1)

.gitattributes:3

  • These patterns only change attribute resolution; they do not convert the already-tracked ZIPs (or the newly matched .so/.pyd files) into Git LFS pointer blobs. Because this PR contains no corresponding binary/index updates, the repository will continue storing the existing payloads in normal Git and the clone-size reduction will not occur. Re-add/migrate every matched file with Git LFS and commit the resulting pointer changes alongside these attributes.
resources/**/*.zip filter=lfs diff=lfs merge=lfs -text
resources/**/*.so filter=lfs diff=lfs merge=lfs -text
resources/**/*.pyd filter=lfs diff=lfs merge=lfs -text
  • Files reviewed: 1/41 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .gitattributes
Comment on lines +1 to +3
resources/**/*.zip filter=lfs diff=lfs merge=lfs -text
resources/**/*.so filter=lfs diff=lfs merge=lfs -text
resources/**/*.pyd filter=lfs diff=lfs merge=lfs -text
Comment thread .gitattributes
Comment on lines +2 to +3
resources/**/*.so filter=lfs diff=lfs merge=lfs -text
resources/**/*.pyd filter=lfs diff=lfs merge=lfs -text
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.

3 participants