Skip to content

feat: size-based log rotation for diagnostic JSONL files#224

Merged
ichoosetoaccept merged 1 commit intomainfrom
03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files
Mar 12, 2026
Merged

feat: size-based log rotation for diagnostic JSONL files#224
ichoosetoaccept merged 1 commit intomainfrom
03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files

Conversation

@ichoosetoaccept
Copy link
Member

@ichoosetoaccept ichoosetoaccept commented Mar 12, 2026

Replace line-count truncation with size-based rotation (2MB × 7 backups). Shared rotate_if_needed() in log_rotation.py wired into all three log writers (gh.py, github_api.py, middleware.py, io_tap.py). Adds stale PID file cleanup on server startup.

Closes ISM-327

Closes ISM-XXX


Open with Devin

Replace line-count truncation with size-based rotation (2MB × 7 backups). Shared rotate_if_needed() in log_rotation.py wired into all three log writers (gh.py, github_api.py, middleware.py, io_tap.py). Adds stale PID file cleanup on server startup.

Closes ISM-332
@linear
Copy link

linear bot commented Mar 12, 2026

Copy link
Member Author

ichoosetoaccept commented Mar 12, 2026

@ichoosetoaccept ichoosetoaccept force-pushed the 03-12-feat-add-crb_owner_logins-env-var-for-triage-owner-detection branch 2 times, most recently from 4cf547a to e83f16b Compare March 12, 2026 10:05
@ichoosetoaccept ichoosetoaccept force-pushed the 03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files branch from e095bbb to 2c905f6 Compare March 12, 2026 10:05
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 7 potential issues.

Open in Devin Review

@ichoosetoaccept ichoosetoaccept force-pushed the 03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files branch 2 times, most recently from 68ddde0 to 3be5f75 Compare March 12, 2026 10:49
@ichoosetoaccept ichoosetoaccept changed the base branch from 03-12-feat-add-crb_owner_logins-env-var-for-triage-owner-detection to graphite-base/224 March 12, 2026 10:51
@ichoosetoaccept ichoosetoaccept force-pushed the 03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files branch from 3be5f75 to 46db8b2 Compare March 12, 2026 10:51
@graphite-app graphite-app bot changed the base branch from graphite-base/224 to main March 12, 2026 10:52
@ichoosetoaccept ichoosetoaccept force-pushed the 03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files branch from 46db8b2 to 13ed4b7 Compare March 12, 2026 10:52
@blacksmith-sh

This comment has been minimized.

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 new potential issues.

Open in Devin Review

@ichoosetoaccept ichoosetoaccept force-pushed the 03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files branch from 13ed4b7 to 46b487a Compare March 12, 2026 11:28
@ichoosetoaccept ichoosetoaccept merged commit 63d57af into main Mar 12, 2026
11 checks passed
@ichoosetoaccept ichoosetoaccept deleted the 03-12-feat-size-based-log-rotation-for-diagnostic-jsonl-files branch March 12, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant