Impl/topic07 - #61
Impl/topic07#61FeelTheBeats wants to merge 6 commits into
Conversation
🤖 AI Code Review
📁
|
- F1: pin the scratchv root logger to DEBUG while a file handler is attached; the console handler carries the configured level and set_level() follows the same rule - F2: log an ERROR summary before every failing return (validate / parse / codegen) while keeping the DEBUG traceback, and note incomplete optimization when a pass aborts the pipeline - F3: refuse --log-file paths that collide with the input or output file before the FileHandler truncates them - F4: raise LogFileError on log-file open failures, roll back the half-initialized logger, and report rc=2 for DSL and ONNX inputs - F5: rebuild the logger after shutdown() using the driver config - F6: attach exc_info to the PassManager pass-failure log - Harden shutdown() against externally closed streams
Cover the review findings end to end: - file log keeps DEBUG records at console level INFO, and set_level routing is asserted on real stderr/file output - failure paths (validate / parse / codegen) record ERROR summaries - same-path --log-file is refused without touching the input - bad log-file paths exit rc=2 without a traceback and leave no half-initialized logger state - driver reuse after shutdown() honours the configured log file - Pass exceptions land in the log with a full traceback
- document the root-logger DEBUG rule that makes file logs complete - describe the ERROR failure summaries and LogFileError/rc=2 contract - note that --log-file also triggers IR verification - align M5 finally scope, CLI help, test counts and the integration commit sha with the actual implementation
No description provided.