Skip to content

fix(ci): prevent test fixtures from overwriting main server log - #5797

Merged
leseb merged 1 commit into
ogx-ai:mainfrom
derekhiggins:fix/ci-server-log-overwrite
May 12, 2026
Merged

fix(ci): prevent test fixtures from overwriting main server log#5797
leseb merged 1 commit into
ogx-ai:mainfrom
derekhiggins:fix/ci-server-log-overwrite

Conversation

@derekhiggins

Copy link
Copy Markdown
Contributor

Summary

  • Rename main server log from server.log to server-main.log in scripts/integration-tests.sh
  • Prevents test fixtures (e.g. telemetry tests) that start their own server instances from deleting and overwriting the main server's log
  • Both files are still captured by the existing *.log artifact upload glob

Fixes #5796

Test plan

  • CI integration tests still collect server logs correctly
  • Fixture server logs remain separate from main server log

The main server log (server.log) was being deleted and overwritten by
test fixtures that start their own server instances (e.g. telemetry
tests). This made it impossible to diagnose 500 errors from the main
server since the traceback was lost.

Rename the main server log to server-main.log so it persists alongside
the fixture's server.log. Both are captured by the *.log artifact glob.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Derek Higgins <derekh@redhat.com>

@leseb leseb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i guess using OGX_LOG_FILE would have solved it too?

@leseb
leseb added this pull request to the merge queue May 12, 2026
Merged via the queue into ogx-ai:main with commit e97035f May 12, 2026
15 checks passed
@leseb

leseb commented May 12, 2026

Copy link
Copy Markdown
Member

@Mergifyio backport release-1.0.x

@mergify

mergify Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

backport release-1.0.x

✅ Backports have been created

Details

leseb pushed a commit that referenced this pull request May 12, 2026
## Summary

- Rename main server log from `server.log` to `server-main.log` in
`scripts/integration-tests.sh`
- Prevents test fixtures (e.g. telemetry tests) that start their own
server instances from deleting and overwriting the main server's log
- Both files are still captured by the existing `*.log` artifact upload
glob

Fixes #5796

## Test plan

- [ ] CI integration tests still collect server logs correctly
- [ ] Fixture server logs remain separate from main server log

Signed-off-by: Derek Higgins <derekh@redhat.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
(cherry picked from commit e97035f)
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.

fix(ci): integration test fixtures overwrite main server log

2 participants