Skip to content

Conversation

@fuhengwu2021
Copy link

Description

Added support for a configurable log directory via a new --log-dir CLI option. Both LoggingManager and WorkerLoggingManager were updated to write log files (genai_bench.log and genai_bench_worker_*.log) to the specified directory. The ENABLE_UI flag now accepts multiple truthy values (true, 1, yes, on,etc.) in a case-insensitive manner. Additionally, DistributedConfig was enhanced to propagate the log_dir setting to worker processes.

PR Type / Label

/kind enhancement

Related Issue

Fix #113 #114

Changes

  • Add --log-dir CLI option to specify directory for log files
  • Update LoggingManager and WorkerLoggingManager to support custom log directory
  • Log files (genai_bench.log and genai_bench_worker_*.log) can now be written to specified directory
  • Improve ENABLE_UI to support multiple truthy values: true, TRUE, 1, yes, YES, on, ON (case-insensitive)
  • Update DistributedConfig to pass log_dir to worker processes

Correctness Tests

Checklist

  • I have rebased my branch on top of the latest main branch (git pull origin main)
  • I have run make check to ensure code is properly formatted and passes all lint checks
  • I have run make test or make test_changed to verify test coverage (~90% required)
  • I have added tests that fail without my code changes (for bug fixes)
  • I have added tests covering variants of new features (for new features)

Additional Information

Add any other context, screenshots, or information about the PR here.

- Add --log-dir CLI option to specify directory for log files
- Update LoggingManager and WorkerLoggingManager to support custom log directory
- Log files (genai_bench.log and genai_bench_worker_*.log) can now be written to specified directory
- Improve ENABLE_UI to support multiple truthy values: true, TRUE, 1, yes, YES, on, ON (case-insensitive)
- Update DistributedConfig to pass log_dir to worker processes
@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions bot added distributed Distributed execution code paths and tests cli Changes to the command-line interface package or tests core Updates to shared runtime utilities (logging, protocol, utils, version, package init, typing stub) ui User interface components and tests labels Nov 12, 2025
fuhwu added 2 commits November 12, 2025 05:52
- Add --log-dir CLI option to specify directory for log files
- Update LoggingManager and WorkerLoggingManager to support custom log directory
- Log files (genai_bench.log and genai_bench_worker_*.log) can now be written to specified directory
- Improve ENABLE_UI to support multiple truthy values: true, TRUE, 1, yes, YES, on, ON (case-insensitive)
- Update DistributedConfig to pass log_dir to worker processes
- Add comprehensive tests for ENABLE_UI improvements (16 test cases)
@github-actions github-actions bot added the ci Improvements to CI or tests label Nov 12, 2025
@ai-jz
Copy link
Collaborator

ai-jz commented Nov 12, 2025

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Breezy!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Improvements to CI or tests cli Changes to the command-line interface package or tests core Updates to shared runtime utilities (logging, protocol, utils, version, package init, typing stub) distributed Distributed execution code paths and tests ui User interface components and tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add an option to avoid logs generating at the working directory

2 participants