GitLab CI Needs Graph Inspector
Inspect explicit GitLab CI job dependencies and detect missing jobs or cycles.
Processing stays in your browser. Includes, extends, rules, parallel matrices and cross-project needs are not expanded. Use GitLab CI Lint for the complete merged pipeline.
How to use the gitlab ci needs graph inspector
Review gitlab ci yaml using the supplied worked example. Replace the example with your own data and choose Run tool. Inspect the result against the method below before copying or downloading it. Editing an input clears the previous result.
How the tool works
Visible jobs and local needs entries become a dependency graph. Reserved top-level keys and hidden templates are excluded. The report distinguishes a declared DAG from the stage scheduler.
Worked example
View the example inputs
- GitLab CI YAML
- stages: [build, test] build-app: stage: build script: npm run build test-app: stage: test needs: [build-app] script: npm test
test-app depends on build-app, so the sample graph places build-app first.
Good to know
Includes, extends, rules, parallel matrices and cross-project needs are not expanded. Use GitLab CI Lint for the complete merged pipeline.
Sources and implementation notes
Implemented by DevBricks Technologies. Method notes updated . References describe the underlying format, method or API. Local processing runs on your device. Any public provider queries are described above and start when you run the lookup.
Check the graph model before interpreting a path or allocation
Identify what each vertex and edge represents. Decide whether edges are directed, whether repeated edges are meaningful and what a weight measures. Distance, capacity, cost and elapsed time are different quantities. Start with a small graph you can draw on paper and include a disconnected vertex or a cycle when those structures matter to your problem.
Inputs and settings explained
- GitLab CI YAML
- Paste the gitlab ci yaml as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
stages: [build, test] build-app: stage: build script: npm run build test-app: stage: test needs: [build-app] script: npm test
How to review the result
Compare the reported vertices and edges with the supplied graph. A shortest path depends on the weight convention; a flow depends on capacities and the selected source and sink. Some problems permit several equally valid answers, so compare the objective value and constraints rather than expecting one particular ordering. A correct algorithm solves the encoded model, which may omit scheduling, geographic or organizational constraints present in the real task.
- Check vertex identifiers, direction and whether weights can be negative for this method.
- Verify that every reported edge exists and every reported constraint is respected.
- Compare a small known graph before treating a larger result as a practical recommendation.
Common questions about this workflow
Why does another solver return a different ordering?
Several solutions can share the same objective value. Tie-breaking and input order can affect which one is returned. Compare the constraints and objective first; a different route or allocation is not automatically an error.
Does an unreachable vertex mean the real location cannot be reached?
It means no supported path exists in the supplied graph under the stated rules. Check missing edges, direction and source identifiers before drawing a conclusion about the real system.
Built by DevBricks Technologies. Found an unexpected result in GitLab CI Needs Graph Inspector? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.