Merge develop into infrahub-release-1.12

Merged
OG
25d ago
+1749-57

Summary

Merges develop into infrahub-release-1.12. Two commits are added: the merge commit and one commit that resolves the conflict. No commits were rebased or rewritten.

  • 117950f: the merge commit, with the conflict markers in infrahub_sdk/spec/object.py left in place so that the resolution shows as its own diff
  • b73a4a4: the commit that resolves the conflict

Conflicts resolved

  • infrahub_sdk/spec/object.py, imports: infrahub-release-1.12 added peers_are_inline_input (from c1cf8e2). develop added NodeSchemaAPI (from #1432). The resolution keeps both imports. (b73a4a4)
  • infrahub_sdk/spec/object.py, InfrahubObjectFileData.create_node:
    • develop (#1432) changed the ONE_REF branch so it calls _clean_reference(), which resolves HFID references to a generic peer.
    • infrahub-release-1.12 (c1cf8e2) added an elif rel_info.peers_are_inline_fields: branch after it.
    • The resolution keeps develop's body for the ONE_REF branch and keeps the release branch's new branch unchanged after it.
    • The two branches handle different relationship formats, so neither can catch a value meant for the other. peers_are_inline_fields is true only for MANY_OBJ_DICT_LIST and MANY_OBJ_LIST_DICT. _clean_reference() handles only ONE_REF and MANY_REF.
    • (b73a4a4)

Files merged without a conflict

  • pyproject.toml: takes develop's graphql-core>=3.2.12,<3.3 and keeps infrahub-release-1.12's Python version range and optional dependencies.
  • uv.lock: locks graphql-core 3.2.13. uv lock --check passes, so the lock file was not regenerated.
  • tests/unit/sdk/spec/test_object.py: has the changes from both #1397 and #1432.
  • develop removed normalize_hfid_references(). Nothing in the merged code calls it.

Checks run locally

  • uv run invoke format lint-code (ruff, ty, mypy): passes
  • uv run pytest tests/unit: 3139 passed, 2 skipped, 1 xfailed
  • uv run invoke docs-validate: passes

I did not run the integration tests locally, because they need a running Infrahub instance. CI runs them. They include the tests #1432 added in tests/integration/test_spec_object.py. Those tests show whether HFID references to a generic peer work against the 1.12 server.

šŸ¤– Generated with Claude Code