Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add mac test runner #2035

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

AndrewSisley
Copy link
Contributor

@AndrewSisley AndrewSisley commented Nov 10, 2023

Relevant issue(s)

Resolves #2034

Description

Adds a mac (latest) test run to our test matrix.

This only use the lightest of configurations we have, I think this will catch any/99% issues that we would otherwise miss.

Windows has been broken out to a different ticket, as quite a lot of tests fail on windows and it will take more effort to get working: #2033

@AndrewSisley AndrewSisley added area/testing Related to any test or testing suite ci/build This is issue is about the build or CI system, and the administration of it. action/no-benchmark Skips the action that runs the benchmark. labels Nov 10, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.8 milestone Nov 10, 2023
@AndrewSisley AndrewSisley self-assigned this Nov 10, 2023
@AndrewSisley AndrewSisley changed the title ci: Add mac test runner ci: Add mac test runner Nov 10, 2023
@AndrewSisley AndrewSisley marked this pull request as ready for review November 10, 2023 23:13
@AndrewSisley AndrewSisley requested a review from a team November 10, 2023 23:13
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9ff01cd) 73.85% compared to head (64a3700) 73.86%.
Report is 1 commits behind head on develop.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2035      +/-   ##
===========================================
+ Coverage    73.85%   73.86%   +0.01%     
===========================================
  Files          248      248              
  Lines        24801    24801              
===========================================
+ Hits         18315    18318       +3     
+ Misses        5224     5222       -2     
+ Partials      1262     1261       -1     
Flag Coverage Δ
all-tests 73.86% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c490de...64a3700. Read the comment docs.

Copy link
Member

@shahzadlone shahzadlone left a comment

Choose a reason for hiding this comment

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

thought: Perhaps an additional check on line 83, where coverage reports are uploaded within step.name: Upload coverage artifact and line 75 within step.name: Run integration tests so that we don't generate and don't upload code coverage reports for the same type of test twice (as a ubuntu variant will already have had been uploaded by other run), and skip it for macos and windows like we do for change detection? Then you would need to update the steps.name: Run change detector tests condition (line 79) to allow macos test.

If you do the above, would suggest renaming the following step names:

  1. Rename "Run integration tests" -> "Run tests with coverage"
  2. Rename "Run change detector tests" -> "Run tests without coverage"

Other than that rest LGTM! now all we need to do is update these 19 required matrix jobs lol with 20 new ones haha:

image

@shahzadlone
Copy link
Member

@AndrewSisley

Once ready to merge, LMK I can remove the previous required checks.

@@ -27,19 +27,26 @@ jobs:
run-tests:
name: Run tests matrix job

runs-on: ubuntu-latest

strategy:
matrix:
Copy link
Member

Choose a reason for hiding this comment

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

thought(out of scope): While you are at it, perhaps an explicit fail-fast: true (which is the default behavior at the moment). To have it stay consistent incase GitHub decides to change the default in the future.

@AndrewSisley
Copy link
Contributor Author

@shahzadlone

Perhaps an additional check on line 83 (not uploading code-cov)

I do disagree with this, and I do want mac/windows to contribute to the code cov upload. They may test OS specific lines, and the cost to including them should be tiny. If the windows run turns out to be significantly slower and the primary bottleneck we can revisit, but even then I would be hesitant to support excluding it.

@shahzadlone
Copy link
Member

I do disagree with this, and I do want mac/windows to contribute to the code cov upload. They may test OS specific lines, and the cost to including them should be tiny. If the windows run turns out to be significantly slower and the primary bottleneck we can revisit, but even then I would be hesitant to support excluding it.

I can vibe with that.

@shahzadlone shahzadlone merged commit 988b178 into sourcenetwork:develop Nov 13, 2023
30 checks passed
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
## Relevant issue(s)

Resolves sourcenetwork#2034

## Description

Adds a mac (latest) test run to our test matrix.

This only use the lightest of configurations we have, I think this will
catch any/99% issues that we would otherwise miss.

Windows has been broken out to a different ticket, as quite a lot of
tests fail on windows and it will take more effort to get working:
sourcenetwork#2033
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/testing Related to any test or testing suite ci/build This is issue is about the build or CI system, and the administration of it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mac test runner
2 participants