Add watch statement to artifact definitions#1058
Merged
ogenstad merged 2 commits intoJun 4, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #1058 +/- ##
====================================================
+ Coverage 81.71% 81.73% +0.02%
====================================================
Files 135 135
Lines 11637 11642 +5
Branches 1759 1759
====================================================
+ Hits 9509 9516 +7
+ Misses 1576 1573 -3
- Partials 552 553 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
1 issue found across 2 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Deploying infrahub-sdk-python with
|
| Latest commit: |
7959635
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dfd21069.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://pog-artifact-regeneration-wa.infrahub-sdk-python.pages.dev |
gmazoyer
approved these changes
Jun 4, 2026
This was referenced Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Add watch section under artifact definitions, part of the larger effort in opsmill/infrahub#9414
Closes IHS-238
What changed
Summary by cubic
Add an optional
watchsection to artifact transforms ininfrahub_sdkto list extra files and directories that trigger regeneration. Supports IHS-238 by rebuilding artifacts on Git changes that aren’t auto-detected.InfrahubWatchConfigwithfiles: list[str]; directories are recursive; unknown keys are rejected.watchsupported onInfrahubJinja2TransformConfigandInfrahubPythonTransformConfig; included inpayloadonly when set.Written for commit 7959635. Summary will update on new commits.