openverse-api icon indicating copy to clipboard operation
openverse-api copied to clipboard

Ingestion of images stops unexpectedly after cleanup

Open dhruvkb opened this issue 3 years ago • 4 comments
trafficstars

Description

All CI flakiness has boiled down to the ingestion of images stopping unexpectedly after the cleanup step. Rerunning ingestion almost surely fixes the issue.

We should investigate the issue and find out the cause. If it is incurable, we should add a step to retry the ingestion which is almost guaranteed to succeed the second time.

This also causes #562.

Reproduction

See failed runs:

  • https://github.com/WordPress/openverse-api/runs/6527207725?check_suite_focus=true#step:8:702
  • https://github.com/WordPress/openverse-api/runs/6527646327?check_suite_focus=true#step:11:480

Resolution

  • [ ] 🙋 I would be interested in resolving this bug.

dhruvkb avatar May 20 '22 15:05 dhruvkb

#802 should reduce the flakiness in our CI by retrying ingestion if it unexpectedly stops but the real cause and the proper solution for this issue are yet to be found.

dhruvkb avatar Jul 19 '22 15:07 dhruvkb

^ Accidental click.

dhruvkb avatar Aug 02 '22 05:08 dhruvkb

@WordPress/openverse-api have we observed this behavior in the API CI still?

zackkrida avatar Aug 27 '22 00:08 zackkrida

We covered over this problem by repeating the process if it fails (up to 3 retries) so this problem doesn't appear in CI anymore. But the underlying cause has not been fixed. @obulat's PR #839 removes the problematic step and that will fix the problem at the cause.

dhruvkb avatar Aug 27 '22 01:08 dhruvkb