-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Prebuild Events #5116
Prebuild Events #5116
Conversation
Removing the automatic review request because this is still Draft. 😊 |
6ed7198
to
1e77cd6
Compare
df4319a
to
52cd68b
Compare
/werft run 👍 started the job as gitpod-build-at-prebuild-events.23 |
f90bba1
to
8c84609
Compare
dbc8215
to
b2a1030
Compare
b2a1030
to
abcdd2e
Compare
/werft run 👍 started the job as gitpod-build-at-prebuild-events.36 |
I guess the old namespace needs to be cleaned up first. EDIT: This prebuild was stuck in Terminating for 9 hours:
Fixed like so:
|
/werft run 👍 started the job as gitpod-build-at-prebuild-events.37 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing prebuilds pop-up on the Prebuilds list feels great! UX looks good! 🌟 🔝
LGTM label has been added. Git tree hash: 03a58e29a0ba7afe522c8bfc7fff93755a2a1fe1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks @AlexTugarev! 👍
The UX also looks good to me (the Prebuilds page is so fast now! ⚡⚡ thank you so much for that)
I've left a few questions & suggestions in-line. Most notably, I think the events on "start prebuild" and on "start workspace"(!) should be triggered asynchronously, so as to:
- Not make these important API calls slower with extra
await
s - Not make these important API calls fail if triggering an event throws
/hold
@@ -52,7 +52,7 @@ export default function () { | |||
if (!prebuild) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did get to see a Prebuild with working logs, but for another Prebuild (for https://gitlab.com/gitpod-io/gitlab/-/merge_requests/1) I got this slightly worrying error:
Uncaught (in promise) Error: Request findPrebuilds failed with message: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jankeromnes, I've add a check to prevent it from hitting the db layer: https://github.com/gitpod-io/gitpod/pull/5116/files#diff-9c81815b0337b4e00a2ab1615cab6010a2497412f99dfc63c73a17f8bf28a90cR877
Can you invite me to that team please? I'd like to reproduce/verify the fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's on my user 😬 but please feel free to move it to a team by hacking the DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlexTugarev I tried reproducing this bug, but I couldn't. Maybe that's a somewhat good sign? Although quite inconclusive, due to the problems on dev-staging / the partial deployment. 😅
- I tried triggering new prebuilds, but they get lost in the "randomly-sorted 30-limited Prebuilds list" (the current deployment probably doesn't have the sort-order or creationTime fixes)
- When trying the particular prebuild that failed, it now loads successfully, for what it's worth: https://at-prebuild-events.staging.gitpod-dev.com/projects/GitLab/d3b4628f-9649-4bef-8a86-01737fbf3ff8
const pbws = await this.workspaceDb.trace({}).findPrebuiltWorkspaceById(prebuildId); | ||
const info = (await this.workspaceDb.trace({}).findPrebuildInfos([prebuildId]))[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be cool to send an actual trace context here? (E.g. a few recently added methods in ProjectsService
now take a TraceContext
-- maybe findPrebuilds
could too?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 for tracing. I
30fe0bf
to
1e5b1e3
Compare
/werft run 👍 started the job as gitpod-build-at-prebuild-events.40 |
1e5b1e3
to
d9e7296
Compare
d9e7296
to
e62458b
Compare
/approve no-issue |
/hold cancel |
/lgtm |
LGTM label has been added. Git tree hash: 1b9a810a8e32404584b4553fa3b110b91735739d
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexTugarev, gtsiolis, jankeromnes, svenefftinge Associated issue requirement bypassed by: AlexTugarev The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @svenefftinge! |
This PR includes