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

feat: horizontally stack test results message #504

Merged
merged 3 commits into from
Jun 19, 2024

Conversation

joseph-sentry
Copy link
Contributor

@codecov-notifications
Copy link

codecov-notifications bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #504   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files         417      417           
  Lines       34795    34788    -7     
=======================================
- Hits        33912    33906    -6     
+ Misses        883      882    -1     
Flag Coverage Δ
integration 97.46% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.46% <100.00%> (+<0.01%) ⬆️
unit 97.46% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.48% <100.00%> (+0.01%) ⬆️
OutsideTasks 97.73% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/test_results.py 90.81% <100.00%> (+0.98%) ⬆️
services/tests/test_test_results.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.46%. Comparing base (dd4202a) to head (43b6658).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #504   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files         417      417           
  Lines       34795    34788    -7     
=======================================
- Hits        33912    33906    -6     
+ Misses        883      882    -1     
Flag Coverage Δ
integration 97.46% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.46% <100.00%> (+<0.01%) ⬆️
unit 97.46% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.48% <100.00%> (+0.01%) ⬆️
OutsideTasks 97.73% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/test_results.py 90.81% <100.00%> (+0.98%) ⬆️
services/tests/test_test_results.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)

Copy link

codecov-public-qa bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.46%. Comparing base (dd4202a) to head (43b6658).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #504   +/-   ##
=======================================
  Coverage   97.46%   97.46%           
=======================================
  Files         417      417           
  Lines       34795    34788    -7     
=======================================
- Hits        33912    33906    -6     
+ Misses        883      882    -1     
Flag Coverage Δ
integration 97.46% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.46% <100.00%> (+<0.01%) ⬆️
unit 97.46% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.48% <100.00%> (+0.01%) ⬆️
OutsideTasks 97.73% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/test_results.py 90.81% <100.00%> (+0.98%) ⬆️
services/tests/test_test_results.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.48%. Comparing base (dd4202a) to head (43b6658).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #504   +/-   ##
=======================================
  Coverage   97.48%   97.48%           
=======================================
  Files         448      448           
  Lines       35524    35517    -7     
=======================================
- Hits        34631    34625    -6     
+ Misses        893      892    -1     
Flag Coverage Δ
integration 97.46% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.46% <100.00%> (+<0.01%) ⬆️
unit 97.46% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.54% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.73% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/test_results.py 91.89% <100.00%> (+0.93%) ⬆️
services/tests/test_test_results.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)

This change has been scanned for critical changes. Learn more

f"**Envs:**<br>{env_section}<br>"
"</pre>"
)
if "\x1f" in fail.testname:
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] I'd suggest a little refactor (assuming there's only 1 "\x1f" in the testname)

has_class_name = "\x1f" in fail.testname
if has_class_name:
  class_name, test_name = fail.testname.split("\x1f")
  test_description = f"- **Class name:** {class_name}<br>**Test name:** {test_name}"
else:
  test_description = f"- **Test name:** {fail.testname}"

services/test_results.py Show resolved Hide resolved
else:
fail_dict[fail.testsuite].append(fail)

def process_dict(d):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be made a helper function somewhere? It's hard to read functions within functions (even if it makes sense to be here and will never be reused)

Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
Signed-off-by: joseph-sentry <joseph.sawaya@sentry.io>
@joseph-sentry joseph-sentry added this pull request to the merge queue Jun 19, 2024
Merged via the queue into main with commit 708f3db Jun 19, 2024
29 checks passed
@joseph-sentry joseph-sentry deleted the joseph/horizontal-stack branch June 19, 2024 15: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.

[Failed tests] Possibly stack comment horizontally
2 participants