Skip to content

fix(benchmark): repair the Harbor adapter's version parsing, credential forwarding and fixture protocol - #207

Merged
lg2m merged 6 commits into
mainfrom
fix/eng-815-harbor-tests
Sep 28, 2026
Merged

lg2m merged 6 commits into
mainfrom
fix/eng-815-harbor-tests

Conversation

@lg2m

@lg2m lg2m commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Stack #209, 1 of 3: #207 (this) → #208 → #189. Merge in order.

What changes for users

Nothing in qq. This is the Harbor (Terminal-Bench) adapter under benchmarks/harbor/, pure Python:

  • parse_version returned the last whitespace field, so qq 0.1.4 (abc 2026-09-25) (every build since the revision suffix landed) reported version 2026-09-25). It now matches the semver plus an optional (rev date) group and returns "" for anything else, never guessing.
  • TYPESAFE_API_KEY is forwarded into the container with the other credentials, so a Jev-enabled configuration works under Harbor.
  • The fixture generator reads PROTOCOL_VERSION from crates/qq-protocol/src/lib.rs instead of hardcoding it; the test reuses that reader. Fixtures stay at protocol 30 unchanged; a future bump regenerates rather than drifts.

Why

main's adapter tests are red today (6 failures, 4 errors in test_atif) because the fixtures hardcoded protocol 23. This extracts the Python-only repairs from the ENG-791 stack (#187 / #189) — commits kept verbatim with -x where correct — with none of that stack's protocol, schema, or Jev changes.

How verified

PYTHONPATH=benchmarks/harbor uv run --with 'harbor==0.20.0' --no-project \
  python -m unittest benchmarks.harbor.tests.test_atif benchmarks.harbor.tests.test_agent
# Ran 20 tests — OK (main: FAILED)
cargo test --test harbor_atif_fixtures            # ok
cargo run -q -- --version                         # qq 0.1.4 (e4fef41-dirty 2026-09-28) → "0.1.4"

No Rust source change; docs/plans/progress/terminal-bench.md gains one ledger entry.

Linear: ENG-815. Supersedes the Harbor commits in #187 / #189.

ENG-815: preserve legacy plain versions and reject unexpected output.
(cherry picked from commit 5eed43f)
The generator hardcoded the number and the test then compared it to the
Rust source, so a protocol bump left the fixtures red until someone edited
both. The generator now reads qq_protocol::PROTOCOL_VERSION itself and the
test reuses that reader; fixtures stay at 30 unchanged. Also records the
repair in the terminal-bench ledger.

Linear: ENG-815
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-28T18:23:45.660627Z 61b15eb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lg2m
lg2m added this pull request to stack #209 September 28, 2026 18:54
@lg2m
lg2m merged commit c618e0c into main Sep 28, 2026
4 checks passed
@lg2m
lg2m deleted the fix/eng-815-harbor-tests branch September 28, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants