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

Gio/test ats update #13

Closed
wants to merge 3 commits into from
Closed

Gio/test ats update #13

wants to merge 3 commits into from

Conversation

giovanni-guidini
Copy link
Owner

Testing that the correct BASE is picked

Mostly these changes alter the codecov_ats workflow to generate 2 outputs:
* ATS_TESTS_TO_RUN - list of tests (and options to pytest) that codecov thinks you should run
* ATS_TESTS_TO_SKIP - list of tests (and options to pytest) that codecov thinks you should skip

There are some config changes to `codecov.yml`:
* The yaml validator was accusing coverage.status.project and coverage.status.patch to be invalid because of the "default" key.
* Adding a "smart-tests" flag that would be used with ATS (if the tests are run)

Another notable change is the `fetch-depth` when checking out the code from 0 to 2.
I changed the BASE_COMMIT to be the parent commit, so 2 should suffice.
From https://github.com/orgs/community/discussions/46992#discussioncomment-4961541

This should allow us to populate the appropriate env vars even if the label-analysis step fails.
Which is not the case currently (see https://github.com/giovanni-guidini/sentry/actions/runs/6409333248/job/17400305852)
@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (22c3b9b) 83.62% compared to head (1593bdf) 83.34%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #13       +/-   ##
===========================================
- Coverage   83.62%   83.34%    -0.29%     
===========================================
  Files        2605     4379     +1774     
  Lines      153895   320952   +167057     
  Branches    26798    35537     +8739     
===========================================
+ Hits       128702   267509   +138807     
- Misses      19953    47605    +27652     
- Partials     5240     5838      +598     
Flag Coverage Δ
backend 83.25% <100.00%> (-0.21%) ⬇️

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

Files Coverage Δ
src/sentry/api/helpers/mobile.py 100.00% <100.00%> (ø)

... and 1778 files with indirect coverage changes

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

@giovanni-guidini giovanni-guidini deleted the gio/test-ats-update branch October 23, 2023 20:15
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.

1 participant