apache / incubator-devlake

Apache DevLake is an open-source dev data platform to ingest, analyze, and visualize the fragmented data from DevOps tools, extracting insights for engineering excellence, developer experience, and community growth.
https://devlake.apache.org/
Apache License 2.0
2.5k stars 493 forks source link

[Bug][Bitbucket] Error looping indefinitely during Bitbucket sync due to failed getting SubTaskInfo #7440

Open yusufsyaifudin opened 1 month ago

yusufsyaifudin commented 1 month ago

Search before asking

What happened

I am using Postgres as my database and connect to one of my repositories in Bitbucket, but during sync I found this error

image

I am sure that it is triggered by this code: https://github.com/apache/incubator-devlake/blob/v1.0.0-beta6/backend/server/services/task.go#L309

This happened because Postgres doesn't support compare boolean in column is_collector with operator = 1.

image

What do you expect to happen

It should not break both for Postgres and MySQL.

How to reproduce

Install Devlake and Devlake Config UI version v1.0.0-beta6, using Postgres as database.

Anything else

No response

Version

v1.0.0-beta6

Are you willing to submit PR?

Code of Conduct

abeizn commented 1 month ago

@yusufsyaifudin It takes effect in version v1.0.0-beta7.

yusufsyaifudin commented 1 month ago

@yusufsyaifudin It takes effect in version v1.0.0-beta7.

sorry, haven't tried it again yet, I use v0.21.0 because the db migration (only creating schema at first run) seems too long, so I use v0.21.0