Skip to content

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

@mayaCostantini

Description

@mayaCostantini

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/critical-urgentHighest priority. Must be actively worked on as someone's top priority right now.sig/stack-guidanceCategorizes an issue or PR as relevant to SIG Stack Guidance.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions