Skip to content

Conversation

giortzisg
Copy link
Contributor

@giortzisg giortzisg commented Aug 14, 2025

Closes #1070.
When the pipeline was running the tests with the -race check, also the normal tests were run. This PR refactors the pipeline to:

  • Run the tests with both -race and -coverage flags on all os matrixes (except for PRs).
  • Run the race tests for PRs only on ubuntu+go1.23

Also bumping the min supported go version to 1.22. It was supposed to be bumped with the previous CI update.

@giortzisg giortzisg requested a review from cleptric August 14, 2025 12:13
@giortzisg giortzisg self-assigned this Aug 14, 2025
Copy link

codecov bot commented Aug 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.82%. Comparing base (e6bbe0f) to head (bbf383b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1072      +/-   ##
==========================================
+ Coverage   86.79%   86.82%   +0.02%     
==========================================
  Files          55       56       +1     
  Lines        5962     5964       +2     
==========================================
+ Hits         5175     5178       +3     
  Misses        643      643              
+ Partials      144      143       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

# pull requests, only run this step for a single job in the matrix. For
# all other workflow triggers (e.g., pushes to a release branch) run
# this step for the whole matrix.
RUN_RACE_TESTS: ${{ github.event_name != 'pull_request' || (matrix.go == '1.23' && matrix.os == 'ubuntu') }}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
RUN_RACE_TESTS: ${{ github.event_name != 'pull_request' || (matrix.go == '1.23' && matrix.os == 'ubuntu') }}
RUN_RACE_TESTS: ${{ github.event_name != 'pull_request' || (matrix.go == '1.24' && matrix.os == 'ubuntu') }}

timeout-minutes: 15
strategy:
matrix:
go: ["1.24", "1.23", "1.22"]
os: [ubuntu, windows, macos]
fail-fast: false
fail-fast: false
Copy link
Member

Choose a reason for hiding this comment

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

Missing new line

Comment on lines -47 to -48
- name: Check go.mod Tidiness
run: make mod-tidy
Copy link
Member

Choose a reason for hiding this comment

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

Why was this removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The step was running only on go1.21 (so not at all). I suppose it was setup like this to save CI time?

Copy link
Member

Choose a reason for hiding this comment

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

No, this is required to make sure that our lowest supported Go version actually works 😅

cursor[bot]

This comment was marked as outdated.

@giortzisg giortzisg merged commit 6013529 into master Aug 25, 2025
18 checks passed
@giortzisg giortzisg deleted the ci-tests branch August 25, 2025 10:56
giortzisg added a commit that referenced this pull request Aug 26, 2025
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.

Test workflow runs the tests twice
2 participants