Repository navigation
Add push state attributes to repository protocols [IFC-3313] - #1400
Merged
Merged
Conversation
Deploying infrahub-sdk-python with
|
| Latest commit: |
4327210
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e8a5d2e2.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://gma-20261006-ifc-3313.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #1400 +/- ##
====================================================
+ Coverage 86.81% 86.83% +0.01%
====================================================
Files 152 152
Lines 14763 14781 +18
Branches 1982 1982
====================================================
+ Hits 12817 12835 +18
Misses 1382 1382
Partials 564 564
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Infrahub adds nine read-only attributes to CoreRepository. They store the state of the pushes that wait for the remote, so that a failed push shows on the repository. This file is generated from the Infrahub core schema. Without these lines, invoke backend.generate in the Infrahub repository leaves the file dirty and the validate-generated job fails.
gmazoyer
force-pushed
the
gma-20261006-ifc-3313
branch
from
October 7, 2026 13:23
b37f299 to
0e9497a
Compare
gmazoyer
changed the base branch from
infrahub-develop
to
gma-20261006-ifc-3284
October 7, 2026 13:23
gmazoyer
force-pushed
the
gma-20261006-ifc-3313
branch
from
October 7, 2026 20:42
0e9497a to
9d21dac
Compare
gmazoyer
added a commit
to opsmill/infrahub
that referenced
this pull request
Oct 9, 2026
T019 and T026 are done in this PR: the nine attributes and the test of the mutation inputs are here. T020 stays open and says why: the generated files are committed, but its SDK gate is open until opsmill/infrahub-sdk-python#1400 merges and the python_sdk pointer moves to infrahub-develop.
gmazoyer
added a commit
to opsmill/infrahub
that referenced
this pull request
Oct 9, 2026
The nine attributes change the core protocols, the GraphQL schema and the frontend GraphQL types. The python_sdk pointer names the commit of opsmill/infrahub-sdk-python#1400, which adds the attributes to the SDK protocols on top of infrahub-develop.
gmazoyer
force-pushed
the
gma-20261006-ifc-3313
branch
from
October 12, 2026 08:00
9d21dac to
4327210
Compare
gmazoyer
added a commit
to opsmill/infrahub
that referenced
this pull request
Oct 12, 2026
T019 and T026 are done in this PR: the nine attributes and the test of the mutation inputs are here. T020 stays open and says why: the generated files are committed, but its SDK gate is open until opsmill/infrahub-sdk-python#1400 merges and the python_sdk pointer moves to infrahub-develop.
gmazoyer
added a commit
to opsmill/infrahub
that referenced
this pull request
Oct 12, 2026
The nine attributes change the core protocols, the GraphQL schema and the frontend GraphQL types. The python_sdk pointer names the commit of opsmill/infrahub-sdk-python#1400, which adds the attributes to the SDK protocols on top of infrahub-develop.
gmazoyer
added a commit
to opsmill/infrahub
that referenced
this pull request
Oct 12, 2026
The nine attributes change the core protocols, the GraphQL schema and the frontend GraphQL types. The python_sdk pointer names the commit of opsmill/infrahub-sdk-python#1400, which adds the attributes to the SDK protocols on top of infrahub-develop.
8 tasks done
gmazoyer
marked this pull request as ready for review
October 14, 2026 15:14
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
Infrahub adds nine read-only attributes to
CoreRepository. They store the state of the pushes that wait for the Git remote, so that a failed push shows on the repository.protocols.pyis generated from the Infrahub core schema. Without these lines,invoke backend.generatein the Infrahub repository leaves the file dirty and thevalidate-generatedjob fails.What changed
delivery_*attributes are added toCoreRepositoryandCoreRepositorySync.Nothing else.
invoke backend.generatein the Infrahub repository renders the file.How to review
One commit on top of
infrahub-develop(7ed9b39), which already has the rewrite record attributes. The Infrahub companion PR points the submodule at this commit.Summary by cubic
Adds nine read-only
delivery_*attributes to theCoreRepositoryandCoreRepositorySyncprotocols, so repositories can hold the pending push state and surface failed pushes.protocols.pyis generated from the Infrahub core schema; these lines keep the generated file clean and thevalidate-generatedjob passing. Part 3 of 5 of IFC-3313, with the companion Infrahub PR at opsmill/infrahub#10987.Written for commit 4327210. Summary will update on new commits.
Relates to
Infrahub companion PR: opsmill/infrahub#10987 (the push state attributes, part 3 of 5 of IFC-3313)