benchi: run-aws.sh harness guard diffs the whole repo, not the rsynced benchi tree
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
Research direction
Read benchi/v021-cdc-parity/run-aws.sh and scripts/test-run-aws-forwarding.sh. Trace how the harness guard builds its Git pathspec, then check the forwarding script's existing cases. Done means changes outside benchi/ pass the guard while changes inside the harness tree are still refused.
Written by the indexing model from the issue text.
Description
What is wrong
benchi/v021-cdc-parity/run-aws.sh's harness guard (harness_diff, added after the 2026-11-28 voided classic pass) is meant to refuse a launch when the benchi tree about to be rsynced differs from CONDUIT_REF. It diffs the whole repository instead:
{ git -C ../.. diff --name-only "$CONDUIT_REF" HEAD -- . 2>/dev/null || true
git -C ../.. status --porcelain -- . 2>/dev/null | awk '{print $NF}' || true
} | sed 's|^benchi/v021-cdc-parity/||' ...
git -C ../.. changes to the repo root before the pathspec is resolved, so -- . means the repo root, not benchi/v021-cdc-parity. The sed that strips the benchi prefix shows the intent.
Effect
It fails closed, so nothing unsafe was measured. But it refuses every legitimate comparison that pins an older image from the same harness. For example, it blocked the old-ref arms of pass J (an A/B of ffe972a against 67bc9d64) on pkg/plugin/connector/builtin/*.go, files that are never rsynced, although git diff 67bc9d64 ffe972a -- benchi is empty. The only way through is HARNESS_MISMATCH_OK=1, which records a mismatch in environment.txt for a run whose harness actually matches. That trains operators to set the override, and the override is what protects against the 2026-11-28 failure.
Fix
Use -- benchi/v021-cdc-parity as the pathspec in both commands, or run git without -C ../.., so . resolves to this directory. scripts/test-run-aws-forwarding.sh should add a case: a commit that differs from CONDUIT_REF only outside benchi/ must pass the guard, and one that differs inside it must still be refused.
Related
Pass J (passJ2b-*, passJ3b-*) ran with HARNESS_MISMATCH_OK=1 for this reason. Its environment.txt will say so, and the PR carrying those results will cite this issue.
- Dominant language
- Go
- Stars
- 617
- Forks
- 69
- Avg merge
- 8h 5m
- Merged PRs (30d)
- 122
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ConduitIO/conduit
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
docs(conduit.io): durable state commits, db.allowUnsyncedCommits, and the new store error codesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
All issues in ConduitIO/conduit
Similar issues
-
kind/feature needs-triage priority/unprioritized
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
NVIDIA/k8s-test-infra#1504 ·
Maintainers usually reply within 1 day
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
wso2/agent-manager#2717 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
open-policy-agent/opa#9685 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
aliyun/elastic-compute-control-cli#191 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
VictoriaMetrics/VictoriaMetrics#12094 ·
Maintainers usually reply within 2 days