Skip to content

Commit

Permalink
revert some
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jan 10, 2025
1 parent ac48f78 commit 7e7df25
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 deletions.
34 changes: 10 additions & 24 deletions ci/test-dev-context-only-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,30 @@

set -eo pipefail

check_dcou1() {
check_dcou() {
scripts/check-dev-context-only-utils.sh check-all-targets "$@"
}

check_dcou2() {
scripts/check-dev-context-only-utils.sh check-bins-and-lib "$@"
}

shard=$1
shift
case "$shard" in
1-of-4)
check_dcou1 --partition 1/1
#check_dcou1 --partition 1/9
#check_dcou1 --partition 2/9
#check_dcou1 --partition 3/9
#check_dcou1 --partition 4/9
#check_dcou1 --partition 5/9
#check_dcou2 --partition 1/9
#check_dcou2 --partition 2/9
#check_dcou2 --partition 3/9
#check_dcou2 --partition 4/9
#check_dcou2 --partition 5/9
check_dcou --partition 1/9
check_dcou --partition 2/9
check_dcou --partition 3/9
check_dcou --partition 4/9
check_dcou --partition 5/9
;;
2-of-4)
check_dcou2 --partition 1/1
#check_dcou1 --partition 6/9
#check_dcou1 --partition 7/9
#check_dcou2 --partition 6/9
#check_dcou2 --partition 7/9
check_dcou --partition 6/9
check_dcou --partition 7/9
;;
3-of-4)
#check_dcou1 --partition 8/9
#check_dcou2 --partition 8/9
check_dcou --partition 8/9
;;
4-of-4)
#check_dcou1 --partition 9/9
#check_dcou2 --partition 9/9
check_dcou --partition 9/9
;;
*)
echo "$0: unrecognized shard: $shard";
Expand Down
4 changes: 1 addition & 3 deletions scripts/check-dev-context-only-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ fi
# dcou tends to newly trigger `unused_imports` and `dead_code` lints.
# We could selectively deny (= `-D`) them here, however, deny all warnings for
# consistency with other CI steps and for the possibility of new similar lints.
# shellcheck disable=SC2155
export RUSTFLAGS="-D warnings -Z threads=$(nproc) $RUSTFLAGS"
unset RUST_WRAPPER
export RUSTFLAGS="-D warnings -Z threads=8 $RUSTFLAGS"

if [[ $mode = "check-bins-and-lib" || $mode = "full" ]]; then
_ cargo "+${rust_nightly}" hack "$@" check
Expand Down

0 comments on commit 7e7df25

Please sign in to comment.