Replies: 1 comment 4 replies
-
|
@chadrik |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to generate a graph of CI jobs that mirror the dependency graph in moon. My specific case is for Gitlab, but this should apply to other CI platforms as well.
Consider an example where I have a repo with two projects,
projectAandprojectB, whereprojectBdepends onprojectA. Each project has a:testtask that depends on a:buildtask.For the sake of simplicity, let's say that I create two Gitlab jobs:
projectA-test-jobruns:projectB-test-jobruns:The second job is setup in Gitlab to only run after the first job completes.
If I push up a commit that modifies files in both
projectAandprojectB, how do I prevent the second job from rerunning the build forprojectA? I suspect remote caching is a potential solution, but I'm running Gitlab behind a firewall and I can't use moonbase. The docs are somewhat discouraging about managing the output cache yourself:I don't see any detailed explanation of how to do this myself.
I think caching outputs is really not what I need anyway, because my toolchain (which is not yet supported by moon) stores its outputs outside of the repository root (in a shared location in
~/).I think what I'm really looking for is a way to indicate to
moon cithat it should only run tasks in the current project and not dependent projects. Maybe it could be a new target type like:Or even more granular/brute-force, a flag to skip all dependent tasks:
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions