thoth-station / integration-tests

Integration tests for the Thoth project to make sure deployment works as expected
GNU General Public License v3.0
4 stars 12 forks source link

Provenance checks do not finish on time (aws-prod) #329

Closed mayaCostantini closed 1 year ago

mayaCostantini commented 2 years ago

Describe the bug

See integration tests report for aws-prod (2022-07-11 version 0.11.2):

Traceback (most recent call last):
  File "/opt/app-root/lib64/python3.8/site-packages/behave/model.py", line 1329, in run
    match.run(runner.context)
  File "/opt/app-root/lib64/python3.8/site-packages/behave/matchers.py", line 98, in run
    self.func(context, *args, **kwargs)
  File "features/steps/provenance_check.py", line 57, in step_impl
    raise RuntimeError("provenance-checker took too much time to finish")
RuntimeError: provenance-checker took too much time to finish

Captured logging:
INFO:thamos.lib:Successfully submitted provenance check analysis 'provenance-checker-220711022402-5a020e0151794ec6' to 'https://api.prod.thoth-station.ninja/api/v1'

For both provenance_flask and provenance_flask_error test cases. It looks like provenance checks are not being scheduled despite the status message:

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

(See Argo UI for aws-prod).

Expected behavior

Provenance-checks are scheduled and finish on time.

mayaCostantini commented 2 years ago

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

harshad16 commented 1 year ago

Verified this.

Verified the integration tests as well, it works successfully without any issues.

Cluster execution: Screenshot from 2022-11-07 13-53-51

integration-test local execution: Screenshot from 2022-11-07 13-57-04

Closing this issue, as the problem is no longer present. Thanks everyone.