ci: cache a port's submodules in an entry of their own - #11345
Merged
Merged
Conversation
Every board job of a port cloned the port's submodules over the network: stm's 29 CMSIS and HAL repositories take 59 seconds a job, raspberrypi's sdk, lwip, cyw43 and PicoDVI 17 seconds, 159 times per full run. The common submodule cache holds extmod/ulab, lib/ and tools/ and stays as it is; board jobs add a second entry with ports/<port>, keyed by the port and the state of its submodules. espressif and zephyr-cp keep their own arrangements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
every board job of a port clones the port's submodules over the network: stm's 29 CMSIS and HAL repositories take 59 seconds a job, raspberrypi's sdk, lwip, cyw43 and PicoDVI 17 seconds, 159 times per full run. The submodule cache holds
extmod/ulab,lib/andtools/only.Board jobs of stm, raspberrypi and mimxrt10xx now get a second entry,
submodules-<port>-<hash>, with.git/modules/ports/<port>and the port's submodule paths. The first job of a port to miss saves it, the rest read it. The common cache stays as it is.Measured on my fork, warm:
espressif keeps its own
submodules-idfcache for now; it could move to this mechanism in a follow-up if you want.