Skip to content
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

ci: Fix Windows CI Errors #7837

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

ci: Fix Windows CI Errors #7837

wants to merge 4 commits into from

Conversation

fpetrini15
Copy link
Contributor

@fpetrini15 fpetrini15 commented Nov 27, 2024

What does the PR do?

Fixes accumulated errors in Windows CI.

Checklist

  • PR title reflects the change and is of format <commit_type>: <Title>
  • Changes are described in the pull request.
  • Related issues are referenced.
  • Populated github labels field
  • Verified that the PR passes existing CI.
  • Verified copyright is correct on all changed files.
  • Added succinct git squash message before merging ref.
  • All template sections are filled out.

Commit Type:

Check the conventional commit type
box here and add the label to the github PR.

  • build
  • ci
  • docs
  • feat
  • fix
  • perf
  • refactor
  • revert
  • style
  • test

CI Pipeline ID:

20833929

@fpetrini15 fpetrini15 added the PR: ci Changes to our CI configuration files and scripts label Nov 27, 2024
qa/common/infer_util.py Outdated Show resolved Hide resolved
Co-authored-by: Ryan McCormick <[email protected]>
@@ -85,6 +85,7 @@ if [[ -v WSL_DISTRO_NAME ]] || [[ -v MSYSTEM ]]; then
BACKEND_DIR=${BACKEND_DIR:=C:/tritonserver/backends}
SERVER=${SERVER:=/mnt/c/tritonserver/bin/tritonserver.exe}
export WSLENV=$WSLENV:TRITONSERVER_DELAY_SCHEDULER
export USE_GRPC=1
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It we use HTTP it fails a performance-related test associated with response time. It's been known for several months. Will share more details via DM.

Copy link
Contributor

@rmccorm4 rmccorm4 Nov 27, 2024

Choose a reason for hiding this comment

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

Can you leave a comment above it for future reference? I think it's too cryptic on it's own to understand why it's there later. If there's some kind of follow-up ticket, you can ref that here too.

@@ -135,7 +135,7 @@ SERVER_LD_PRELOAD=$CUSTOMPLUGIN
SERVER_ARGS=$SERVER_ARGS_BASE
SERVER_LOG="./inference_server_$LOG_IDX.log"

if [[ ! -v WSL_DISTRO_NAME ]] || [[ ! -v MSYSTEM ]]; then
if [[ ! -v WSL_DISTRO_NAME ]] && [[ ! -v MSYSTEM ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Not familiar with MSYSTEM - but what's the scenario where one is set and not the other?

Copy link
Contributor

Choose a reason for hiding this comment

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

Variable WSL_DISTRO_NAME applicable to WSL environment only.

Variable MSYSTEM is applicable for GNU on Windows.

Afraid condition will be always false

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original intention of this if-condition was to skip the enclosed test on a Windows system. On a Linux system, neither variable will be set, so the enclosed test will be run. On a Windows system, we anticipate that at least one of these will be set, ensuring that we skip the test.

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: In that case, can we either:

(a) match the if statement at the top for consistency?

if [[ -v WSL_DISTRO_NAME ]] || [[ -v MSYSTEM ]]; then
  echo "Skip this section on Windows"
else
  ...
fi

(b) or set some syntactic sugar naming ex:

IS_WINDOWS=...

if [ IS_WINDOWS ] 
# or
if [ ! IS_WINDOWS ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: ci Changes to our CI configuration files and scripts
Development

Successfully merging this pull request may close these issues.

3 participants