thoughtworks / metrik

An easy-to-use, cross-platform measurement tool that pulls data out of CD pipelines and analysis the four key metrics for you.
MIT License
354 stars 87 forks source link

[Github Actions] Make workflow configurable in pipeline config #118

Open LixingSun opened 2 years ago

LixingSun commented 2 years ago

Describe the context of this enhancement Currently for Github Actions project, by default for backend it will fetch all workflow for the repo. However in some cases not all workflow are meaningful and never be cared to visualize (e.g. scanning, specific testing, spiking ,etc.). If we could exclude these unimportant workflows, we could speed up the data sync as well as reduce some potential issue may have due to them.

Describe the solution you'd like Enable workflow configuration in the pipeline config.

Task 1: Specify workflows when create Github Actions pipeline

Task 2: Update workflows when configure Github Actions pipeline

Task 3: Sync data with only configured workflows

Additional context The config of workflow need to store both workflow name and workflow id.

UI position for the new config: image

pberthonneau commented 2 years ago

I have one workflow deploying to multiple environments, actually the one provided in input (in my case I have only one prod server). Therefore what I'm missing is to select the environment I want to measure on. I don't like to duplicate a workflow for a prod, because I want to ensure this workflow runs fine on lower environments.