Skip to content

Commit

Permalink
e2e_tests/stress.rs: Add a workaround for spurious test failures
Browse files Browse the repository at this point in the history
stress_tests fail sporadically with the error:

 'An invalid signature or a tampering detection should be the only
  reasons of the verification failing. Status returned:
  PsaErrorInvalidArgument.'

The verification signature should not be failing with
PsaErrorInvalidArgument for invalid signatures. So there may be a
problem with either threading or a bug in Mbed Crypto.
This bug is causing several sporadic test failures in our CI, as the
invalid signatures are random.

 * Accept the PsaErrorInvalidArgument error as a workaround until
   the issue is resolved.

Please see opened issue

Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
  • Loading branch information
tgonzalezorlandoarm committed Nov 23, 2023
1 parent 9f5ff5c commit a26d8a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions e2e_tests/src/stress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ impl StressTestWorker {
)
.expect_err("Verification should fail.");
if !(status == ResponseStatus::PsaErrorInvalidSignature
|| status == ResponseStatus::PsaErrorInvalidArgument
|| status == ResponseStatus::PsaErrorCorruptionDetected)
{
panic!("An invalid signature or a tampering detection should be the only reasons of the verification failing. Status returned: {:?}.", status);
Expand Down

0 comments on commit a26d8a1

Please sign in to comment.