Skip to content

CLI-1727 Remove Git setup from malformed-input hook tests - #1414

Merged
nquinquenel merged 1 commit into
masterfrom
test/nquinquenel/CLI-1727-removeHookFixtureGit
Nov 27, 2026
Merged

nquinquenel merged 1 commit into
masterfrom
test/nquinquenel/CLI-1727-removeHookFixtureGit

Conversation

@sonar-fabrik

@sonar-fabrik sonar-fabrik Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

CLI-1727 https://sonarsource.atlassian.net/browse/CLI-1727

Human description

The OpenCode and Pi malformed-input hook tests could time out during Git setup before reaching their assertions. These two cases now use fresh harnesses without Git initialization. Their input and assertions stay unchanged. Tests that need repository state keep their existing fixtures.

Agent description

Approach: move each malformed JSON case to a sibling setup scope with harness creation and disposal. No production behavior or other agent fixtures change. The selected cases match the ticket's stdin and output requirements. The reviewer should confirm this scope.

Acceptance coverage: both complete affected suites passed on Linux: 33 tests and 117 assertions. Inspection confirms that neither lightweight scope calls fixture Git helpers. The original stdin, exit-code, parsed-output assertions and timeouts are unchanged. Windows and full compatibility coverage remain with CI.

Validation: typecheck and repository lint passed. Lint reported six warnings in untouched source. Formatting and changed-file ESLint passed. Secrets scan found no secrets in the changed files.

Vortex: context and agentic entitlement enabled; project SonarSource_sonarqube-cli is bound. Vortex supplied testing and async guidelines; the change keeps deterministic harness isolation and teardown. DEEP analysis of both changed files found no issues.

Dependency scan: 15 risks in unchanged dependencies and test fixtures, including three HIGH risks in the vulnerable npm test fixture. Dependency remediation is outside this test-only scope.

Validation gaps: Windows execution cannot run in this Linux workspace; the current-head CI result must establish Windows coverage before validation is recorded. Full compatibility suites are left to CI.

Repository guidance warning: the repository has no ADR directory. A separate reviewed change can add the missing skeletons. This change needs no decision record.

Attachments used: none.

Opened as a draft by the autonomous Fabrik. Readiness requires all mechanical gates. Human approval and merge are still required.

Independent review: clean, round 1, gpt-6.1-sol, zero blocking findings. The reviewer independently passed all 33 focused tests. Windows remains pending. Agentic analysis ran clean on the host; the isolated reviewer had no agentic capability.

Usage: gpt-6.1-sol 3,707,443 processed tokens across run sessions, including 562,955 review tokens; this is not billing.


🤖 Co-authored by Fabrik and @nquinquenel

Co-Authored-By: Nicolas QUINQUENEL <14952624+nquinquenel@users.noreply.github.com>
@netlify

netlify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sonarqube-cli canceled.

Name Link
🔨 Latest commit 943734b
🔍 Latest deploy log https://app.netlify.com/projects/sonarqube-cli/deploys/6b09428f63439db3a4110945

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

CLI-1727

@gitar-bot

gitar-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

Moving two unchanged malformed-input assertions into fresh test harnesses avoids Git initialization; production behavior and other fixtures remain unchanged.

Removes Git repository setup from the OpenCode and Pi malformed-input hook tests, using fresh harnesses without Git initialization so the tests reach their assertions without timing out. Stdin input and assertions are unchanged. No issues found.

Verification Rules 3/3 met PRs 2 inspected

Functional validation No results

Rules 3 passed 2 not applicable

✅ Internal artifact registries
✅ Release secrets usage
✅ Repository license compliance

Broader impact PRs 2 inspected
Cross-PR 2 PRs inspected 0 open impacts

PR 1263: CLI-1540 Support stderr confirmation prompts and quiet-console spinners Inspected
PR 1349: CLI-1659 Configure all detected coding agents with one command Inspected

Auto-approval Approved

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@gitar-bot gitar-bot Bot 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.

Gitar has auto-approved this PR (configure)

@gitar-bot gitar-bot Bot added the gitar-approved Added by Gitar label Nov 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@nquinquenel
nquinquenel marked this pull request as ready for review November 27, 2026 09:18
@nquinquenel
nquinquenel requested a review from a team as a code owner November 27, 2026 09:18
@nquinquenel
nquinquenel requested a review from Krosovok November 27, 2026 09:18
@nquinquenel
nquinquenel merged commit b63c462 into master Nov 27, 2026
34 checks passed
@nquinquenel
nquinquenel deleted the test/nquinquenel/CLI-1727-removeHookFixtureGit branch November 27, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant