Skip to content

Commit 046af77

Browse files
committed
fix(ci): satisfy shell quality checks
1 parent 0a8b000 commit 046af77

14 files changed

Lines changed: 28 additions & 14 deletions

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
name: Static quality and data integrity
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
with:
2424
fetch-depth: 0
25-
- uses: actions/setup-python@v5
25+
- uses: actions/setup-python@v6
2626
with:
2727
python-version: "3.10"
2828
cache: pip
@@ -52,10 +52,10 @@ jobs:
5252
python-version: ["3.10", "3.11", "3.12"]
5353

5454
steps:
55-
- uses: actions/checkout@v4
55+
- uses: actions/checkout@v5
5656

5757
- name: Set up Python ${{ matrix.python-version }}
58-
uses: actions/setup-python@v5
58+
uses: actions/setup-python@v6
5959
with:
6060
python-version: ${{ matrix.python-version }}
6161
cache: pip
@@ -77,10 +77,10 @@ jobs:
7777
runs-on: ubuntu-latest
7878

7979
steps:
80-
- uses: actions/checkout@v4
80+
- uses: actions/checkout@v5
8181

8282
- name: Set up Python
83-
uses: actions/setup-python@v5
83+
uses: actions/setup-python@v6
8484
with:
8585
python-version: "3.10"
8686
cache: pip

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-python@v5
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-python@v6
1616
with:
1717
python-version: "3.10"
1818
- run: python -m pip install -r requirements-dev.txt

scripts/_kill_vllm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
# shellcheck source=scripts/lib/common.sh
23
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
34
# Kill vLLM processes safely without affecting parent
45
trap '' TERM HUP

scripts/_launch_all_vllm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
2+
# shellcheck source=scripts/lib/common.sh
23
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
34
# Launch one vLLM instance per GPU and keep the script alive.
45
# Respects the same env-var conventions as scripts/serve_vllm_multi.sh:

scripts/check_links.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
# bash scripts/check_links.sh # local file checks only (fast)
1212
# bash scripts/check_links.sh --external # also curl every external URL
1313

14+
# shellcheck source=scripts/lib/common.sh
1415
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
1516

1617
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
1718
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
18-
cd "$PROJECT_ROOT"
19+
cd "$PROJECT_ROOT" || exit
1920

2021
CHECK_EXTERNAL=0
2122
[ "${1:-}" = "--external" ] && CHECK_EXTERNAL=1

scripts/download_data.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22
# download_data.sh — Download datasets for RewardHarness pipeline
3+
# shellcheck source=scripts/lib/common.sh
34
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
45

56
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

scripts/lib/common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -Eeuo pipefail
55

66
RH_PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
77
RH_PYTHON="${VLLM_PYTHON:-python}"
8+
export RH_PROJECT_ROOT RH_PYTHON
89
readonly RH_PROJECT_ROOT RH_PYTHON
910

1011
rh_log() {

scripts/reproduce.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/usr/bin/env bash
22
# reproduce.sh — End-to-end reproducibility script for RewardHarness
33
# Runs setup → download → serve → evolution → benchmark → print results
4+
# shellcheck source=scripts/lib/common.sh
45
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
56

67
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
78
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
8-
cd "$PROJECT_ROOT"
9+
cd "$PROJECT_ROOT" || exit
910

1011
VLLM_PIDS=()
1112

@@ -20,7 +21,9 @@ cleanup() {
2021
while IFS= read -r url; do
2122
[[ -z "$url" || "$url" =~ ^# ]] && continue
2223
port=$(echo "$url" | sed -nE 's#.*:([0-9]+).*#\1#p')
23-
[ -n "$port" ] && fuser -k "$port/tcp" 2>/dev/null || true
24+
if [ -n "$port" ]; then
25+
fuser -k "$port/tcp" 2>/dev/null || true
26+
fi
2427
done < configs/endpoints.txt
2528
fi
2629
wait 2>/dev/null || true

scripts/run_all_benchmarks.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Run benchmarks on ALL checkpoints (iter_0 through iter_9) sequentially.
33
# Each benchmark takes ~7 min, total ~70 min.
44
# Results saved to results/benchmark_iter_N.json
5+
# shellcheck source=scripts/lib/common.sh
56
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
67

78
PYTHON="${VLLM_PYTHON:-python}"

scripts/run_evolution_seed.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
# Run evolution with a specific seed. Creates isolated library + results.
33
# Usage: bash scripts/run_evolution_seed.sh <seed> [max_iters]
4+
# shellcheck source=scripts/lib/common.sh
45
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/lib/common.sh"
56

67
SEED="${1:?Usage: $0 <seed> [max_iters]}"

0 commit comments

Comments
 (0)