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: add flaky shadow mode #553

Merged
merged 2 commits into from
Jul 18, 2024
Merged

feat: add flaky shadow mode #553

merged 2 commits into from
Jul 18, 2024

Conversation

joseph-sentry
Copy link
Contributor

we want to run the write part of the flake detection process without doing the read part of the flake detection process

@joseph-sentry joseph-sentry marked this pull request as ready for review July 10, 2024 14:47
@codecov-notifications
Copy link

codecov-notifications bot commented Jul 10, 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     #553   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files         425      425           
  Lines       35488    35497    +9     
=======================================
+ Hits        34608    34617    +9     
  Misses        880      880           
Flag Coverage Δ
integration 97.52% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.52% <100.00%> (+<0.01%) ⬆️
unit 97.52% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.59% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.75% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
rollouts/__init__.py 100.00% <100.00%> (ø)
services/test_results.py 90.85% <100.00%> (+0.32%) ⬆️
tasks/sync_pull.py 98.80% <100.00%> (ø)
tasks/test_results_finisher.py 96.99% <100.00%> (-0.09%) ⬇️
tasks/tests/unit/test_sync_pull.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.52%. Comparing base (e9abbde) to head (84adf00).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #553   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files         425      425           
  Lines       35488    35497    +9     
=======================================
+ Hits        34608    34617    +9     
  Misses        880      880           
Flag Coverage Δ
integration 97.52% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.52% <100.00%> (+<0.01%) ⬆️
unit 97.52% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.59% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.75% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
rollouts/__init__.py 100.00% <100.00%> (ø)
services/test_results.py 90.85% <100.00%> (+0.32%) ⬆️
tasks/sync_pull.py 98.80% <100.00%> (ø)
tasks/test_results_finisher.py 96.99% <100.00%> (-0.09%) ⬇️
tasks/tests/unit/test_sync_pull.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

Copy link

codecov-public-qa bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.52%. Comparing base (e9abbde) to head (84adf00).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #553   +/-   ##
=======================================
  Coverage   97.52%   97.52%           
=======================================
  Files         425      425           
  Lines       35488    35497    +9     
=======================================
+ Hits        34608    34617    +9     
  Misses        880      880           
Flag Coverage Δ
integration 97.52% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.52% <100.00%> (+<0.01%) ⬆️
unit 97.52% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.59% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.75% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
rollouts/__init__.py 100.00% <100.00%> (ø)
services/test_results.py 90.85% <100.00%> (+0.32%) ⬆️
tasks/sync_pull.py 98.80% <100.00%> (ø)
tasks/test_results_finisher.py 96.99% <100.00%> (-0.09%) ⬇️
tasks/tests/unit/test_sync_pull.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.55%. Comparing base (e9abbde) to head (84adf00).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #553   +/-   ##
=======================================
  Coverage   97.55%   97.55%           
=======================================
  Files         458      458           
  Lines       36560    36569    +9     
=======================================
+ Hits        35666    35675    +9     
  Misses        894      894           
Flag Coverage Δ
integration 97.52% <100.00%> (+<0.01%) ⬆️
latest-uploader-overall 97.52% <100.00%> (+<0.01%) ⬆️
unit 97.52% <100.00%> (+<0.01%) ⬆️

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

Components Coverage Δ
NonTestCode 94.69% <100.00%> (+<0.01%) ⬆️
OutsideTasks 97.75% <100.00%> (+<0.01%) ⬆️
Files Coverage Δ
rollouts/__init__.py 100.00% <100.00%> (ø)
services/test_results.py 92.00% <100.00%> (+0.28%) ⬆️
tasks/sync_pull.py 98.80% <100.00%> (ø)
tasks/test_results_finisher.py 97.74% <100.00%> (-0.07%) ⬇️
tasks/tests/unit/test_sync_pull.py 100.00% <100.00%> (ø)
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

This change has been scanned for critical changes. Learn more

we want to run the write part of the flake detection process without
doing the read part of the flake detection process
Copy link
Contributor

@michelletran-codecov michelletran-codecov left a comment

Choose a reason for hiding this comment

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

Generally LGTM. Just a nit suggestion.

Comment on lines 435 to 440
if (
FLAKY_TEST_DETECTION.check_value(identifier=repoid, default=False)
and read_yaml_field(
current_yaml, ("test_analytics", "flake_detection"), False
)
) or (FLAKY_SHADOW_MODE.check_value(identifier=repoid, default=False)):
Copy link
Contributor

Choose a reason for hiding this comment

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

This if statement is kind of hard to read. I would suggest pulling up the conditional into a variable or function. If you pull it up into a function, we can even make this reusable in test_results_finisher.py.

Copy link
Contributor Author

@joseph-sentry joseph-sentry Jul 17, 2024

Choose a reason for hiding this comment

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

addressed 👍

Signed-off-by: joseph-sentry <[email protected]>
@joseph-sentry joseph-sentry added this pull request to the merge queue Jul 18, 2024
Merged via the queue into main with commit 4e85d90 Jul 18, 2024
29 of 30 checks passed
@joseph-sentry joseph-sentry deleted the joseph/flake-shadow-mode branch July 18, 2024 13:26
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