Skip to content

Commit

Permalink
[ci] Bug Fix: Fix escape character warnings
Browse files Browse the repository at this point in the history
Recent updates on GitHub side has resulted in warnings in Python code
related to escape sequences. This PR addresses those warnings.
  • Loading branch information
anandbonde committed Jan 13, 2025
1 parent 87db761 commit a89f73d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tools/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def read_args() -> argparse.Namespace:
parser.add_argument("--client-addr", required=True,
help="sets client address in tests")
parser.add_argument("--config-path", required=False,
default="\$HOME/config.yaml", help="sets config path")
default="$HOME/config.yaml", help="sets config path")

# Other options.
parser.add_argument("--output-dir", required=False,
Expand Down
14 changes: 7 additions & 7 deletions tools/ci/task/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ def __init__(self, host: str, cmd: str):

@staticmethod
def _build_env_cmd() -> str:
rust_path = "\$RustPath = Join-Path \$Env:HOME \\.cargo\\bin"
git_path = "\$GitPath = Join-Path \$Env:ProgramFiles \\Git\\cmd"
env_path_git = "\$Env:Path += \$GitPath + \';\'"
env_path_rust = "\$Env:Path += \$RustPath + \';\'"
vs_install_path = "\$VsInstallPath = &(Join-Path \${Env:ProgramFiles(x86)} '\\Microsoft Visual Studio\\Installer\\vswhere.exe') -latest -property installationPath"
import_module = "Import-Module (Join-Path \$VsInstallPath 'Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll')"
enter_vsdevshell = "Enter-VsDevShell -VsInstallPath \$VsInstallPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'"
rust_path = "$RustPath = Join-Path $Env:HOME \\.cargo\\bin"
git_path = "$GitPath = Join-Path $Env:ProgramFiles \\Git\\cmd"
env_path_git = "$Env:Path += $GitPath + \';\'"
env_path_rust = "$Env:Path += $RustPath + \';\'"
vs_install_path = "$VsInstallPath = &(Join-Path ${Env:ProgramFiles(x86)} '\\Microsoft Visual Studio\\Installer\\vswhere.exe') -latest -property installationPath"
import_module = "Import-Module (Join-Path $VsInstallPath 'Common7\\Tools\\Microsoft.VisualStudio.DevShell.dll')"
enter_vsdevshell = "Enter-VsDevShell -VsInstallPath $VsInstallPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'"

env_cmd = " ; ".join([rust_path, git_path, env_path_git, env_path_rust, vs_install_path,
import_module, enter_vsdevshell])
Expand Down
2 changes: 1 addition & 1 deletion tools/demikernel_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def read_args() -> argparse.Namespace:
parser.add_argument("--client-addr", required="--test-system" in sys.argv,
help="sets client address in tests")
parser.add_argument("--config-path", required=False,
default="\$HOME/config.yaml", help="sets config path")
default="$HOME/config.yaml", help="sets config path")

# Other options.
parser.add_argument("--output-dir", required=False,
Expand Down

0 comments on commit a89f73d

Please sign in to comment.