DEV Community

Discussion on: What have you always wanted to see in your CI?

 
bradtaniguchi profile image
Brad • Edited

Right now tests don't take that long, but we also execute "sanity builds" which take a minute or so. Right now we don't even test everything automatically, otherwise the parallelization of running all of the tests at the same time "freezes" the CI instance. (I think due to lack of ram?)

Having a list of things to not focus on is less useful than having a list of directories to only focus on, this would match with our current CI environment settings (google cloud build), which currently isn't supported with github-actions (to my knowledge).

The main 3 requirements we'd be looking for in a "generic github-action conditional change checker" would be:

  • list of stuff to watch for changes
  • configure what to compare to (previous release, previous CI run, previous commit, master, etc)
  • list of dependencies to do stuff for
    • this is the hardest, since it would require knowing what dependencies exist in some format. NX uses a json file configuration that works with angular.json to determine which projects/libs rely on each other. This also needs to be generic enough to work easily with most common tooling to execute multiple steps depending on what files changed.
Thread Thread
 
almenon profile image
Almenon

I recently found github.com/dorny/paths-filter, it may be helpful for you. It can help you conditionally execute things based on file changes (assuming you use github actions). It doesn't have a option to compare against previous commit / CI run however.