-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[public-api] migrate PrebuildService #19062
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
ccd31b6
to
ba8d3a4
Compare
ba8d3a4
to
8d11a3d
Compare
8d11a3d
to
88aa78d
Compare
88aa78d
to
3f324fa
Compare
3f324fa
to
1011e90
Compare
components/dashboard/src/data/prebuilds/latest-project-prebuild-query.ts
Show resolved
Hide resolved
f44c51c
to
9c269ac
Compare
|
||
// This is used to version the cache | ||
// If data we cache changes in a non-backwards compatible way, increment this version | ||
// That will bust any previous cache versions a client may have stored | ||
const CACHE_VERSION = "3"; | ||
const CACHE_VERSION = "5"; |
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.
bumping up cache!
034237a
to
cb3b524
Compare
@@ -76,6 +87,139 @@ export class PrebuildManager { | |||
return undefined; | |||
} | |||
|
|||
public async *watchPrebuildStatus(userId: string, configurationId: string): AsyncGenerator<PrebuildWithStatus> { |
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.
this one is new, and used only by gRPC
cb3b524
to
2a1566a
Compare
2a1566a
to
e2f5a26
Compare
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.
@akosyakov, just tested the default flows with prebuilds, and it seems to work just fine. Code changes looks good, but it's a big 🐋 of a PR.
Should we also test with FF enabled? 🤷🏻
Please rebase, so we can proceed.
yeah, I mean we can ask to double test by @mustard-mh to have more confidence
We can do it, but let's after approving JSON-RPC shim. That it does not cause confusion between testers. |
e2f5a26
to
ac1cc39
Compare
rebased, but now we need to wait for a build |
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.
LGTM!
@mustard-mh do you want to give it a go just to boost our confidence a bit 😄 |
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.
Log will be duplicated after prebuild is succeed, but not harmful (maybe it's the same in Cloud now)
✅ Test it works as promised 🚀
on gitpod.io it looks like @mustard-mh the same? |
/unhold |
Description
Summary generated by Copilot
🤖 Generated by Copilot at ccd31b6
Migrate the dashboard components and services from the server API to the new public API for prebuilds, defined in
prebuild.proto
and implemented inpublic-api.ts
andjson-rpc-prebuild-client.ts
. Add error handling towatchWorkspace
and move and rename thePrebuildLogs
component.Related Issue(s)
Fixes EXP-850
How to test
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold