Skip to content

fix(#1697): add force-override logging and regression tests#1698

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1697-force-flag-regression
Open

fix(#1697): add force-override logging and regression tests#1698
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/1697-force-flag-regression

Conversation

@fullsend-ai-coder
Copy link
Copy Markdown

Add diagnostic logging when pre-code.sh evaluates the --force override so COMMENT_BODY value is visible in workflow run logs, making future debugging straightforward.

Rename the COMMENT_BODY variable used to build the skip comment (line 104) to SKIP_COMMENT to eliminate the name collision with the input COMMENT_BODY env var. While this didn't cause the reported regression (the force check runs before the reassignment), the shadowing is a latent bug if code is reordered.

Add four regression tests to pre-code-test.sh:

  • force-comment-body-no-pr-search: verifies COMMENT_BODY with
    --force exits before PR search
  • force-code-force-no-pr-search: verifies CODE_FORCE=true exits
    before PR search
  • force-check-logs-comment-body: verifies the new diagnostic
    log line appears in output
  • no-force-reaches-pr-search: verifies without --force the PR
    search IS reached (no false bypass)

Note: pre-commit could not run (Go toolchain download permission denied in sandbox). All 17 pre-code-test.sh tests pass.


Closes #1697

Post-script verification

  • Branch is not main/master (agent/1697-force-flag-regression)
  • Secret scan passed (gitleaks — c9f4660fdf0e2639f42eb3aae7bfa0a8c114b4ee..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Add diagnostic logging when pre-code.sh evaluates the --force
override so COMMENT_BODY value is visible in workflow run logs,
making future debugging straightforward.

Rename the COMMENT_BODY variable used to build the skip comment
(line 104) to SKIP_COMMENT to eliminate the name collision with
the input COMMENT_BODY env var. While this didn't cause the
reported regression (the force check runs before the
reassignment), the shadowing is a latent bug if code is
reordered.

Add four regression tests to pre-code-test.sh:
- force-comment-body-no-pr-search: verifies COMMENT_BODY with
  --force exits before PR search
- force-code-force-no-pr-search: verifies CODE_FORCE=true exits
  before PR search
- force-check-logs-comment-body: verifies the new diagnostic
  log line appears in output
- no-force-reaches-pr-search: verifies without --force the PR
  search IS reached (no false bypass)

Note: pre-commit could not run (Go toolchain download permission
denied in sandbox). All 17 pre-code-test.sh tests pass.

Closes #1697

Signed-off-by: fullsend-code <fullsend-code@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Site preview

Preview: https://3934aea3-site.fullsend-ai.workers.dev

Commit: cc238d1e50529b5379a2ed8da52ce1fc3f474414

@fullsend-ai-review
Copy link
Copy Markdown

Review

No findings.

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify --force flag fix deployed and add regression test

0 participants