Skip to content

Commit 1b8271e

Browse files
authored
Merge pull request #5 from NC3-TestingPlatform/fix/progress-console-leak-0.6.3
fix: progress messages leaking into --output files; bump to 0.6.3
2 parents 4fa0eba + 82dbbb7 commit 1b8271e

4 files changed

Lines changed: 23 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ Version numbers follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html
1111

1212
---
1313

14+
## [0.6.3] — 2026-07-08
15+
16+
### Fixed
17+
- `cli.py`: the `check` command's `progress_cb` now prints to a dedicated,
18+
non-recording `Console` instead of the shared recording console from
19+
`reporter.py`. Previously the "Probing <target>:<port> for PQC key
20+
exchange…" progress line was appended to the record buffer that
21+
`save_report()` exports from, so `--output` files started with that line
22+
before the actual report.
23+
24+
---
25+
1426
## [0.6.2] — 2026-06-24
1527

1628
### Removed
@@ -293,7 +305,8 @@ Version numbers follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html
293305

294306
---
295307

296-
[Unreleased]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.6.2...HEAD
308+
[Unreleased]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.6.3...HEAD
309+
[0.6.3]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.6.2...v0.6.3
297310
[0.6.2]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.6.1...v0.6.2
298311
[0.6.1]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.6.0...v0.6.1
299312
[0.6.0]: https://github.com/NC3-TestingPlatform/quantumvalidator/compare/v0.5.2...v0.6.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "quantumvalidator"
7-
version = "0.6.2"
7+
version = "0.6.3"
88
description = "Quantum-safe cryptography validator — TLS, STARTTLS, and SSH post-quantum readiness assessment"
99
readme = "README.md"
1010
requires-python = ">=3.11"

quantumvalidator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
try:
99
__version__ = version("quantumvalidator")
1010
except PackageNotFoundError: # pragma: no cover
11-
__version__ = "0.6.2"
11+
__version__ = "0.6.3"
1212

1313
_logging.getLogger("quantumvalidator").addHandler(_logging.NullHandler())
1414
del _logging

quantumvalidator/cli.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@
1616
from typing import TYPE_CHECKING
1717

1818
import typer
19+
from rich.console import Console
1920

2021
if TYPE_CHECKING:
2122
from quantumvalidator.models import QuantumReport
2223

2324
from quantumvalidator.reporter import console
2425

26+
# Non-recording console for progress messages. Using the recording
27+
# ``console`` from ``reporter`` here would bake every progress line into
28+
# the record buffer that ``save_report()`` exports from.
29+
_progress_console = Console(highlight=False)
30+
2531
app = typer.Typer(
2632
name="quantumvalidator",
2733
help=(
@@ -66,7 +72,7 @@ def check(
6672
target,
6773
port=port,
6874
timeout=timeout,
69-
progress_cb=None if json_output else console.print,
75+
progress_cb=None if json_output else _progress_console.print,
7076
)
7177
except RuntimeError as exc:
7278
console.print(f"[red]Error:[/red] {exc}")

0 commit comments

Comments
 (0)