-
Notifications
You must be signed in to change notification settings - Fork 46
[AIT-1142] fix(liveobjects): objects audit conformance; refactor(uts): shared test-infra module #1228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sacOO7
wants to merge
14
commits into
main
Choose a base branch
from
fix/liveobjects-objects-audit-op-handling
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[AIT-1142] fix(liveobjects): objects audit conformance; refactor(uts): shared test-infra module #1228
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ee2e1f1
fix(liveobjects): spec-compliance fixes from the cross-SDK objects au…
sacOO7 4b357c9
refactor(uts): share test infra via testFixtures, move objects unit s…
sacOO7 8da2152
liveobjects: tag handleStateChange with RTO4 + RTO27 spec comments
sacOO7 3fcb956
fix(liveobjects): align with Objects spec updates (RTO23c1, RTO5a6) a…
sacOO7 ec50ac9
test(liveobjects): port the no-op update UTS unit cases
sacOO7 d96329f
fix(liveobjects): measure ObjectsMap entry keys as UTF-8 byte length …
sacOO7 2d3128f
refactor(uts): make :uts a shared test-infra module; move UTS suites …
sacOO7 c4502c6
fix(uts): deterministic smoke test, contract-correct mocks, run-to-qu…
sacOO7 85040d2
fix(uts): address review round 2 on the shared mock infra
sacOO7 873fcb5
test(liveobjects): fix RTO24b1 CI flake — await the seed before subsc…
sacOO7 e20bc69
Merge pull request #1231 from ably/refactor/uts-shared-infra-module-a…
sacOO7 9afa940
Merge pull request #1229 from ably/refactor/uts-objects-unit-into-liv…
sacOO7 f047486
docs(uts): retire the implemented FUTURE_WORK plan; fix proxy-doc poi…
sacOO7 f9492ab
test(liveobjects): fix RTO23c1 CI flake — pin the sync-waiter ordering
sacOO7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
291 changes: 256 additions & 35 deletions
291
.claude/skills/uts-to-kotlin/references/objects-mapping.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,21 @@ | ||
| { | ||
| "_comment": "Maps each UTS spec module (a dir under specification/uts/) to its target test packages. Output dir = testRoot + '/' + tier entry; Kotlin package = that path after 'src/test/kotlin/' with '/' -> '.'. An optional 'notes' field points (relative to this skill dir) to a per-module ably-js -> ably-java translation reference, read before translating that module. Used by the uts-to-kotlin skill.", | ||
| "testRoot": "uts/src/test/kotlin/io/ably/lib/uts", | ||
| "_comment": "Maps each UTS spec module (a dir under specification/uts/) to its target test directory per tier. Each tier value is ONE repo-root-relative path (never machine-absolute); the Kotlin package is the path after 'src/test/kotlin/' with '/' -> '.'; the owning Gradle module is the path's first segment (lib/ -> :java, liveobjects/ -> :liveobjects, uts/ -> :uts). Every tier path MUST keep a module segment after the tier (e.g. 'unit/realtime', never bare 'unit') so a derived package can never collide with a :uts smoke package (io.ably.lib.uts.unit / .integration.standard / .integration.proxy) — an invariant currently held only by construction. An optional 'notes' field points (relative to this skill dir) to a per-module ably-js -> ably-java translation reference, read before translating that module. Used by the uts-to-kotlin skill (scripts/resolve_uts.py).", | ||
| "packages": { | ||
| "realtime": { | ||
| "unit": "unit/realtime", | ||
| "integration": "integration/standard/realtime", | ||
| "proxy": "integration/proxy/realtime" | ||
| "unit": "lib/src/test/kotlin/io/ably/lib/uts/unit/realtime", | ||
| "integration": "lib/src/test/kotlin/io/ably/lib/uts/integration/standard/realtime", | ||
| "proxy": "lib/src/test/kotlin/io/ably/lib/uts/integration/proxy/realtime" | ||
| }, | ||
| "objects": { | ||
| "unit": "unit/liveobjects", | ||
| "integration": "integration/standard/liveobjects", | ||
| "proxy": "integration/proxy/liveobjects", | ||
| "unit": "liveobjects/src/test/kotlin/io/ably/lib/liveobjects/uts/unit", | ||
| "integration": "liveobjects/src/test/kotlin/io/ably/lib/liveobjects/uts/integration", | ||
| "proxy": "liveobjects/src/test/kotlin/io/ably/lib/liveobjects/uts/proxy", | ||
| "notes": "references/objects-mapping.md" | ||
| }, | ||
| "rest": { | ||
| "unit": "unit/rest", | ||
| "integration": "integration/standard/rest", | ||
| "proxy": "integration/proxy/rest" | ||
| "unit": "lib/src/test/kotlin/io/ably/lib/uts/unit/rest", | ||
| "integration": "lib/src/test/kotlin/io/ably/lib/uts/integration/standard/rest", | ||
| "proxy": "lib/src/test/kotlin/io/ably/lib/uts/integration/proxy/rest" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have moved
uts-infraas shared module forrealtime,restandliveobjectspackages.So, tests now resides in their own packages with access to internal members. So, UTS unit tests don't need to use reflection and can safely access internal methods/properties etc : )
So, you can check this config. I validated locally, so config. works as expected.
You can review this once more @ttypic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, check
liveobjects/build.gradle.kts