Skip to content

[image-builder] Avoid returning "Unknown" #20854

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

Merged
merged 3 commits into from
Jun 2, 2025
Merged

Conversation

geropl
Copy link
Member

@geropl geropl commented May 27, 2025

Description

So far image-builder seems to return "Unknown" to almost all "Build" requests. This PR addressed this by:

  1. image-builder-mk3: Avoid returning "Unknown" in error cases, especially when the client terminated the stream
  2. ws-manager-mk2: Avoid returning "Unknown" when client terminated the stream (and add logging for other cases)
  3. ws-manager-mk2: Prefix gRPC package name with proxied. so upstream metrics/alerting can properly filter out by prefix/name

Related Issue(s)

Fixes CLC-1332

How to test

Documentation

Preview status

gitpod:summary

Build Options

Build
  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer
  • analytics=segment
  • with-dedicated-emulation
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft preemptible
    Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh. If enabled, with-preview and with-large-vm will be enabled.
  • with-monitoring

/hold

geropl added 2 commits May 28, 2025 14:25
… avoid name clashes with the original service

Also, avoid sending "Unknown" errors, and wrap it into meaningfull gRPC status codes (+ additional logging)
@geropl geropl force-pushed the gpl/1332-grpc-unknown branch from d43daca to 7196c9b Compare May 30, 2025 08:29
@roboquat roboquat added size/XXL and removed size/L labels May 30, 2025
}{
// Normal cases
{
name: "basic service with single dot",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cline might have gone a little overboard with these test cases - but it's good to have it anyway 😅

@geropl geropl marked this pull request as ready for review May 30, 2025 08:38
@geropl geropl requested review from a team as code owners May 30, 2025 08:38
Copy link
Contributor

@corneliusludmann corneliusludmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised.

@geropl
Copy link
Member Author

geropl commented Jun 2, 2025

/unhold

@roboquat roboquat merged commit cf24e1c into main Jun 2, 2025
62 of 63 checks passed
@roboquat roboquat deleted the gpl/1332-grpc-unknown branch June 2, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants