Skip to content

fix: restore Zalo group cache expiry coverage - #190975

Merged
shakkernerd merged 1 commit into
mainfrom
ci-zalo-group-cache-clock
Nov 2, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
ci-zalo-group-cache-clock

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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.

@clawsweeper

clawsweeper Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: zalouser Channel integration: zalouser size: XS labels Nov 2, 2026
@shakkernerd
shakkernerd merged commit 9d577f1 into main Nov 2, 2026
104 checks passed
@shakkernerd
shakkernerd deleted the ci-zalo-group-cache-clock branch November 2, 2026 08:37
@shakkernerd

Copy link
Copy Markdown
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: zalouser Channel integration: zalouser size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant