incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug][CircleCI] CircleCI regex is not working to collect data

Open chrisolido opened this issue 1 year ago • 3 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

What happened

When configuring the scope config the regex is not working

image

What do you expect to happen

It should collect data and show in DORA metrics.

How to reproduce

Go to - project - connections - scope config - transformations

image

No data collected when run. image

Anything else

This is present since the installation.

Version

v0.21.0@ac4f7fe

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

chrisolido avatar Jun 04 '24 01:06 chrisolido

The CircleCI regex configuration in DevLake might not be working correctly because the regular expressions provided in the deploymentPattern and productionPattern fields might not match any of the CircleCI workflow or job names.

Ensure that the regular expressions you are using in the deploymentPattern and productionPattern fields accurately match the names of your CircleCI workflows or jobs. For example:

<Input
  style={{ width: 200, margin: '0 8px' }}
  placeholder="(deploy|push-image)"
  value={transformation.deploymentPattern ?? ''}
  onChange={(e) =>
    onChangeTransformation({
      ...transformation,
      deploymentPattern: e.target.value,
      productionPattern: !e.target.value ? '' : transformation.productionPattern,
    })
  }
/>

If the names of your workflows or jobs do not match the regex (deploy|push-image), then no data will be collected. Similarly, ensure that the productionPattern is also correctly set to match the intended production deployments:

<Input
  style={{ width: 200, margin: '0 8px' }}
  placeholder="prod(.*)"
  value={transformation.productionPattern ?? ''}
  onChange={(e) =>
    onChangeTransformation({
      ...transformation,
      productionPattern: e.target.value,
    })
  }
/>

Double-check the actual names of your CircleCI workflows and jobs and adjust the regex patterns accordingly [1].

To continue talking to Dosu, mention @dosu.

dosubot[bot] avatar Jun 04 '24 05:06 dosubot[bot]

Hi, can you check if there is any records in the cicd_pipelines and cicd_deployments tables?

klesh avatar Jun 04 '24 07:06 klesh

It seems to working fine on my local machine:

image

image

klesh avatar Jun 06 '24 08:06 klesh

This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

github-actions[bot] avatar Aug 06 '24 00:08 github-actions[bot]

This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.

github-actions[bot] avatar Aug 13 '24 00:08 github-actions[bot]