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
-
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,
projectA
andprojectB
, whereprojectB
depends onprojectA
. Each project has a:test
task that depends on a:build
task.For the sake of simplicity, let's say that I create two Gitlab jobs:
projectA-test-job
runs:projectB-test-job
runs: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
projectA
andprojectB
, 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 ci
that 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