Skip to content

test: reset compaction process fixtures reliably - #129384

Closed
shakkernerd wants to merge 1 commit into
mainfrom
fix/compaction-process-cleanup
Closed

shakkernerd wants to merge 1 commit into
mainfrom
fix/compaction-process-cleanup

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

Summary

Make compaction runtime-context fixtures release their process and timer state on every exit path.

Root Cause

Several tests registered active process references and enabled fake timers without owning cleanup in finally.

When an assertion or awaited operation failed before the normal teardown line, sess-active could remain registered and fake-timer state could leak into the next test. The later test then failed on state created by its predecessor.

Changes

  • move process-reference reset into fixture-owned finally blocks
  • release fake-timer state before restoring real timers
  • keep production compaction and process-registry behavior unchanged

Verification

  • 44 focused tests
  • formatting
  • repository guards
  • git diff --check
  • autoreview

@clawsweeper

clawsweeper Bot commented Aug 25, 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 agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Aug 25, 2026
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Superseded by #129397, which combines this test-only fix with the related fixture and import-isolation repairs.

@RomneyDa
RomneyDa deleted the fix/compaction-process-cleanup branch October 22, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant