Skip to content

fix(e2e): update log-reading helpers for rolling file appender#481

Merged
drew merged 1 commit intomainfrom
480-fix-e2e-rolling-log-tests
Mar 19, 2026
Merged

fix(e2e): update log-reading helpers for rolling file appender#481
drew merged 1 commit intomainfrom
480-fix-e2e-rolling-log-tests

Conversation

@drew
Copy link
Collaborator

@drew drew commented Mar 19, 2026

Summary

Related Issue

Fixes #480

Changes

  • e2e/python/test_sandbox_policy.py: _read_openshell_log() now uses glob.glob("/var/log/openshell*.log*") to discover and concatenate all rolling log files
  • e2e/python/test_sandbox_policy.py: _verify_sandbox_functional() checks for log file existence via the same glob pattern instead of a hardcoded path

Testing

  • mise run pre-commit passes
  • mise run e2e — requires running cluster; the glob pattern matches both the legacy single-file layout and the new openshell.YYYY-MM-DD.log rolling layout

Checklist

  • Follows Conventional Commits format
  • Signed-off-by line included (git commit -s)
  • No new dependencies introduced

The rolling file appender introduced in PR #431 writes date-stamped
files (openshell.YYYY-MM-DD.log) instead of a single openshell.log.
Update _read_openshell_log() and _verify_sandbox_functional() to glob
for all matching log files so the tests work with both layouts.

Signed-off-by: Drew Newberry <anewberry@nvidia.com>
@drew drew requested a review from a team as a code owner March 19, 2026 20:20
@drew drew added the test:e2e Requires end-to-end coverage label Mar 19, 2026
@drew drew merged commit de9dcaa into main Mar 19, 2026
13 checks passed
@drew drew deleted the 480-fix-e2e-rolling-log-tests branch March 19, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: e2e log-reading tests broken after rolling log appender change (PR #431)

2 participants