Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing response to test session and its result state #384

Open
AlexThurston opened this issue Jan 29, 2025 · 2 comments
Open

Confusing response to test session and its result state #384

AlexThurston opened this issue Jan 29, 2025 · 2 comments
Assignees

Comments

@AlexThurston
Copy link

environment
DEMO

testSessionId
566292

vsId
2720997 and 2720998

Algorithm registration
N/A

Endpoint in which the error is experienced
https://demo.acvts.nist.gov/acvp/v1/testSessions/566292 GET
https://demo.acvts.nist.gov/acvp/v1/testSessions/566292/results GET

Expected behaviour
I'll start off by saying that the test session in question is expired. This might be the cause of the root issue but I believe it is still an issue none the less.

Reading the test session https://demo.acvts.nist.gov/acvp/v1/testSessions/566292 GET responds with:

{
  "createdOn": "2024-12-05T10:01:45Z",
  "expiresOn": "2025-01-05T07:10:28Z",
  "isSample": true,
  "passed": false,
  "publishable": false,
  "url": "/acvp/v1/testSessions/566292",
  "vectorSetUrls": [
    "/acvp/v1/testSessions/566292/vectorSets/2720997",
    "/acvp/v1/testSessions/566292/vectorSets/2720998"
  ]
}

Notably, ACVTS is reporting that the test session is not passed.

If I read the results of the test session https://demo.acvts.nist.gov/acvp/v1/testSessions/566292/results GET, the response is:

{
  "passed": false,
  "results": [
    {
      "status": "passed",
      "vectorSetUrl": "/acvp/v1/testSessions/566292/vectorSets/2720997"
    },
    {
      "status": "passed",
      "vectorSetUrl": "/acvp/v1/testSessions/566292/vectorSets/2720998"
    }
  ]
}

As you can see both vector sets are being registered as passed but similar to the GET on the test session the overall passed is still false which doesn't seem correct.

As I mentioned above, I'm going to guess that this is because the test session is expired, but even still, I'd expect that passed state to be independent from the expiry.

@AlexThurston AlexThurston changed the title Confusing response to test session and it's result state Confusing response to test session and its result state Jan 29, 2025
@cpu
Copy link

cpu commented Jan 29, 2025

FWIW I've also run into this with unexpired sessions, and found this previous issue #183 that seemed to indicate it was a server-side data race 🤷

@jbrock24
Copy link
Collaborator

I'll start off by saying that the test session in question is expired. This might be the cause of the root issue but I believe it is still an issue none the less.

In this scenario, this is the condition that caused the TS to have passed = false. We are unable to say that a TS expired based on the spec limitations, but when it is expired, it will display the TS as passed=false. Thank you for the question @AlexThurston , it led to some great info exchange and discussion. Please let me know if you have any other questions.

@jbrock24 jbrock24 self-assigned this Jan 31, 2025
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

No branches or pull requests

3 participants