API error when trying to get branches information for hg native repos
We started using https://github.com/mvisonneau/gitlab-ci-pipelines-exporter to monitor our pipeline and jobs in heptapod. It's not fully working yet, but it's pretty promising. While testing it, we found some issues and hope to report them to the project so that future users can easily set it up with heptapod.
One of them is related to hg native repos. They seem to serve a 500 error when the software queries for branches :
{"error":"GET https://forge.extranet.logilab.fr/api/v4/projects/open-source/gitlab-ci-templates/repository/branches: 500 {message: 500 Internal Server Error}","level":"warning","msg":"pulling refs from project","project-name":"open-source/gitlab-ci-templates","time":"2021-04-29T06:23:25Z"}
If you check https://forge.extranet.logilab.fr/open-source/gitlab-ci-templates it shows it's a hg (native)
repo.
I can dig further in the logs if needed.
If you want to use the project, you have to customize which refs it looks for (since there is no main
or master
:
[snip]
project_defaults:
pull:
refs:
regexp: "^main|master|default$"
(might try to get that into the default value...)