I am running test suites that generate code coverage metrics. These metrics take the form of 300 or so text files, a relatively small amount of data. Yet the “collect artifacts” step takes 30 seconds!
When I view the log for this step, it appears that each of the files is being collected with a separate command, apparently
curl, judging by the log output. If this were replaced by a single command, like
wget -r or
scp -r, it would be a lot speedier.
This 30-second step increases the overall time of my builds by a significant amount.
Other people are also unhappy about the time of the Collect Artifacts step. See this other Feature Request thread, with 20 likes and lots of +1 replies so far.