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

No more full depth clones for deployment #4758

Merged
merged 13 commits into from
Feb 29, 2024
Merged

No more full depth clones for deployment #4758

merged 13 commits into from
Feb 29, 2024

Conversation

hexylena
Copy link
Member

@hexylena hexylena commented Feb 26, 2024

We made full-depth clones only to have correct modification times in our tutorial/json-ld metadata, and later correct publication times. If we were to separate out that metadata, we could do a much shallower (and faster) clone of the training materials which would mean faster deploys.

Thus we need to have that commit log data available somewhere. This PR chooses to put it in metadata/git-{mod,pub}-<commit>.txt (even though it's not used by jekyll). It could also be gzipped to save space, at the cost of uglier diffs. I think .txt might be more space efficient in the long run.

I've checked and the average number of commits between two mondays is like, 50. 250 on the outside. So I've set it to clone 400 commits to be on the safe side. Now with the new commit cache, it'll have access to the full breadth of modification and publication times, without needing a full clone of the GTN which is pretty neat.

That said there are still things to check:

  • feed
  • probably some more i'll think of.

This is only possible in recent versions of galaxy since the past year or so, we will break the tutorial mode in older ones but that is acceptable.
A more useful href is provided for those outside of tutorial mode.
@hexylena hexylena marked this pull request as ready for review February 29, 2024 12:01
@hexylena hexylena merged commit de66713 into main Feb 29, 2024
2 checks passed
@shiltemann shiltemann deleted the tamandua-ostrich branch July 9, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants