Skip to content

Commit 08f1c73

Browse files
committed
fix(qa): actionlint env-context, sonar exclude garbage, shell [[ ]]
1 parent 8fa1ddf commit 08f1c73

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

.github/workflows/bench-sweep.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,11 @@ jobs:
7979
env:
8080
CELL_TAG: ${{ matrix.method }}_b${{ matrix.budget }}_${{ matrix.test_set }}
8181
CELL_DIR: results/sweep/${{ matrix.method }}_b${{ matrix.budget }}_${{ matrix.test_set }}
82-
MANIFESTS_DIR: benchmarks/manifests/${{ env.MANIFESTS_SUBDIR }}
83-
# Quote inputs into env so heredocs/shell can reference them as
84-
# ordinary shell vars without GitHub-Actions template interpolation
85-
# opening a script-injection seam.
86-
INPUT_TAU: ${{ env.TAU }}
87-
INPUT_CBF: ${{ env.CORE_BUDGET_FRACTION }}
88-
INPUT_TIMEOUT: ${{ env.TIMEOUT_PER_INSTANCE }}
89-
INPUT_MANIFESTS_SUBDIR: ${{ env.MANIFESTS_SUBDIR }}
82+
MANIFESTS_DIR: benchmarks/manifests/v1
83+
INPUT_TAU: '0.12'
84+
INPUT_CBF: '0.5'
85+
INPUT_TIMEOUT: '600'
86+
INPUT_MANIFESTS_SUBDIR: v1
9087
steps:
9188
- uses: actions/checkout@v4
9289

@@ -324,14 +321,14 @@ jobs:
324321
- name: Commit raw artifacts to results branch
325322
env:
326323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
327-
BR: ${{ env.RESULTS_BRANCH }}
324+
BR: bench-results/sweep
328325
REPO: ${{ github.repository }}
329326
SWEEP_ID: ${{ needs.prep.outputs.sweep_id }}
330327
TS: ${{ needs.prep.outputs.ts }}
331-
INPUT_TAU: ${{ env.TAU }}
332-
INPUT_CBF: ${{ env.CORE_BUDGET_FRACTION }}
333-
INPUT_TIMEOUT: ${{ env.TIMEOUT_PER_INSTANCE }}
334-
INPUT_MANIFESTS_SUBDIR: ${{ env.MANIFESTS_SUBDIR }}
328+
INPUT_TAU: '0.12'
329+
INPUT_CBF: '0.5'
330+
INPUT_TIMEOUT: '600'
331+
INPUT_MANIFESTS_SUBDIR: v1
335332
run: |
336333
git config user.name 'github-actions[bot]'
337334
git config user.email 'github-actions[bot]@users.noreply.github.com'

scripts/build_bench_image.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ docker buildx inspect --bootstrap >/dev/null
3434

3535
CACHE_FROM_ARGS=()
3636
CACHE_TO_ARGS=()
37-
if [ -n "$CACHE_REF" ]; then
37+
if [[ -n "$CACHE_REF" ]]; then
3838
CACHE_FROM_ARGS+=(--cache-from "type=registry,ref=$CACHE_REF")
3939
CACHE_TO_ARGS+=(--cache-to "type=registry,ref=$CACHE_REF,mode=max,image-manifest=true,oci-mediatypes=true")
4040
fi
4141

4242
OUTPUT_ARGS=()
43-
if [ "$PUSH" = "1" ]; then
43+
if [[ "$PUSH" == "1" ]]; then
4444
OUTPUT_ARGS+=(--push)
45-
elif [ "$(echo "$PLATFORMS" | tr ',' '\n' | wc -l)" = "1" ]; then
45+
elif [[ "$(echo "$PLATFORMS" | tr ',' '\n' | wc -l)" == "1" ]]; then
4646
# Single platform — load to local docker daemon
4747
OUTPUT_ARGS+=(--load)
4848
else

sonar-project.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
sonar.projectKey=nikolay-e_TreeMapper
22
sonar.organization=nikolay-e
33

4+
# Garbage fixtures: intentionally noisy "fake real code" used as negative-test
5+
# distractors. Unused params, dead code, etc. are by design.
6+
sonar.exclusions=diffctx/tests/fixtures/garbage/**
7+
48
# Suppress S5332 (HTTP instead of HTTPS) for XML namespace URIs in GraphML output and tests.
59
# These are W3C/GraphML spec namespace identifiers, not network requests.
610
sonar.issue.ignore.multicriteria=e1,e2

0 commit comments

Comments
 (0)