Skip to content

Merge develop into infrahub-develop#1074

Open
infrahub-github-bot-app[bot] wants to merge 16 commits into
infrahub-developfrom
develop
Open

Merge develop into infrahub-develop#1074
infrahub-github-bot-app[bot] wants to merge 16 commits into
infrahub-developfrom
develop

Conversation

@infrahub-github-bot-app

@infrahub-github-bot-app infrahub-github-bot-app Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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


Summary by cubic

Sync branches with SDK fixes and dependency bumps: validate upsert when HFID includes a pool-backed attribute (IHS-119), preserve unfetched optional 1:1 relationships on save, and detect existing repos in .git worktrees; update pyarrow 23.0.1, starlette 1.0.1, fastapi 0.136.3, and infrahub-testcontainers 1.9.8.

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

Review in cubic

petercrocker and others added 5 commits May 16, 2026 15:45
GitRepoManager.initialize_repo() checked for `.git` with `.is_dir()`, which
misses git worktrees (`.git` is a file containing `gitdir: ...`). The
existing-repo branch was skipped and `Repo.init` then crashed with
`FileExistsError` trying to mkdir the gitlink file. This made `infrahubctl
transform` (and any other CLI relying on branch auto-detection) unusable from
a worktree.

Switch the check to `.exists()` — dulwich's `Repo(path)` already resolves
the gitlink to the real controldir, and `porcelain.active_branch` returns
the worktree's branch correctly.
Bumps [starlette](https://github.com/Kludex/starlette) from 0.49.3 to 1.0.1.
- [Release notes](https://github.com/Kludex/starlette/releases)
- [Changelog](https://github.com/Kludex/starlette/blob/main/docs/release-notes.md)
- [Commits](Kludex/starlette@0.49.3...1.0.1)

---
updated-dependencies:
- dependency-name: starlette
  dependency-version: 1.0.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [pyarrow](https://github.com/apache/arrow) from 22.0.0 to 23.0.1.
- [Release notes](https://github.com/apache/arrow/releases)
- [Commits](apache/arrow@apache-arrow-22.0.0...apache-arrow-23.0.1)

---
updated-dependencies:
- dependency-name: pyarrow
  dependency-version: 23.0.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
chore(deps): bump pyarrow from 22.0.0 to 23.0.1
Merge stable into develop
@infrahub-github-bot-app infrahub-github-bot-app Bot requested a review from a team as a code owner June 10, 2026 11:21
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9d42f09
Status: ✅  Deploy successful!
Preview URL: https://5f758b8f.infrahub-sdk-python.pages.dev
Branch Preview URL: https://develop.infrahub-sdk-python.pages.dev

View logs

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                 Coverage Diff                  @@
##           infrahub-develop    #1074      +/-   ##
====================================================
+ Coverage             81.84%   82.32%   +0.47%     
====================================================
  Files                   135      135              
  Lines                 11684    11992     +308     
  Branches               1766     1793      +27     
====================================================
+ Hits                   9563     9872     +309     
  Misses                 1571     1571              
+ Partials                550      549       -1     
Flag Coverage Δ
integration-tests 42.56% <74.07%> (+0.97%) ⬆️
python-3.10 56.01% <77.77%> (+0.83%) ⬆️
python-3.11 56.02% <77.77%> (+0.83%) ⬆️
python-3.12 56.02% <77.77%> (+0.85%) ⬆️
python-3.13 56.02% <77.77%> (+0.83%) ⬆️
python-3.14 56.01% <77.77%> (+0.83%) ⬆️
python-filler-3.12 22.37% <11.11%> (-0.06%) ⬇️

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

Files with missing lines Coverage Δ
infrahub_sdk/node/attribute.py 100.00% <100.00%> (ø)
infrahub_sdk/node/node.py 87.47% <100.00%> (+0.29%) ⬆️
infrahub_sdk/node/related_node.py 91.05% <100.00%> (+0.04%) ⬆️
infrahub_sdk/repository.py 100.00% <100.00%> (ø)

... 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.

ogenstad and others added 11 commits June 10, 2026 14:04
chore(deps): bump starlette from 0.49.3 to 1.0.1
Merge stable into develop
fix(repository): detect existing repo when .git is a worktree gitlink
…on upsert

A node hydrated by `from_graphql` from a partial response would silently null-clear
any optional cardinality-one relationship the response did not fetch, because the
serialization gate could not distinguish "never loaded" from "explicitly cleared".

Add `_peer_has_been_mutated` on `RelatedNodeBase`, flipped by `Node.__setattr__` on
explicit assignment, and require it in the gate. Mirrors the existing
`value_has_been_mutated` pattern on attributes.
)

Bumps [infrahub-testcontainers](https://github.com/opsmill/infrahub) from 1.9.7 to 1.9.8.
- [Release notes](https://github.com/opsmill/infrahub/releases)
- [Changelog](https://github.com/opsmill/infrahub/blob/stable/CHANGELOG.md)
- [Commits](opsmill/infrahub@infrahub-v1.9.7...infrahub-v1.9.8)

---
updated-dependencies:
- dependency-name: infrahub-testcontainers
  dependency-version: 1.9.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ched-rels

fix(node): preserve unfetched optional one-cardinality relationships on upsert
…evelop-20260616

# Conflicts:
#	infrahub_sdk/node/attribute.py
develop (94559a0) removed the CoreNodeBase import and switched to duck-typed
hasattr(self.value, "is_resource_pool") checks. stable added the new
is_unresolved_pool_attribute method still using isinstance(self.value, CoreNodeBase).
Keep develop's refactored is_from_pool_attribute and port the new method to the
hasattr style so it doesn't reference the now-unimported CoreNodeBase.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the type/documentation Improvements or additions to documentation label Jun 16, 2026
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.

5 participants