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

add gha test.yml file #140

Merged
merged 8 commits into from
Mar 5, 2024
Merged

add gha test.yml file #140

merged 8 commits into from
Mar 5, 2024

Conversation

Xiangs18
Copy link
Collaborator

@Xiangs18 Xiangs18 commented Mar 2, 2024

No description provided.

Copy link

codecov bot commented Mar 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.49%. Comparing base (848cd2e) to head (4e261f7).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #140      +/-   ##
===========================================
- Coverage    91.13%   90.49%   -0.65%     
===========================================
  Files           14       14              
  Lines         1422     1998     +576     
===========================================
+ Hits          1296     1808     +512     
- Misses          93      157      +64     
  Partials        33       33              

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

@Xiangs18 Xiangs18 requested review from MrCreosote and bio-boris March 2, 2024 02:19
Copy link
Member

@MrCreosote MrCreosote left a comment

Choose a reason for hiding this comment

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

Looks pretty good

.github/workflows/test.yml Show resolved Hide resolved
.github/workflows/test.yml Show resolved Hide resolved
Comment on lines +24 to +35
- go: '1.12'
mongo: 'mongodb-linux-x86_64-3.6.12'
minio: '2019-05-23T00-29-34Z'
wired_tiger: 'false'
- go: '1.12'
mongo: 'mongodb-linux-x86_64-3.6.20'
minio: '2019-05-23T00-29-34Z'
wired_tiger: 'false'
- go: '1.12'
mongo: 'mongodb-linux-x86_64-3.6.20'
minio: '2019-05-23T00-29-34Z'
wired_tiger: 'true'
Copy link
Member

Choose a reason for hiding this comment

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

When you update with mongo 7 you can probably get rid of the 3.6.20 wired_tiger: false matrix entry

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will do. Also why we test 2 different v3 here?

Copy link
Member

Choose a reason for hiding this comment

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

At the time, v12 was in production (I think? Might be v13, but pretty close anyway) and v20 was the latest 3.6 release

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

Copy link
Member

Choose a reason for hiding this comment

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

Looks like Codecov or the coverage calculator changed how they count lines in missed branches

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What has changed?

Copy link
Member

Choose a reason for hiding this comment

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

Check out the codecov report, you'll see what I mean. More lines are counted as missed but the actual code is the same

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

.github/workflows/test.yml Outdated Show resolved Hide resolved
go.sum Show resolved Hide resolved
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

export TCFG=`pwd`/test.cfg
BLOBSTORE_TEST_CFG=$TCFG go test -race -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
Copy link
Contributor

Choose a reason for hiding this comment

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

@Xiangs18 This is where you activated codecov

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, my question is more like:
codecov/project and codecov/patch checks just come out of box when I activated codecov?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, I don't know

Copy link
Member

@MrCreosote MrCreosote Mar 5, 2024

Choose a reason for hiding this comment

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

They do, once you send the coverage file to codecov it does the rest (at least in the kbase org - there might be other setup needed for other orgs)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍

Copy link
Member

@MrCreosote MrCreosote left a comment

Choose a reason for hiding this comment

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

LGTM

@Xiangs18 Xiangs18 merged commit 077b92c into develop Mar 5, 2024
12 of 13 checks passed
@Xiangs18 Xiangs18 deleted the dev-gha_test branch March 5, 2024 02:55
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