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

[MAINTENANCE] Refactor EmailAction for V1 #9725

Merged
merged 6 commits into from Apr 9, 2024
Merged

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented Apr 9, 2024

Update action and renderer to use checkpoint result

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses ruff format + ruff check)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

Copy link

netlify bot commented Apr 9, 2024

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 0080e12
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/661547cc610b7200084b98f8

@@ -130,3 +130,26 @@ def test_EmailRenderer_get_report_element():

# this should work
assert email_renderer._get_report_element(docs_link="i_should_work") is not None


@pytest.mark.unit
Copy link
Member Author

Choose a reason for hiding this comment

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

Screenshot 2024-04-09 at 8 06 49 AM

Copy link

codecov bot commented Apr 9, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 82.64%. Comparing base (2e7469c) to head (0080e12).
Report is 1 commits behind head on develop.

Files Patch % Lines
...eat_expectations/render/renderer/email_renderer.py 92.59% 2 Missing ⚠️
great_expectations/checkpoint/actions.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #9725   +/-   ##
========================================
  Coverage    82.63%   82.64%           
========================================
  Files          512      512           
  Lines        46594    46630   +36     
========================================
+ Hits         38504    38537   +33     
- Misses        8090     8093    +3     
Flag Coverage Δ
3.10 64.88% <91.66%> (+0.02%) ⬆️
3.11 64.88% <91.66%> (+0.02%) ⬆️
3.11 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.86% <19.44%> (-0.03%) ⬇️
3.11 aws_deps 48.95% <19.44%> (-0.03%) ⬇️
3.11 big 63.89% <19.44%> (-0.04%) ⬇️
3.11 databricks 48.13% <19.44%> (-0.03%) ⬇️
3.11 filesystem 63.77% <19.44%> (-0.04%) ⬇️
3.11 mssql 47.35% <19.44%> (-0.03%) ⬇️
3.11 mysql 47.40% <19.44%> (-0.03%) ⬇️
3.11 postgresql 54.15% <19.44%> (-0.03%) ⬇️
3.11 snowflake 48.66% <19.44%> (-0.03%) ⬇️
3.11 spark 60.57% <19.44%> (-0.04%) ⬇️
3.11 trino 53.79% <19.44%> (-0.03%) ⬇️
3.8 64.89% <91.66%> (+0.02%) ⬆️
3.8 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.87% <19.44%> (-0.03%) ⬇️
3.8 aws_deps 48.96% <19.44%> (-0.03%) ⬇️
3.8 big 63.89% <19.44%> (-0.04%) ⬇️
3.8 databricks 48.14% <19.44%> (-0.03%) ⬇️
3.8 filesystem 63.77% <19.44%> (-0.04%) ⬇️
3.8 mssql 47.33% <19.44%> (-0.03%) ⬇️
3.8 mysql 47.38% <19.44%> (-0.03%) ⬇️
3.8 postgresql 54.14% <19.44%> (-0.03%) ⬇️
3.8 snowflake 48.67% <19.44%> (-0.03%) ⬇️
3.8 spark 60.52% <19.44%> (-0.04%) ⬇️
3.8 trino 53.78% <19.44%> (-0.03%) ⬇️
3.9 64.88% <91.66%> (+0.03%) ⬆️
cloud 0.00% <0.00%> (ø)
docs-basic 54.43% <19.44%> (-0.03%) ⬇️
docs-creds-needed 55.00% <19.44%> (-0.03%) ⬇️
docs-spark 54.53% <19.44%> (-0.03%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cdkini cdkini self-assigned this Apr 9, 2024
Copy link
Contributor

@tyler-hoffman tyler-hoffman left a comment

Choose a reason for hiding this comment

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

LGTM

tests/actions/test_core_actions.py Outdated Show resolved Hide resolved
out = action.v1_run(checkpoint_result=checkpoint_result)

mock_send_email.assert_called_once_with(
title=mock.ANY,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think ANY makes sense here, but I might add another assertion below to verify that the argument passed kind of looks like the right string. (e.g. suite_name in call_args.kwargs["title"] (or whatever the syntax is for that))

@cdkini cdkini enabled auto-merge April 9, 2024 13:51
@cdkini cdkini added this pull request to the merge queue Apr 9, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 9, 2024
@cdkini cdkini added this pull request to the merge queue Apr 9, 2024
Merged via the queue into develop with commit 1f98547 Apr 9, 2024
70 checks passed
@cdkini cdkini deleted the m/v1-251/email_action branch April 9, 2024 16:47
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.

None yet

2 participants