fix: improve clone perf by skipping unused repos
Avoid cloning projects that aren't required by the current build
configuration. The top-level job performs the initial clone during a
test run, while sub-jobs copy repositories into their workspace. In the
CI environment, copying repositories over the network in AWS is a costly
operation, significantly slowing down the build, especially since
submodules are now also cloned.
This change enhances performance by ensuring that the clone script only
clones or copies necessary repositories based on the build
configuration. If no configuration is available (e.g., when running in
`tf-a-main`), all repositories are cloned as before, but unnecessary
copies at the `tf-a-builder` level are still avoided.
Change-Id: I30dbac1ab0b2f16d0d757fd423ae70920ebca7e1
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
1 file changed