-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[common-go] Move db models to common-go #14731
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
Conversation
9d3e306
to
65abd99
Compare
/werft run 👍 started the job as gitpod-build-mp-common-move-db-models.6 |
743c10b
to
12466eb
Compare
/werft run 👍 started the job as gitpod-build-mp-common-move-db-models.10 |
@easyCZ I think the Leeway build errors are due to a bug in Leeway. Go packages check that all transitive dependencies exist in the cache (here) but for whatever reason, Reading through Leeway I see that for Yarn packages it skips ephemeral packages when checking transitive dependencies. I wonder if we need to do something similar for Go packages. I will follow up with the team. |
3b87ac8
to
6310847
Compare
/werft run 👍 started the job as gitpod-build-mp-common-move-db-models.12 |
@easyCZ As a quick hack I copied over the Yarn implementation to the Go one. You could try it on your change using |
@mads-hartmann That got me further. Still failed but with application level problems, not build problems - https://werft.gitpod-dev.com/job/gitpod-build-mp-common-move-db-models.13 |
6310847
to
9564a27
Compare
@mads-hartmann I've triggered https://werft.gitpod-dev.com/job/gitpod-build-mp-common-move-db-models.15 which should contain a fix for the application level. |
https://werft.gitpod-dev.com/job/gitpod-build-mp-common-move-db-models.15 failed, but I can't tell why. In any case, it looks like that change does unblock this. |
@easyCZ @laushinka Looking at the logs from the most recent job I see
That might be worth looking into. In the mean time I will try to get the fix into main - I just have to talk to Chris to understand if the change is desirable. |
Taking a look! |
/hold more discussion needed |
This change repeats the
There are different ways to move forward:
|
After a discussion, it's preferred to have something like a New branch[1] |
Yeah that's also a perfectly viable option. |
Moving to draft, as we'll be adding this to a new module. |
Closing this, as it is continued in #14770. |
Description
Moves DB models to common-go, such that they can be used by
public-api
but alsousage
. Ideally, this wouldn't be in a common package but right now this is not possible as we have DB logic spread across multiple systems. Sharing through common-go is better than duplicating, as that would drift quickly.Changes performed in this PR:
components/usage/pkg/db
intocomponents/common-go/db
common-go
depends ongitpod-protocol
for starting the DBusage
ongitpod-protocol
for starting the DBRelated Issue(s)
Fixes #
How to test
CI builds
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh