Improve the release exporter step that searches for existing files
The problem is that it takes a very long time now and there is a risk that there is a timeout before the result is complete. It typically helps to re-start the job, but it will fail again on a later release. It may require several restarts before it works.
It would also be nice to get information about the search in the progress reporter. Currently the search doesn't happen until the first file is going to be created so it seems like the export of the first item takes a very long time.
There are some other things that could be improved as well:
- We should only search x.0 releases since those are the only ones that get new files. It should save us a lot of time.
- Sorting of the releases is done with
sortwhich is an alphabetical sort. This may cause problems later when we reach release number "10.0" since it would be sorted before all other single-digit releases. This can be fixed by
sort -nwhich does a numerical sort.