Skip to content

[DX-4426] Fix Flaky TestScripts#22838

Merged
kalverra merged 6 commits into
developfrom
testScriptsStable
Jun 15, 2026
Merged

[DX-4426] Fix Flaky TestScripts#22838
kalverra merged 6 commits into
developfrom
testScriptsStable

Conversation

@kalverra

@kalverra kalverra commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

TestScripts is one of the most flaky areas in /chainlink. I ran the fix-flaky-tests skill on it with opus 4.8. It cost ~$2.00 and took ~30 minutes (excluding time to run the tests over and over to verify fixes).

Changes

  • Potentially Breaking!!: StartUpHealthReport now returns 503 errors for non /health paths instead of the old 404 error. This is more in line with what most clients expect for this sort of situation. curl --retry is used in TestScripts to keep calling these endpoints until they're ready, but it will not retry if it gets a 404.
  • Added tests for tools/txtar/visitor.go and updated it with some more modern Go patterns, should help performance a teeny-tiny bit.

Results

# Before
❯ make test ARGS="diagnose --iterations 100 -- -run TestScripts ."
   Estimated flake rate = 1.6% - 4.2%

# After
❯ make test ARGS="diagnose --iterations 600 -- -run TestScripts ."
   Estimated flake rate = 0% - 0.6%

@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!

@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

Comment thread tools/txtar/visitor.go
Comment thread tools/txtar/visitor_test.go Outdated
@trunk-io

trunk-io Bot commented Jun 12, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Comment thread main_test.go Outdated
Comment thread main_test.go Outdated
@kalverra kalverra enabled auto-merge June 14, 2026 15:36
@kalverra kalverra requested a review from jmank88 June 14, 2026 15:37
@kalverra kalverra changed the title Fix Flaky TestScripts [DX-4426] Fix Flaky TestScripts Jun 15, 2026
@kalverra kalverra requested review from a team as code owners June 15, 2026 17:27
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

CORA - Analysis Skipped

Reason: The number of code owners (2) is less than the minimum required (5) and/or the number of CODEOWNERS entries with changed files (1) is less than the minimum required (2).

@kalverra kalverra force-pushed the testScriptsStable branch from 816955f to 11d296d Compare June 15, 2026 18:40
@cl-sonarqube-production

Copy link
Copy Markdown

@kalverra kalverra added this pull request to the merge queue Jun 15, 2026
Merged via the queue into develop with commit 4fa071b Jun 15, 2026
220 checks passed
@kalverra kalverra deleted the testScriptsStable branch June 15, 2026 19:41
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.

3 participants