Skip to content

Merge develop into infrahub-develop#1122

Merged
ajtmccarty merged 2 commits into
infrahub-developfrom
develop
Jul 1, 2026
Merged

Merge develop into infrahub-develop#1122
ajtmccarty merged 2 commits into
infrahub-developfrom
develop

Conversation

@infrahub-github-bot-app

@infrahub-github-bot-app infrahub-github-bot-app Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Merging develop into infrahub-develop after merging pull request #1121.


Summary by cubic

Adds exhaustive path search control and truncation visibility to graph traversal in the Python SDK. Introduces a shortest_paths_only flag and surfaces truncated_at_depth in results, with docs and tests.

  • New Features
    • Added shortest_paths_only to traverse_paths (async and sync in infrahub_sdk) to return all loopless paths when False; omitted by default to use the server’s shortest-paths behavior.
    • Parse and expose truncated_at_depth in PathTraversalResult; GraphQL query updated to request the field.
    • Updated guides and SDK reference with examples and behavior notes; added tests for input building, omission behavior, and result parsing.
    • Added spelling exception for “loopless”.

Written for commit 9b9fd26. Summary will update on new commits.

Review in cubic

* support for truncated_at_depth and shortest_paths_only

* docs formatting update
Merge stable into develop
@infrahub-github-bot-app infrahub-github-bot-app Bot requested a review from a team as a code owner July 1, 2026 15:29
@github-actions github-actions Bot added the type/documentation Improvements or additions to documentation label Jul 1, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9b9fd26
Status: ✅  Deploy successful!
Preview URL: https://49db64b8.infrahub-sdk-python.pages.dev
Branch Preview URL: https://develop.infrahub-sdk-python.pages.dev

View logs

@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                Coverage Diff                @@
##           infrahub-develop    #1122   +/-   ##
=================================================
  Coverage             82.16%   82.16%           
=================================================
  Files                   138      138           
  Lines                 11897    11898    +1     
  Branches               1784     1784           
=================================================
+ Hits                   9775     9776    +1     
  Misses                 1572     1572           
  Partials                550      550           
Flag Coverage Δ
integration-tests 41.17% <0.00%> (-0.02%) ⬇️
python-3.10 55.26% <0.00%> (+0.01%) ⬆️
python-3.11 55.24% <0.00%> (-0.03%) ⬇️
python-3.12 55.26% <0.00%> (-0.01%) ⬇️
python-3.13 55.26% <0.00%> (-0.01%) ⬇️
python-3.14 55.24% <0.00%> (-0.03%) ⬇️
python-filler-3.12 22.76% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/client.py 75.54% <ø> (ø)
infrahub_sdk/graph_traversal/models.py 96.82% <100.00%> (+0.05%) ⬆️
infrahub_sdk/graph_traversal/query.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajtmccarty ajtmccarty merged commit 790eb2c into infrahub-develop Jul 1, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant