Skip to content

Add configuration preflight mode#17

Closed
Toti330 wants to merge 2 commits into
mainfrom
feat/config-reporting
Closed

Add configuration preflight mode#17
Toti330 wants to merge 2 commits into
mainfrom
feat/config-reporting

Conversation

@Toti330

@Toti330 Toti330 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds PRINT_CONFIG=1, a no-side-effect configuration preflight mode.

Why this is useful

Performance and database investigations often start with uncertainty about the effective environment. This prints the exact resolved seed range, thread counts, batch/channel settings, database target, and logging mode without starting a workload or touching PostgreSQL.

Implementation

  • Prints resolved non-secret runtime configuration and exits successfully before connection, checkpoint reads, thread spawn, or file changes.
  • Always redacts PG_PASS.
  • Validates WORKER_THREADS, WRITER_THREADS, and COMMIT_COUNT are non-zero before work begins.
  • Adds usage documentation in docs/config-preflight.md.

Independence

This PR is based directly on main and is independently mergeable. It has no dependency on the timing, diagnostics, tuning, checkpoint, or progress PRs.

Verification

  • cargo test --all-targets passed.
  • PRINT_CONFIG=1 smoke run printed the configured values and config.database.password=redacted, with no database connection attempt.

Generated by GPT-5.6 Terra & Sol. Ideas from the author; implementation by AI.

@SuperB3333

Copy link
Copy Markdown
Owner

Nice debugging feature. I'll implement some readability changes and commit this later

@SuperB3333

Copy link
Copy Markdown
Owner

Implemented in 0176b8b

@SuperB3333 SuperB3333 closed this Jul 14, 2026
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.

2 participants