Skip to content

Retry CLI invocations in test_cli_crypt.py that exit with an error or produce no output - #5962

Merged
randombit merged 1 commit into
randombit:masterfrom
moritzschmitt:test-cli-crypt-retry
Sep 22, 2026
Merged

randombit merged 1 commit into
randombit:masterfrom
moritzschmitt:test-cli-crypt-retry

Conversation

@moritzschmitt

Copy link
Copy Markdown
Contributor

Since the windows-11-arm runners moved to the Visual Studio 2026 image, test_cli_crypt.py has failed twice in 8 runs on that image (#5941 with MSVC 19.51 on a Serpent/XTS vector, then with clang-cl 22.1 on a ChaCha20Poly1305 vector): a single one of the 6566 CLI invocations returned empty output and nothing on stderr, while botan-test and test_cli.py passed in the same job. The script ignores the exit code, so a crash and a silent exit look the same in the log.

This change runs an invocation a second time when the process exits with an error, or produces no output where some is expected, and logs a warning with the exit code (also in hex, for Windows NTSTATUS values) for every such attempt. Wrong output is never retried.

@randombit randombit left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've also seen this a couple of times now. Hopefully a more permanent/reliable fix becomes possible once the issue is better understood, returncode will help.

@randombit
randombit merged commit c0a0999 into randombit:master Sep 22, 2026
51 checks passed
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