Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

grpc: put grpcwebui behind environment variable#56314

Merged
ggilmore merged 1 commit into
mainfrom
env-var-grpc-ui
Aug 31, 2023
Merged

grpc: put grpcwebui behind environment variable#56314
ggilmore merged 1 commit into
mainfrom
env-var-grpc-ui

Conversation

@ggilmore

@ggilmore ggilmore commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

The gRPCWebUI debug page for each of or services will only be enabled if GRPC_WEB_UI_ENABLED is set to true (false by default).

Test plan

  1. Run env GRPC_WEB_UI_ENABLED=false sg start, open https://sourcegraph.test:3443/-/debug/proxies/frontend-127.0.0.1/debug/grpcui/ and see the following:

Screenshot 2023-08-31 at 8 47 15 AM

  1. Run env GRPC_WEB_UI_ENABLED=true sg start, open https://sourcegraph.test:3443/-/debug/proxies/frontend-127.0.0.1/debug/grpcui/ and see the following:

image

@cla-bot cla-bot Bot added the cla-signed label Aug 31, 2023
@ggilmore ggilmore requested review from a team and camdencheek August 31, 2023 13:50
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 23ad498...a703678.

Notify File(s)
@keegancsmith internal/debugserver/grpcui.go

@ggilmore ggilmore enabled auto-merge (squash) August 31, 2023 14:03
@github-actions

Copy link
Copy Markdown
Contributor

The backport to 5.1 failed:

Validation Failed: "Could not resolve to a node with the global id of 'T_kwDOADy5QM4AWdx9'."

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-5.1 5.1
# Navigate to the new working tree
cd .worktrees/backport-5.1
# Create a new branch
git switch --create backport-56314-to-5.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 3cb0b12b11ea2004e6dfc61b5722db8c0961b68d
# Push it to GitHub
git push --set-upstream origin backport-56314-to-5.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-5.1

Then, create a pull request where the base branch is 5.1 and the compare/head branch is backport-56314-to-5.1.
See https://github.com/sourcegraph/sourcegraph/actions/runs/6038506954/jobs/14785 for more information.
Make sure to tag @sourcegraph/release-guild in the pull request description.
Once the backport pull request is created, kindly remove the release-blocker from this pull request.

@github-actions github-actions Bot added backports failed-backport-to-5.1 release-blocker Prevents us from releasing: https://about.sourcegraph.com/handbook/engineering/releases labels Aug 31, 2023
github-actions Bot pushed a commit that referenced this pull request Aug 31, 2023
camdencheek pushed a commit that referenced this pull request Sep 1, 2023
grpc: put grpcwebui behind environment variable (#56314)

(cherry picked from commit 3cb0b12)

Co-authored-by: Geoffrey Gilmore <geoffrey@sourcegraph.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backports cla-signed release-blocker Prevents us from releasing: https://about.sourcegraph.com/handbook/engineering/releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants