Skip to content

Commit

Permalink
[CI] Fix the CI after image update. (apache#8164)
Browse files Browse the repository at this point in the history
- ci-gpu needs env var update to support all GPUs.
- Update git-black to fix the recent encoding error due to latest black dep.
  • Loading branch information
tqchen authored and mehrdadh committed Jun 3, 2021
1 parent 876bb06 commit 703d692
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

// NOTE: these lines are scanned by docker/dev_common.sh. Please update the regex as needed. -->
ci_lint = "tlcpack/ci-lint:v0.65"
ci_gpu = "tlcpack/ci-gpu:v0.74"
ci_gpu = "tlcpack/ci-gpu:v0.75"
ci_cpu = "tlcpack/ci-cpu:v0.74"
ci_wasm = "tlcpack/ci-wasm:v0.71"
ci_i386 = "tlcpack/ci-i386:v0.73"
Expand Down
6 changes: 5 additions & 1 deletion tests/lint/git-black.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ if [ -z ${FILES+x} ]; then
fi
echo "Files: $FILES"

# required to make black's dep click to work
export LC_ALL=C.UTF-8
export LANG=C.UTF-8

if [[ ${INPLACE_FORMAT} -eq 1 ]]; then
echo "Running black on Python files against revision" $1:
CMD=( "black" "${FILES[@]}" )
echo "${CMD[@]}"
"${CMD[@]}"
else
echo "Running black in checking mode"
black --diff --check ${FILES[@]}
python3 -m black --diff --check ${FILES[@]}
fi

0 comments on commit 703d692

Please sign in to comment.