Skip to content

[DX-2283] Adds branch-out uploading and flaky test protection#1823

Open
kalverra wants to merge 11 commits intomainfrom
branch-out
Open

[DX-2283] Adds branch-out uploading and flaky test protection#1823
kalverra wants to merge 11 commits intomainfrom
branch-out

Conversation

@kalverra
Copy link

@kalverra kalverra commented Feb 5, 2026

Uses branch-out to catch, track, and skip flaky tests in CI.

What it Does

Every test result is uploaded to Trunk.io, which tracks test stability over time. It can then classify tests as flaky or broken and place them into quarantine. While a test is in quarantine, it will still run in CI, but its failures won't fail your whole CI! When a test is marked as flaky or broken, a Jira ticket will be created to investigate and fix the flakiness. When the fix is in, and Trunk has determined the test is no longer flaky, it will remove the test from quarantine.

@kalverra kalverra requested a review from a team as a code owner February 5, 2026 20:37
Copilot AI review requested due to automatic review settings February 5, 2026 20:37
@github-actions
Copy link

github-actions bot commented Feb 5, 2026

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

Copy link
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

This PR integrates the branch-out tool into CI workflows to detect and skip flaky tests while uploading test results to Trunk for analysis.

Changes:

  • Replaces direct go test commands with the branch-out-upload GitHub action
  • Updates artifact naming from "go-test-results" to "go-test-coverage" to better reflect content
  • Removes unnecessary blank lines for cleaner workflow formatting

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/pkg.yml Integrates branch-out action for unit tests and renames coverage artifact
.github/workflows/keystore.yml Integrates branch-out action for unit tests and removes trailing blank line

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Feb 5, 2026

✅ API Diff Results - No breaking changes


📄 View full apidiff report

@kalverra kalverra marked this pull request as draft February 6, 2026 16:44
@kalverra kalverra marked this pull request as draft February 6, 2026 16:44
run: gotestsum --junitfile test-results.xml -- ./... -coverpkg=./... -coverprofile=coverage.txt

- name: Analyze and upload test results
uses: smartcontractkit/.github/actions/branch-out-upload@branch-out-upload/v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'PKG Build and Test' step
Uses Step
uses 'smartcontractkit/.github/actions/branch-out-upload' with ref 'branch-out-upload/v1', not a pinned commit hash
run: gotestsum --junitfile test-results.xml -- ./...

- name: Analyze and upload test results
uses: smartcontractkit/.github/actions/branch-out-upload@branch-out-upload/v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Keystore Checks' step
Uses Step
uses 'smartcontractkit/.github/actions/branch-out-upload' with ref 'branch-out-upload/v1', not a pinned commit hash
@kalverra kalverra marked this pull request as ready for review February 13, 2026 19:26
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

Comments