The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-6879-82ccc7582284a26621561baae9d70085c4438009
 has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
9ae47612d8ad25faaee291064603f002f1ef431b / Xinyuan Lin <[email protected]>
test(auth): extend UserActivityTracker unit test coverage (#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])

Report URL: https://github.com/apache/texera/actions/runs/30145510011

With regards,
GitHub Actions via GitBox

Reply via email to