Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A caching layer for git checkouts #3482

Open
happz opened this issue Jan 25, 2025 · 0 comments
Open

A caching layer for git checkouts #3482

happz opened this issue Jan 25, 2025 · 0 comments

Comments

@happz
Copy link
Collaborator

happz commented Jan 25, 2025

Based on https://issues.redhat.com/browse/TFT-2461:

discover:
  - name: first
    how: fmf
    url: http://github.com/kernel/big-pile-of-tests
    test:
      - networking/ipv6/misc/checksum
  - name: second
    how: fmf
    url: http://github.com/kernel/big-pile-of-tests
    test:
      - networking/ipv6/misc/checksum

is supported, but will consume a lot of resources - network traffic, disk space, time, etc. - by cloning a very large repository twice.

As discussed in the tmt hacking meeting, this is a complex subject. tmt lacks a caching layer for git repos, and the general mood was it should get one. git clone would then be able to save some space and network by re-using already cloned data for read-only access.

  • Could we do some kind of caching?
    • Only the git metadata?
    • We could share the cached copy for the whole tmt run instance
    • There is some proof-of-concept already used in workflow-tomorrow
  • What about handling different refs?
    • We could track cache per url-ref combination
  • What is the essential problem?
    • Disk space or network connection bandwidth?
    • Seems the disk space is the more pressing one (for the kernel team)
    • Would be good to track disk/network issue separately
  • Development branch means that the whole history is currently fetched
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

No branches or pull requests

1 participant