-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Ensure WORKERS is respected in syntect server image as env var #59018
Conversation
Codenotify: Notifying subscribers in CODENOTIFY files for diff 474813e...8ce7c4a.
|
# bad grammar/file combinations. If it happens with four workers, only 1/4th of | ||
# requests will be affected for a short period of time. Each worker can require | ||
# at peak around 1.1 GiB of memory. | ||
"-workers=$WORKERS", |
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.
Is WORKERS
guaranteed to be set? If not, should we have a default value here?
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.
Checking this as part of the review:
~/work/sourcegraph dax/update_syntect_server $ docker load --input=bazel-bin/docker-images/syntax-highlighter/image_tarball/tarball.tar
69635e4afa19: Loading layer [==================================================>] 23.22MB/23.22MB
9eb57e8e2f08: Loading layer [==================================================>] 14.48MB/14.48MB
Loaded image: syntect-server:candidate
~/work/sourcegraph dax/update_syntect_server $ ba
~/work/sourcegraph dax/update_syntect_server $ docker run --rm --entrypoint=/bin/sh -it syntect-server:candidate
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
/ # env
WORKERS=4
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.
Manually checked the WORKERS
env var being there by default, all good LGTM
Minor improvement but this a bandaid instead of attempting https://github.com/sourcegraph/sourcegraph/issues/21942 |
Ensure CI passes
Test plan
bazel build //docker-images/syntax-highlighter:image --config=darwin-docker