Skip to content

[pentest] Make Target.read_response respect attempt retries - #31003

Merged
luismarques merged 1 commit into
lowRISC:earlgrey_1.0.0from
luismarques:pentest-targets-read_response-retries
Aug 14, 2026
Merged

[pentest] Make Target.read_response respect attempt retries#31003
luismarques merged 1 commit into
lowRISC:earlgrey_1.0.0from
luismarques:pentest-targets-read_response-retries

Conversation

@luismarques

@luismarques luismarques commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Ensure that empty or corrupted responses don't circumvent the requested number of attempts, similar to other methods.

@AlexJones0 AlexJones0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, this seems reasonable to me. See my comment - I'd be a little concerned about losing meaningful data, so if this is the problem, we should try and determine why we are seeing the error and how we might recover. But indeed, defaulting to lose the response altogether as the current implementation does is not particularly helpful.

Comment thread sw/host/penetrationtests/python/util/targets.py Outdated
@luismarques
luismarques force-pushed the pentest-targets-read_response-retries branch from 805e50e to bcdd1b0 Compare August 14, 2026 11:53
Ensure that empty or corrupted responses don't circumvent the requested
number of attempts, similar to other methods.

Signed-off-by: Luís Marques <luismarques@lowrisc.org>
@luismarques
luismarques force-pushed the pentest-targets-read_response-retries branch from bcdd1b0 to e3ab1a0 Compare August 14, 2026 12:42

@AlexJones0 AlexJones0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, seems reasonable to me.

@luismarques

Copy link
Copy Markdown
Contributor Author

Only the flaky tests failed, so I'll merge it.

@luismarques
luismarques merged commit 9d35c96 into lowRISC:earlgrey_1.0.0 Aug 14, 2026
34 of 35 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