Allow for Delta Runs #175
JeroenKnoops
started this conversation in
Ideas
Replies: 1 comment
-
Fantastic idea @JeroenKnoops 🚀
Yep, please, go on, and once ready proceed with a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
We're making a great use of this template.
We're very happy, but in a large organization, this solution does not scale.
When adding 1 person to a group, all repositories are being checked and the run can take up to 3 hours.
Solution
Instead of running everything for all repositories and users, we can also only run the scripts on the files which are changed in the PR.
How to determine which files are necessary
We've created a CLI tool to determine which files need to be included for certain changes.
When a
repos
file has been changed, we're looking in thegroups
folder for files which are used for thoserepos
. Same for changes in agroups
file, we're looking into therepos
folder for relevant files until we found all relevant files.Process
We're removing all files in
repos
andgroups
and only add the found files and process as normal.Every night we run a complete check.
We can trigger a complete run of x hours manually, if needed.
Used tools
tj-actions/changed-files@v35
Share
Do you want me to share this code in a separate repository so people can use these delta runs as well?
Beta Was this translation helpful? Give feedback.
All reactions