Skip to content

Merge stable into develop - #1238

Merged
infrahub-github-bot-app[bot] merged 3 commits into
developfrom
stable
Aug 11, 2026
Merged

Merge stable into develop#1238
infrahub-github-bot-app[bot] merged 3 commits into
developfrom
stable

Conversation

@infrahub-github-bot-app

@infrahub-github-bot-app infrahub-github-bot-app Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Merging stable into develop after merging pull request #1237.


Summary by cubic

Register the infrahub_integration pytest marker under its real name and enable --strict-markers with tests to catch unregistered markers. Update the compatibility matrix to include Infrahub 1.10.7 → SDK 1.22.2.

Written for commit f2eb9e2. Summary will update on new commits.

Review in cubic

gmazoyer and others added 3 commits August 10, 2026 15:13
…ame (#1233)

The marker was registered as `infrahub_integraton`, with a missing `i`, but the
loader applies `infrahub_integration`. So the marker we really use was never
registered, and the one we registered was never used. The description carried the
same kind of typo, `Integation`.

Integration tests raised a `PytestUnknownMarkWarning` on every run, and collection
failed under `--strict-markers`. `pytest --markers` also listed a marker that
nothing applies, which misleads anyone selecting tests by marker.

Turn on `--strict-markers` for our own test run so an unregistered marker fails the
build instead of passing with a warning nobody reads.

Two tests guard the marker names. The type markers are applied while collecting, so
`--strict-markers` rejects an unregistered one. The resource markers cannot be
checked that way: `MARKER_MAPPING` is built when the loader is imported, so those
marks exist before a config is attached, and `MarkGenerator` only validates a mark
once it has one. Those are compared against the registered list instead, with the
expected names taken from `MARKER_MAPPING`, so a new resource marker is covered on
its own.

Fixes #1231
@infrahub-github-bot-app
infrahub-github-bot-app Bot requested a review from a team as a code owner August 11, 2026 18:38
@github-actions github-actions Bot added the type/documentation Improvements or additions to documentation label Aug 11, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: f2eb9e2
Status: ✅  Deploy successful!
Preview URL: https://35d96537.infrahub-sdk-python.pages.dev

View logs

@infrahub-github-bot-app
infrahub-github-bot-app Bot merged commit 3c833c6 into develop Aug 11, 2026
37 checks passed
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.

3 participants