-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug][Github] Pipelines failing on converting issue to incident #8122
Comments
The issue with the GitHub integration pipelines failing at the "ConvertIssuesToIncidents" step in version v1.0.1 is due to the database schema not supporting the "INCIDENT" type in the "type" column of the "issues" table. The code expects this type to exist, and if it's missing, it causes the pipeline to fail [1]. To resolve this, ensure that the database schema is updated to include the "INCIDENT" type for the "type" column in the "issues" table. This should allow the pipeline to run successfully. |
@dosu The type column is set to varchar(100) so not sure what does INCIDENT type mean. |
The "INCIDENT" type in the context of the "type" column set to varchar(100) refers to an issue that is a bug found after release. It is one of the standardized types used to categorize issues in Apache DevLake. The other standard types are "REQUIREMENT" for features and "BUG" for bugs found during testing [1]. |
@dosu what will then be the column type for type column in issues table? |
@dosu this is what it is present then not sure what is the cause of failing pipeline |
The pipeline failure might be due to other issues beyond the column type. Here are some potential causes:
Review these areas to identify the root cause of the failure. |
Resolved this by adding below columns |
I ran into exactly this problem with version 1.0.1 using Postgres. I did not ran into this issue with MySQL. As I have to use Postgres in my environment can you provide some hints if this is a recent bug and if this is supposed to be fixed. From the previous comment I only get that certain columns are added to certain tables but I can not see any PR related which addresses this. See some part of the error message I get in the logs:
I'm happy to provide a PR I just need to understand if this is supposed to be already fixed or if the mentioned tables have to be patched. I also wonder why this is working on MySQL. Maybe there are some migrations to fix? Any hint would be much appreciated and I'm happy to support to get things fixed. I just need a starting point. UPDATE: I updated from v1.0.0 that is why it worked with MySQL. So it also fails with MySQL and it is not a Postgres only issue. This seems to be a major issue for people using GitHub. Do you see the option to point the user docs to version 1.0.0. I moved to version 1.0.1 because of the banner in the doc |
We are facing the same issue after the upgrade to v1.0.1. We use Postgres as well and the Azure DevOps connection. We tried to add the columns manually as mentioned by @sanjchhoker but still the same error.
|
@kgalli I think the issue was fixed with this PR #8163 and it is included in the release v1.0.2-beta4 |
Search before asking
What happened
Pipelines only using github integration is failing consistently with below on dora step.
Checked database and we have nothing in incident table.
What do you expect to happen
Pipeline should run successfully
How to reproduce
Run pipeline with a github connection.
Anything else
No response
Version
v1.0.1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: