lablup / lablup/backend.ai

Test sliding window observer behavior

Open
#7,539 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Goal

Validate sliding window observer works correctly across kernel lifecycle scenarios.

## Test Coverage

**Unit tests:**

- Timestamp tracking logic
- Window expiration calculation
- Cleanup trigger conditions

**Integration tests:**

- Normal kernel lifecycle (start → run → destroy)
- Rapid kernel creation/destruction
- Observer behavior during metric collection gaps
- No metric leaks or premature cleanups

## Verification

- Verify metrics are cleaned up after configured window
- Verify no cleanup failures during kernel destruction
- Monitor production metrics after deployment

## Dependencies

Requires completed implementation (BA-3521 subtasks 2 and 3).

JIRA Issue: BA-3525

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.