Skip to content

fix(harness): isolar HARNESS_HEAD_REF no teste do modo review - #14

Merged
argentinaluiz merged 1 commit into
mainfrom
bugfix/teste-review-head-ref
Oct 16, 2026
Merged

argentinaluiz merged 1 commit into
mainfrom
bugfix/teste-review-head-ref

Conversation

@argentinaluiz

Copy link
Copy Markdown
Contributor

O que muda

Uma linha em scripts/test/verify-review.test.sh: a função review() passa a rodar o verify.sh com -u HARNESS_HEAD_REF.

Na CI de pull request, o workflow exporta HARNESS_HEAD_REF com o SHA da branch. O teste herdava a variável no repositório temporário dele, que não tem esse commit, e 20 casos do modo review falhavam em todo PR (foi o que reprovou o Veredito do #12 e do #13). Em push na main a variável fica vazia, e por isso a main passava.

Aviso do harness

Este PR altera scripts/, então o check Guarda do harness o reprova e ele só entra por override do usuário.

Aceite

nenhum: mudança no harness, sem mudança de comportamento do produto.

🤖 Generated with Claude Code

On a pull request the CI exports HARNESS_HEAD_REF with the branch SHA, and the
review test inherited it into its temporary repository, which has no such
commit, so 20 cases failed on every PR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 15, 2026 22:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved issues were identified.

0 open findings

What changed in this PR

Updates the review-mode harness test to prevent CI’s HARNESS_HEAD_REF from affecting temporary repositories.

Changes:

  • Unsets HARNESS_HEAD_REF when invoking verify.sh review.
File Description
scripts/​test/​verify-review.test.sh Isolates review-mode tests from inherited CI state.

🧠 Review effort: Lite


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@argentinaluiz
argentinaluiz merged commit 05b2cbf into main Oct 16, 2026
2 of 3 checks passed
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