test: correct the REST deviation records - #725
owenpearson wants to merge 1 commit into
Conversation
A triage of the REST entries in deviations.md found several that do not hold against features.md or the code. TP3a/d/g are not an SDK gap: RealtimeChannel._on_message fills the presence fields through Message.update_inner_message_fields, and the derived helper now does the same, so the three tests pass ungated. RSA16c's expiry renewal and RSA16d's switch to basic auth are spec errors (RSA4b1, and RSA10a/e/f), so they are marked @spec_error. The batch envelope entry now names batch_publish.md as the spec at fault, since RSC22b returns an array of BatchResults. RSA4 and RSA12a move to the adapted rows they belong in, labels and statuses are corrected, new spec faults are recorded as not yet filed, duplicate rows are removed, and the header counts are re-measured. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe deviation document updates UTS counts, specification-fault entries, and REST behavior observations. REST unit tests update token-detail deviation classifications and presence-message decoding expectations. ChangesUTS deviation records and REST tests
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The changes align conformance records and test expectations without changing SDK runtime behavior. No merge-blocking issue remains identified; merge after normal checks pass. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
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. A rabbit checks the test list twice, Comment |
A triage of the REST entries in
test/uts/deviations.mdfound several that are wrong: an SDK gap that isn't one, spec errors filed as deviations, a spec fault blamed on the wrong spec, adapted tests listed as failing, wrong labels, and statuses that don't hold up againstfeatures.md. This corrects them and re-measures the counts in the header.Test changes
Tests change only where their classification changes.
RealtimeChannel._on_messagecallsMessage.update_inner_message_fieldsbefore decoding. The derived helper skipped that step. It now makes the same call, and TP3g compares against adatetime, astest_tp3_presence_from_jsonalready does. All three pass.@deviationto@spec_error.authorize()to switch a client back to basic auth, which RSA10a/RSA10e/RSA10f rule out. ably-js rejects the setup with 40102.deviations.mdcorrectionsbatchPublishreturn "an array ofBatchResults". ably-js's sandbox tests and the sandbox's ownGET /presence?channels=response both use the envelope, so the fault isbatch_publish.md's flat results, notbatch_presence.md. This was never filed upstream.httpRequestTimeoutrow is TO3l4, not TO3l1 (disconnectedRetryTimeout).@catch_allwould not close it.validate_message_sizeis not a TM6 calculation.authorizationheader sends two auth headers.urljoinresolves dot-segments in device ids.quote_plusreaches presence, annotations, serials and realtime history too.%3A.test_ti_errorinfo_from_jsonadaptation is now recorded.client_id.md: RSA15a timing, and the RSA12a/b labels.token_request_params.md: RSA5c/RSA6c labels.request.md: RSC19b "may vary".fallback.md: REC1b1/c1 40000.batch_publish.md: RSC22_Error1/2.features.md: HP8 prose vs IDL.test_to3_client_options_custom_hostsadaptation.fallbackHostsUseDefault's REC2b test, and its removal in 2.0.Counts
Measured by collecting the suite and mapping each item to its
# UTS:id. Against unchangedmain, this reproduces the existing header exactly.helpers/cases: 130, not 122.Not in this PR
Testing
uv run --frozen --extra crypto --extra dev pytest test/uts -q: 1134 passed, 230 skipped.RUN_DEVIATIONS=1 uv run --frozen --extra crypto --extra dev pytest test/uts -q: 215 failed, 1134 passed, 15 skipped. Every gated case fails when enabled.uv run ruff check: clean.🤖 Generated with Claude Code
Summary by CodeRabbit