Skip to content

Add infrahubctl graphql query-report command#976

Draft
ogenstad wants to merge 1 commit intodevelopfrom
pog-graphql-query-report-ifc-2236
Draft

Add infrahubctl graphql query-report command#976
ogenstad wants to merge 1 commit intodevelopfrom
pog-graphql-query-report-ifc-2236

Conversation

@ogenstad
Copy link
Copy Markdown
Contributor

Placeholder PR for now, will be picked up when opsmill/infrahub#9055 has been merged and Infrahub 1.9.1 has been released.

Example output

blue on  main [⇡] via 🐍 v3.12.12 (infrahub-sdk) on ☁️   took 2s
❯ /Users/patrick/Code/opsmill/infrahub/.venv/bin/infrahubctl graphql query-report gen
Query 'gen' (local: generators/gen.gql)
Targets unique nodes: false — all artifacts for the definition will be regenerated on any relevant node change.

blue on  main [⇡] via 🐍 v3.12.12 (infrahub-sdk) on ☁️
❯ /Users/patrick/Code/opsmill/infrahub/.venv/bin/infrahubctl graphql query-report character
Query 'character' (local: checks/character.gql)
Targets unique nodes: true — Infrahub will limit artifact regeneration to changed nodes only.

Why

Closes

What changed

How to review

How to test

# Commands to validate

Impact & rollout

  • Backward compatibility:
  • Performance:
  • Config/env changes:
  • Deployment notes:

Checklist

  • Tests added/updated
  • Changelog entry added (uv run towncrier create ...)
  • External docs updated (if user-facing or ops-facing change)
  • Internal .md docs updated (internal knowledge and AI code tools knowledge)

@github-actions github-actions Bot added the type/documentation Improvements or additions to documentation label Apr 28, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@             Coverage Diff             @@
##           develop     #976      +/-   ##
===========================================
+ Coverage    81.43%   81.47%   +0.04%     
===========================================
  Files          134      134              
  Lines        11359    11373      +14     
  Branches      1703     1707       +4     
===========================================
+ Hits          9250     9266      +16     
+ Misses        1566     1565       -1     
+ Partials       543      542       -1     
Flag Coverage Δ
integration-tests 41.80% <23.07%> (-0.11%) ⬇️
python-3.10 54.48% <100.00%> (+0.07%) ⬆️
python-3.11 54.47% <100.00%> (+0.07%) ⬆️
python-3.12 54.48% <100.00%> (+0.07%) ⬆️
python-3.13 54.48% <100.00%> (+0.07%) ⬆️
python-3.14 54.46% <100.00%> (+0.05%) ⬆️
python-filler-3.12 22.69% <0.00%> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
infrahub_sdk/ctl/graphql.py 90.98% <100.00%> (+2.44%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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