Repository navigation
fix: restore Zalo group cache expiry coverage - #190975
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Restored Zalo group-cache expiry coverage at the five-minute boundary. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 3, 2026
Restore Zalo group-cache expiry coverage by advancing the monotonic clock at the existing five-minute boundary.
RomneyDa
added a commit
that referenced
this pull request
Nov 17, 2026
…90730) Keep line breaks and indentation after channel-specific mention removal. Retain existing single-line whitespace normalization. Release adaptation: extend the maintenance-line Feishu bot.test.ts command admission coverage rather than restoring the newer bot.commands.test.ts harness. Production changes are the original three parser hunks. Companion dispositions: #190975 concerns the independent Zalo group cache clock test; #192608 concerns attachment handoff, not text command parsing; #197656 removes main-only retired test allocations. All are not applicable to this bounded backport. No later #190730 mention through bd692e9. (cherry picked from commit 2bd7edf) Co-authored-by: Masato Hoshino <[email protected]> Co-authored-by: RomneyDa <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What Problem This Solves
The Zalo group-cache expiry test fails after #190894 moved cache age measurements to monotonic time. The fixture still advances the wall clock, so its final lookup remains a cache hit and reports one API call where two are expected.
User Impact
This restores the existing expiry check without changing Zalo runtime behavior. The production five-minute TTL, profile isolation, logout refresh and message metadata handling remain unchanged.
Why This Change Was Made
The fixture now spies on
performance.now(), the clock consumed by the shared cache. Its readings start at zero, retain a cache hit at 299,999 ms and require one refresh at exactly 300,000 ms. Existing call-count assertions and spy restoration are preserved.Evidence
The unchanged fixture reproduced the failure under Node 24.22.1 in its native database-worker configuration: 13 cases passed and the TTL case failed with two expected calls versus one observed.
After the clock correction, all 14 existing cases pass under the same configuration. Changed-file formatting and lint and the affected extension test type graph pass. Hosted CI and independent review pass. The selected CI job also ran all 14 named fixture cases successfully.