Skip to content

chore(agents): suggest running Infrahub CI for changes Infrahub uses - #1427

Open
saltas888 wants to merge 3 commits into
stablefrom
ds/agents-infrahub-ci-check
Open

saltas888 wants to merge 3 commits into
stablefrom
ds/agents-infrahub-ci-check

Conversation

@saltas888

@saltas888 saltas888 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Why

Docs only:

The CI of this repository runs the SDK unit tests, and integration tests against an Infrahub image started by infrahub-testcontainers. It does not run Infrahub's own tests, which use the SDK from the python_sdk submodule, so a change to code that Infrahub calls can pass here and still break Infrahub. Running Infrahub's CI against the SDK branch finds this before the merge: a draft pull request in opsmill/infrahub that only moves the submodule. This came up on #1423.

The CI of this repository does not run Infrahub's own tests, which use the
SDK from the python_sdk submodule. A rule for files under infrahub_sdk/ asks
the agent to suggest a draft, do-not-merge pull request in opsmill/infrahub
before such a change is merged, and a guide lists the steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@saltas888 saltas888 added type/housekeeping Maintenance task ci/skip-changelog Don't include this PR in the changelog labels Oct 16, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: b8fa1ac
Status: ✅  Deploy successful!
Preview URL: https://d00ebdf4.infrahub-sdk-python.pages.dev
Branch Preview URL: https://ds-agents-infrahub-ci-check.infrahub-sdk-python.pages.dev

View logs

@saltas888
saltas888 marked this pull request as ready for review October 16, 2026 15:01
The guide's gh pr create command had no body, so it failed outside a
terminal. The up-to-date check read the submodule HEAD instead of the
pinned commit, and the rule for other base branches matched Infrahub
stable for every SDK branch. The rule now also loads for pyproject.toml,
whose dependencies Infrahub resolves, and AGENTS.md keeps only the
ask-first entry so the when-to-suggest text lives in the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment on lines +48 to +52
## Read the results

- Compare a failing job with the latest run of the same job on the Infrahub branch. A job that also fails there is not caused by the SDK change.
- Link the Infrahub pull request from the SDK pull request, with the result.
- Close the Infrahub pull request and delete its branch when you are done. It is never merged: SDK releases reach Infrahub through Infrahub's submodule update workflow.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the CI, a failed light check fails huge-runner-gate. The gate then skips the component, integration and functional backend jobs. A pointer-only PR can trip this, for example when the SDK change modifies InfrahubRepositoryConfig. Then dotinfrahub.mdx is stale and validate-generated-documentation fails. Could you add a line to say that a skipped backend job is not a pass, and to check huge-runner-gate also?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. adjusting.

@saltas888
saltas888 requested a review from gmazoyer October 20, 2026 10:33
…sults

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/skip-changelog Don't include this PR in the changelog type/housekeeping Maintenance task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants