Repository navigation
Conversation
…oncurrency default Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d config default Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deploying infrahub-sdk-python with
|
| Latest commit: |
8f75677
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ece6c2ce.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://pha-inbox-171.infrahub-sdk-python.pages.dev |
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## stable #1574 +/- ##
==========================================
- Coverage 88.30% 87.88% -0.42%
==========================================
Files 157 157
Lines 16310 15662 -648
Branches 2410 2114 -296
==========================================
- Hits 14402 13765 -637
- Misses 1332 1336 +4
+ Partials 576 561 -15
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
ajtmccarty
left a comment
There was a problem hiding this comment.
not sure if the unit tests are necessary
Review on #1574 questioned whether they are needed. They compared the constant with 5 and the defaults with the constant, so they would still pass if a literal 5 came back at any default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@ajtmccarty agreed, they are removed in 8f75677. They compared the constant with 5 and the defaults with the constant, so they would not have caught a literal 5 coming back. The PR is now the constant, its three uses and the changelog fragment. |
|
🤖 platform-health-agent · approved; re-running one CI job that failed to start · 2026-12-02 UTC details
|
The SDK's default batch concurrency, 5, is now
DEFAULT_MAX_CONCURRENT_EXECUTIONininfrahub_sdk.constants.InfrahubBatch,InfrahubBatchSyncand themax_concurrent_executionfield ofConfiguse it as their default instead of three separate literal 5s. The value, the signatures and theINFRAHUB_MAX_CONCURRENT_EXECUTIONenvironment override are unchanged.Code that receives an optional concurrency value can now pass the constant when the value is
None, instead of building the batch in two branches. This was asked for in a review of opsmill/infrahub#10113, where_apply_migration_batchdoes exactly that. Removing that conditional in Infrahub needs an SDK release with this constant and apython_sdkbump, so it is not part of this PR. The constant is not re-exported frominfrahub_sdk/__init__.py, which exports only the client andConfig; it sits next toInfrahubClientModeandPriority.infrahubctl dumpkeeps its own default of 4.The change adds no tests: review questioned the ones it had, and they compared the defaults with 5, so they would not have caught a literal 5 coming back. Full unit suite: 3,148 passed, 2 skipped, 1 xfailed.
invoke format,invoke lint(with Vale 3.7.1) andinvoke docs-validatepass. Tracked as INBOX-171.🤖 Generated with Claude Code