benchi: run-aws.sh harness guard diffs the whole repo, not the rsynced benchi tree

Open Beginner friendly
#3,445 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
bash, git, go
Domain
cli, testing

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ConduitIO/conduit

All issues in ConduitIO/conduit

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.