Skip to content

Find and scan projects using new finder

Fabien Catteau requested to merge 263441-detect into master

What does this MR do?

  • Relies on the finder package of gemnasium to find projects; finder is initialized with preset specific to this project
  • Register builders with the names of the package managers they support, and not with compatible input files
  • Change the build loop to leverage the projects and package manager info returned by the finder
  • Change common/command configuration to AnalyzeAll; this project can now figure out what to process w/o depending on the common/search  package

NOTE: There's a build loop even though gemnasium-python only scans one project. The goal is to keep gemnasium-python aligned with gemnasium-maven, even if the loop is not needed. There's no risk because the finder won't find more than one Python project, because of the finder preset specific to gemnasium-python.

This depends on gemnasium!134 (merged)

Next step is to move the builder package and the main build loop to the main gemnasium project. This is possible since discrepancies b/w gemnasium-maven and gemnasium-python have been removed. The builders themselves can remain in this project.

TODO

What are the relevant issue numbers?

gitlab-org/gitlab#263441 (closed)

Does this MR meet the acceptance criteria?

Edited by Fabien Catteau

Merge request reports