codecov-api
codecov-api copied to clipboard
[API] Setup auto IP address fetching for Sentry SDK
Follow up from https://github.com/codecov/gazebo/pull/2945
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
:white_check_mark: All tests successful. No failed tests found.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| codecov/settings_base.py | 0.00% | 1 Missing :warning: |
:loudspeaker: Thoughts on this report? Let us know!
:x: 1 Tests Failed:
| Tests completed | Failed | Passed | Skipped |
|---|---|---|---|
| 2654 | 1 | 2653 | 6 |
View the top 1 failed tests by shortest run time
api/internal/tests/test_charts.py::TestChartQueryRunnerQuery::test_query_aggregates_multiple_repository_totalsStack Traces | 0.073s run time
self = <tests.test_charts.TestChartQueryRunnerQuery testMethod=test_query_aggregates_multiple_repository_totals> @override_settings(GITHUB_CLIENT_ID="3d44be0e772666136a13") def test_query_aggregates_multiple_repository_totals(self): query_runner = ChartQueryRunner( user=self.user, request_params={ "owner_username": self.org.username, "service": self.org.service, "end_date": str(timezone.now()), "grouping_unit": "day", }, ) results = query_runner.run_query() assert len(results) == 1 > assert results[0]["total_hits"] == 114 E AssertionError: assert Decimal('14') == 114 .../internal/tests/test_charts.py:564: AssertionError
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.
:x: Failed Test Results:
Completed 2660 tests with 1 failed, 2653 passed and 6 skipped.
View the full list of failed tests
pytest
- Class name: api.internal.tests.test_charts.TestChartQueryRunnerQuery
Test name: test_query_aggregates_multiple_repository_totals
self = <tests.test_charts.TestChartQueryRunnerQuery testMethod=test_query_aggregates_multiple_repository_totals>
@override_settings(GITHUB_CLIENT_ID="3d44be0e772666136a13")
def test_query_aggregates_multiple_repository_totals(self):
query_runner = ChartQueryRunner(
user=self.user,
request_params={
"owner_username": self.org.username,
"service": self.org.service,
"end_date": str(timezone.now()),
"grouping_unit": "day",
},
)
results = query_runner.run_query()
assert len(results) == 1
> assert results[0]["total_hits"] == 114
E AssertionError: assert Decimal('14') == 114
.../internal/tests/test_charts.py:564: AssertionError
Codecov Report
Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
Project coverage is 96.36%. Comparing base (
ffcc446) to head (b71c788).
Changes have been made to critical files, which contain lines commonly executed in production. Learn more
:white_check_mark: All tests successful. No failed tests found.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| codecov/settings_base.py | 0.00% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #618 +/- ##
==========================================
+ Coverage 96.25% 96.36% +0.10%
==========================================
Files 826 826
Lines 19048 20087 +1039
==========================================
+ Hits 18334 19356 +1022
- Misses 714 731 +17
| Flag | Coverage Δ | |
|---|---|---|
| unit | 92.50% <0.00%> (-0.01%) |
:arrow_down: |
| unit-latest-uploader | 92.50% <0.00%> (-0.01%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.