Fix live demo catalogue synthetic drift - #81
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Final exact-head receiptExact head:
No release or deploy occurred. Observe at least one scheduled synthetic run after merge before closing #79/#80 or treating SDK health as promotable. |
Decision
Restore the hourly SDK synthetic without pinning an intentionally mutable demo catalogue count, and make the always-on keyless monitor fail on every request error. This closes the measured false-red contract in #79/#80 and the red-team false-green path; it does not change the API, entitlements, package version, or published SDK.
Change
Adversarial review fixes
The initial draft said all nine core rows had to be usable, but only validated Brent's row fields. Commit
f223d744ae4fe8df33671eb7031b88f03805dd59closes that false-pass path and also rejects duplicate current rows.The second review found that
httpx.HTTPErrorincludesHTTPStatusError, so 404/429/5xx responses were caught and reported as skipped green. It also meant a DNS/API transport outage could skip the workflow despite the workflow's explicit "always runs / cannot silently skip" contract. Current head81fe122fbc4fbc27e986cc3cb0743381ecbf5a90removes all request-error skips. A regression injects status, transport, and OS failures while replacingpytest.skipwith a hard failure, so reintroducing either false-green path fails the suite.Red / green proof
Catalogue drift red before the change: live production contract suite failed 3 of 4 tests (34 returned price rows and 37 configured demo codes versus three exact
== 9assertions).False-green regression red against the previous catch: 3/3 failed because status, transport, and OS failures were converted to skips.
At exact head
81fe122fbc4fbc27e986cc3cb0743381ecbf5a90locally:git diff --check: cleanHosted live and Python 3.8-3.12 checks must be green at this exact head before approval. No release, deploy, credential, API mutation, email, SMS, or customer action occurred. After merge, observe an hourly scheduled run with zero skipped keyless tests before closing #79/#80 or treating the monitor as recovered.