aglinxinyuan opened a new pull request, #6879:
URL: https://github.com/apache/texera/pull/6879

   ### What changes were proposed in this PR?
   
   Extends `UserActivityTrackerSpec` (22 tests total) for `UserActivityTracker` 
(~29% covered). The class ctor is fully injectable, so the tests use a fake 
clock, a direct executor and a recording upsert function to stay deterministic:
   - `markActive`: null-uid guard, first-call upsert, suppression while inside 
the write interval, re-upsert after it elapses, and an upsert failure being 
swallowed rather than propagated;
   - `evictStale`: entries older than 2x the write interval evicted while 
fresher ones are retained;
   - `cooldownSize` bookkeeping across those transitions.
   
   No source changes.
   
   ### Any related issues, documentation, discussions?
   
   Closes #6876.
   
   ### How was this PR tested?
   
   `sbt -java-home <jbr-17> "Auth/testOnly *UserActivityTrackerSpec"` -> 22 
succeeded, 0 failed. `Test/scalafmtCheck` + `Test/scalafix --check` clean.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 4.8 [1M context])


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to