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

fix: make sure code block has copy button #625

Merged
merged 2 commits into from
Aug 16, 2024
Merged

Conversation

joseph-sentry
Copy link
Contributor

No description provided.

@joseph-sentry joseph-sentry requested a review from a team August 15, 2024 18:47
@codecov-notifications
Copy link

codecov-notifications bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files Patch % Lines
services/test_results.py 95.00% 1 Missing ⚠️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #625   +/-   ##
=======================================
  Coverage   98.13%   98.13%           
=======================================
  Files         438      438           
  Lines       36565    36580   +15     
=======================================
+ Hits        35884    35899   +15     
  Misses        681      681           
Flag Coverage Δ
integration 98.13% <95.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.13% <95.00%> (+<0.01%) ⬆️
unit 98.13% <95.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.12% <95.00%> (+<0.01%) ⬆️
OutsideTasks 98.11% <95.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/tests/test_test_results.py 100.00% <ø> (ø)
tasks/test_results_finisher.py 97.16% <ø> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)
services/test_results.py 91.81% <95.00%> (+0.78%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.13%. Comparing base (201323d) to head (61350ed).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files Patch % Lines
services/test_results.py 95.00% 1 Missing ⚠️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #625   +/-   ##
=======================================
  Coverage   98.13%   98.13%           
=======================================
  Files         438      438           
  Lines       36565    36580   +15     
=======================================
+ Hits        35884    35899   +15     
  Misses        681      681           
Flag Coverage Δ
integration 98.13% <95.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.13% <95.00%> (+<0.01%) ⬆️
unit 98.13% <95.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.12% <95.00%> (+<0.01%) ⬆️
OutsideTasks 98.11% <95.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/tests/test_test_results.py 100.00% <ø> (ø)
tasks/test_results_finisher.py 97.16% <ø> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)
services/test_results.py 91.81% <95.00%> (+0.78%) ⬆️

Copy link

codecov-public-qa bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.13%. Comparing base (201323d) to head (61350ed).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #625   +/-   ##
=======================================
  Coverage   98.13%   98.13%           
=======================================
  Files         438      438           
  Lines       36565    36580   +15     
=======================================
+ Hits        35884    35899   +15     
  Misses        681      681           
Flag Coverage Δ
integration 98.13% <95.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.13% <95.00%> (+<0.01%) ⬆️
unit 98.13% <95.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.12% <95.00%> (+<0.01%) ⬆️
OutsideTasks 98.11% <95.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/tests/test_test_results.py 100.00% <ø> (ø)
tasks/test_results_finisher.py 97.16% <ø> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)
services/test_results.py 91.81% <95.00%> (+0.78%) ⬆️

Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 98.16%. Comparing base (201323d) to head (61350ed).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files Patch % Lines
services/test_results.py 95.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #625   +/-   ##
=======================================
  Coverage   98.15%   98.16%           
=======================================
  Files         473      473           
  Lines       37770    37785   +15     
=======================================
+ Hits        37075    37090   +15     
  Misses        695      695           
Flag Coverage Δ
integration 98.13% <95.00%> (+<0.01%) ⬆️
latest-uploader-overall 98.13% <95.00%> (+<0.01%) ⬆️
unit 98.13% <95.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 96.15% <95.00%> (+<0.01%) ⬆️
OutsideTasks 98.11% <95.00%> (+<0.01%) ⬆️
Files Coverage Δ
services/tests/test_test_results.py 100.00% <ø> (ø)
tasks/test_results_finisher.py 97.87% <ø> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <ø> (ø)
services/test_results.py 91.81% <95.00%> (+0.78%) ⬆️

This change has been scanned for critical changes. Learn more

@joseph-sentry
Copy link
Contributor Author

❌ 4 Tests Failed:

Tests completed Failed Passed Skipped
4 4 0 0
View the top 2 failed tests by shortest run time
test_name1
Stack Traces | 2s run time
Shared 



 <pre> ````````
 

 | test | test | test </pre>failure message

View the CI Build

Class Name test_name0
Stack Traces | 4s run time
<pre>Fourth 

</pre> | test  | instance |

View the CI Build

View the full list of 1 ❄️ flaky tests
Other Class Name test_name2

Flake rate in main: 40.0% (Passed 3 times, Failed 2 times)

Stack Traces | 3s run time
Shared 



 <pre> 
  ````````  
 

 | test | test | test </pre>failure message

View the CI Build

To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard

Copy link
Contributor

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

lgtm, although formatting the test assertions as multiline strings should make it much more review-able

@@ -351,7 +351,7 @@ def test_upload_finisher_task_call(
assert expected_result == result
mock_repo_provider_comments.post_comment.assert_called_with(
pull.pullid,
"### :x: 4 Tests Failed:\n| Tests completed | Failed | Passed | Skipped |\n|---|---|---|---|\n| 4 | 4 | 0 | 0 |\n<details><summary>View the top 3 failed tests by shortest run time</summary>\n\n> <pre>\n> test_name1\n> </pre>\n> <details><summary>Stack Traces | 2s run time</summary>\n> \n> > <pre>Shared failure message</pre>\n> > [View](https://example.com/build_url_1) the CI Build\n> \n> </details>\n\n\n> <pre>\n> Other Class Name\x1ftest_name2\n> </pre>\n> <details><summary>Stack Traces | 3s run time</summary>\n> \n> > <pre>Shared failure message</pre>\n> > [View](https://example.com/build_url_2) the CI Build\n> \n> </details>\n\n\n> <pre>\n> Class Name\x1ftest_name0\n> </pre>\n> <details><summary>Stack Traces | 4s run time</summary>\n> \n> > <pre>&lt;pre&gt;Fourth <br><br>&lt;/pre&gt; | test | instance |</pre>\n> > [View](https://example.com/build_url_3) the CI Build\n> \n> </details>\n\n</details>\n\nTo view individual test run time comparison to the main branch, go to the [Test Analytics Dashboard](https://app.codecov.io/gh/joseph-sentry/codecov-demo/tests/main)",
"### :x: 4 Tests Failed:\n| Tests completed | Failed | Passed | Skipped |\n|---|---|---|---|\n| 4 | 4 | 0 | 0 |\n<details><summary>View the top 3 failed tests by shortest run time</summary>\n\n> ```\n> test_name1\n> ```\n> <details><summary>Stack Traces | 2s run time</summary>\n> \n> > ```\n> > Shared \n> > \n> > \n> > \n> > &lt;pre&gt; \n> > \n> > \n> > | test | test | test &lt;/pre&gt;failure message\n> > ```\n> > [View](https://example.com/build_url_1) the CI Build\n> \n> </details>\n\n\n> ```\n> Other Class Name test_name2\n> ```\n> <details><summary>Stack Traces | 3s run time</summary>\n> \n> > ```\n> > Shared \n> > \n> > \n> > \n> > &lt;pre&gt; \n> > \n> > \n> > | test | test | test &lt;/pre&gt;failure message\n> > ```\n> > [View](https://example.com/build_url_2) the CI Build\n> \n> </details>\n\n\n> ```\n> Class Name test_name0\n> ```\n> <details><summary>Stack Traces | 4s run time</summary>\n> \n> > ```\n> > &lt;pre&gt;Fourth \n> > \n> > &lt;/pre&gt; | test | instance |\n> > ```\n> > [View](https://example.com/build_url_3) the CI Build\n> \n> </details>\n\n</details>\n\nTo view individual test run time comparison to the main branch, go to the [Test Analytics Dashboard](https://app.codecov.io/gh/test-username/test-repo-name/tests/main)",
Copy link
Contributor

Choose a reason for hiding this comment

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

these snapshots are pretty impossible to review. can you format them as multiline strings?

@joseph-sentry joseph-sentry added this pull request to the merge queue Aug 16, 2024
Merged via the queue into main with commit ad949a5 Aug 16, 2024
23 of 26 checks passed
@joseph-sentry joseph-sentry deleted the joseph/fix-comment branch August 16, 2024 16:19
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.

2 participants