Open adrian-codecov opened 1 week ago
This PR includes changes to shared
. Please review them here: https://github.com/codecov/shared/compare/88117b96a4b420d88549b8df2649c3eb9c61c2a5...b9e83b2c2f072749bae36c18b80d384b8cc50d94
All modified and coverable lines are covered by tests :white_check_mark:
:white_check_mark: All tests successful. No failed tests found.
:loudspeaker: Thoughts on this report? Let us know!
Tests completed | Failed | Passed | Skipped |
---|---|---|---|
2569 | 2 | 2567 | 6 |
services.tests.test_report.ReportServiceTest test_build_report_from_commit_with_non_carried_forward_flags
Stack Traces | 0.039s run time
> > ``` > self = <services.tests.test_report.ReportServiceTest testMethod=test_build_report_from_commit_with_non_carried_forward_flags> > read_chunks_mock = <MagicMock name='read_chunks' id='139824081004704'> > > @patch("services.archive.ArchiveService.read_chunks") > def test_build_report_from_commit_with_non_carried_forward_flags( > self, read_chunks_mock > ): > f = open(current_file.parent / "samples" / "chunks.txt", "r") > read_chunks_mock.return_value = f.read() > commit = CommitWithReportFactory.create( > message="another test", > commitid="asdfbhasdf89", > ) > commit_report = commit.reports.first() > session = commit_report.sessions.filter(order_number=1).first() > session.upload_type = "carriedforward" > session.upload_extras = { > "carriedforward_from": "56e05fced214c44a37759efa2dfc25a65d8ae98d" > } > session.save() > > report = build_report_from_commit(commit) > res = report.flags["integrations"].report > assert len(res.report._chunks) == 3 > assert len(res.files) == 3 > > file_1, file_2, file_3 = sorted(res.file_reports(), key=lambda x: x.name) > E AttributeError: 'FilteredReport' object has no attribute 'file_reports' > > services/tests/test_report.py:248: AttributeError > ```
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.
Completed 2575 tests with 2 failed
, 2567 passed and 6 skipped.
self = <services.tests.test_report.ReportServiceTest testMethod=test_build_report_from_commit_with_flags>- **Class name:** services.tests.test_report.ReportServiceTest
read_chunks_mock = <MagicMock name='read_chunks' id='139824081424544'>
@patch("services.archive.ArchiveService.read_chunks")
def test_build_report_from_commit_with_flags(self, read_chunks_mock):
f = open(current_file.parent / "samples" / "chunks.txt", "r")
read_chunks_mock.return_value = f.read()
commit = CommitWithReportFactory.create(message="aaaaa", commitid="abf6d4d")
report = build_report_from_commit(commit)
res = report.flags["integrations"].report
assert len(res.report._chunks) == 3
assert len(res.files) == 3
> file_1, file_2, file_3 = sorted(res.file_reports(), key=lambda x: x.name)
E AttributeError: 'FilteredReport' object has no attribute 'file_reports'
services/tests/test_report.py:216: AttributeError
self = <services.tests.test_report.ReportServiceTest testMethod=test_build_report_from_commit_with_non_carried_forward_flags>
read_chunks_mock = <MagicMock name='read_chunks' id='139824081004704'>
@patch("services.archive.ArchiveService.read_chunks")
def test_build_report_from_commit_with_non_carried_forward_flags(
self, read_chunks_mock
):
f = open(current_file.parent / "samples" / "chunks.txt", "r")
read_chunks_mock.return_value = f.read()
commit = CommitWithReportFactory.create(
message="another test",
commitid="asdfbhasdf89",
)
commit_report = commit.reports.first()
session = commit_report.sessions.filter(order_number=1).first()
session.upload_type = "carriedforward"
session.upload_extras = {
"carriedforward_from": "56e05fced214c44a37759efa2dfc25a65d8ae98d"
}
session.save()
report = build_report_from_commit(commit)
res = report.flags["integrations"].report
assert len(res.report._chunks) == 3
assert len(res.files) == 3
> file_1, file_2, file_3 = sorted(res.file_reports(), key=lambda x: x.name)
E AttributeError: 'FilteredReport' object has no attribute 'file_reports'
services/tests/test_report.py:248: AttributeError
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 96.29%. Comparing base (
d5ca070
) to head (73c4af1
).
:white_check_mark: All tests successful. No failed tests found.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Update shared to latest
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.