Skip to content

fix: resolve 6 bug bash issues (#228 #229 #230 #231 #232 #233)#246

Merged
DingmaomaoBJTU merged 3 commits into
mainfrom
fix/bug-bash-issues-228-229-230-231-232-233
Apr 3, 2026
Merged

fix: resolve 6 bug bash issues (#228 #229 #230 #231 #232 #233)#246
DingmaomaoBJTU merged 3 commits into
mainfrom
fix/bug-bash-issues-228-229-230-231-232-233

Conversation

@DingmaomaoBJTU
Copy link
Copy Markdown
Collaborator

Summary

Fixes 6 issues found during bug bash testing on the main branch.

Tests added

File Test Covers
tests/regression/test_design_gaps.py TestA1HelpTextAsciiSafe (3 tests) #228 — asserts --help, --list-capabilities, --list-rewrites output is ASCII-safe
tests/unit/analyze/core/test_qdq.py test_initialization_does_not_print_to_stdout #231 — asserts QDQGenerator.__init__ writes nothing to stdout
tests/unit/commands/test_hub.py test_fmt_model_id_overflow_is_ascii_safe #233 — asserts _fmt_model_id uses overflow="crop"
tests/unit/commands/test_cli.py test_sys_list_device_list_ep_json_is_valid_single_object #229 — asserts combined JSON output is one valid object
tests/unit/commands/test_cli.py test_sys_list_device_compact #232 — asserts compact flag produces single-line output
tests/unit/commands/test_cli.py test_sys_list_ep_compact #232 — asserts compact flag produces single-line output

All 3947 tests pass (120 skipped for NPU/hardware requirements).

- fix #228: replace non-ASCII arrow (U+2192) with ASCII -> in capability
  and rewrite-rule descriptions so winml optimize --help works on cp1252
  terminals (graph.py, layernorm.py, surgery.py, rewrite_rules.py)
- fix #231: convert debug print() statements in QDQGenerator to
  logger.debug() to stop stdout pollution during winml analyze
- fix #229: winml sys --list-device --list-ep --format json now emits a
  single valid JSON object {devices, executionProviders} instead of two
  separate arrays
- fix #232: winml sys --list-device/--list-ep --format compact now
  produces compact single-line output instead of silently falling back
  to text format; also remove dead _output_device_json/_output_ep_json
- fix #230: add stderr=subprocess.DEVNULL to all PowerShell subprocess
  calls in sysinfo/helper.py to prevent error noise leaking to terminal
  when no NPU is present
- fix #233: change Text/column overflow from 'ellipsis' to 'crop' in
  hub list view to avoid emitting U+2026 (ellipsis char) on cp1252
  terminals

Tests: add regression coverage for all 6 fixes
@DingmaomaoBJTU DingmaomaoBJTU requested a review from a team as a code owner April 3, 2026 08:32
@DingmaomaoBJTU DingmaomaoBJTU merged commit 7123665 into main Apr 3, 2026
9 checks passed
@DingmaomaoBJTU DingmaomaoBJTU deleted the fix/bug-bash-issues-228-229-230-231-232-233 branch April 3, 2026 09:11
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