Remove scanner/testdata in gemnasium job
What does this MR do?
Remove all testdata
and fixtures
directories from scanner
directory before running gemnasium,
to speed up Dependency Scanning (remediatiation) and remove false-positives.
Duration of the gemnasium-dependency_scanning
job goes from 5 minutes (5'26") to 33 seconds.
- scanning job after the change
- scanning job before the change
Total duration for the pipeline goes from 11 min (10'35") to 8 min (7'42"). This is a 27% decrease.
What are the relevant issue numbers?
See @fcatteau's KRs for FY21-Q4:
30% decrease in analyzer pipeline duration when pushing to MR
gitlab-com/www-gitlab-com#10030 (closed)
Does this MR meet the acceptance criteria?
Changelog entry added-
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Fabien Catteau