thoth-station/integration-tests

Advise tests are failing on ocp4-stage because advise documents are still being processed

Opened this issue · 7 comments

Describe the bug

See last integration-tests results for ocp4-stage (2022-06-08 version 0.11.2):

thamos.swagger_client.rest.ApiException: (400)
Reason: BAD REQUEST
HTTP response headers: HTTPHeaderDict({'server': 'gunicorn', 'date': 'Wed, 08 Jun 2022 02:59:35 GMT', 'content-type': 'application/json', 'content-length': '272', 'x-thoth-version': '0.35.2', 'x-user-api-service-version': '0.35.2+messaging.0.16.1.storages.0.72.1.common.0.36.2.python.0.16.10', 'x-thoth-search-ui-url': 'https://thoth-station.ninja/search/', 'access-control-allow-origin': '*', 'set-cookie': '694c408f5a01f44faf6d9d4ad450ae31=4120f5cc8c811522e7dc4bcb98484603; path=/; HttpOnly; Secure; SameSite=None'})
HTTP response body: b'{\n  "error": "Analysis was not successful",\n  "parameters": {\n    "analysis_id": "adviser-220608025846-adbb4959f5e011e8"\n  },\n  "status": {\n    "finished_at": "2022-06-08T02:59:31Z",\n    "reason": null,\n    "started_at": "2022-06-08T02:58:46Z",\n    "state": "error"\n  }\n}\n'


Captured logging:
INFO:thamos.lib:Using 'latest' recommendation type - see https://thoth-station.ninja/recommendation-types/
WARNING:thamos.lib:The user stack found in the lock file will not be supplied as requested
INFO:thamos.lib:Successfully submitted advise analysis 'adviser-220608025846-adbb4959f5e011e8' to 'https://stage.thoth-station.ninja/api/v1'

Querying the advise document with id adviser-220608025846-adbb4959f5e011e8 on the user API shows that it is still being queued for processing.

Expected behavior

Advise documents are processed on time.

/priority critical-urgent
/sig stack-guidance
/kind bug

Same situation for provenance-check reports:

{
  "error": "Analysis 'provenance-checker-220608030117-61599c0f33a7ba02' is being queued and scheduled for processing",
  "parameters": {
    "analysis_id": "provenance-checker-220608030117-61599c0f33a7ba02"
  },
  "status": {
    "finished_at": null,
    "reason": null,
    "started_at": null,
    "state": "pending"
  }
}

Same situation for provenance-check reports:

This response is expected (check also HTTP status code). It looks like there was a request to obtain the given provenance-checker document, but it hasn't been created yet. provenance-checker was scheduled and queued to produce the given document.

This response is expected

Agree 👍 I opened this issue to track if we lacked resources or if there was any issue creating the documents in time for integration tests to pass

This response is expected

Agree +1 I opened this issue to track if we lacked resources or if there was any issue creating the documents in time for integration tests to pass

Ah sorry I got confused with status codes. Right, thanks for pointing it out!

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

/remove-lifecycle stale
/lifecycle frozen