Skip to content

[DX-3769] Adds a fix-flaky-go-test agent skill#22010

Open
kalverra wants to merge 1 commit intodevelopfrom
fixFlakyTestsSkill
Open

[DX-3769] Adds a fix-flaky-go-test agent skill#22010
kalverra wants to merge 1 commit intodevelopfrom
fixFlakyTestsSkill

Conversation

@kalverra
Copy link
Copy Markdown
Collaborator

Based on the general fix-flaky-go-test skill, but modified to fit /chainlink specifically.

@kalverra kalverra requested a review from a team as a code owner April 14, 2026 16:17
Copilot AI review requested due to automatic review settings April 14, 2026 16:17
@kalverra kalverra requested a review from a team as a code owner April 14, 2026 16:17
@github-actions
Copy link
Copy Markdown
Contributor

👋 kalverra, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@kalverra kalverra changed the title Adds a fix-flaky-go-test agent skill [DX-3769] Adds a fix-flaky-go-test agent skill Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Risk Rating: LOW — documentation-only change, but it directly guides automated workflows so correctness matters.

Adds a Chainlink-specific fix-flaky-go-test agent skill with repo-specific reproduction and fixing guidance for intermittent Go test failures.

Changes:

  • Introduces a new .agents/skills/fix-flaky-go-test/SKILL.md describing setup, reproduction steps, common root causes, and fix patterns.
  • Aligns the guidance with Chainlink CI tooling (tools/bin/*) and database setup (.dbenv, make testdb).
  • Documents optional CI parity knobs (e.g., GODEBUG=goindex=0) and race/stress testing workflows.

Comment on lines +38 to +41
Append --tags integration to every go test below if the file has //go:build integration.
deployment/ CCIP: use tools/bin/go_core_ccip_deployment_tests pattern (cd deployment, CL_RESERVE_PORTS=128).
Optional CI parity: GODEBUG=goindex=0 on go test (see ci-core.yml).
If the file uses //go:build dev or trace, add matching --tags when reproducing.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

go test uses the -tags flag (e.g., -tags=integration), not --tags. As written, --tags integration will be rejected by go test and would break the reproduction instructions (and any agent automation relying on them).

Suggested change
Append --tags integration to every go test below if the file has //go:build integration.
deployment/ CCIP: use tools/bin/go_core_ccip_deployment_tests pattern (cd deployment, CL_RESERVE_PORTS=128).
Optional CI parity: GODEBUG=goindex=0 on go test (see ci-core.yml).
If the file uses //go:build dev or trace, add matching --tags when reproducing.
Append -tags integration to every go test below if the file has //go:build integration.
deployment/ CCIP: use tools/bin/go_core_ccip_deployment_tests pattern (cd deployment, CL_RESERVE_PORTS=128).
Optional CI parity: GODEBUG=goindex=0 on go test (see ci-core.yml).
If the file uses //go:build dev or trace, add matching -tags when reproducing.

Copilot uses AI. Check for mistakes.
Comment on lines +92 to +94
<verify>
Write the exact repro go test line including -run and --tags integration when relevant.
Race: GORACE log_path, go test -race -shuffle on, confirm no race.* or document skip.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

This section again references --tags integration, but go test expects -tags (e.g., -tags=integration). Please update the example wording so users copy/pasting the repro line don’t get an "unknown flag: --tags" error.

Copilot uses AI. Check for mistakes.
@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Apr 14, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@cl-sonarqube-production
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

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