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] Remove legacy GeCloudStoreBackend #9893

Merged
merged 1 commit into from
May 8, 2024

Conversation

cdkini
Copy link
Member

@cdkini cdkini commented May 7, 2024

Class has been renamed to GXCloudStoreBackend - we don't need this file anymore

  • 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 May 7, 2024

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 2efb4c7
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/663a76bd2242c900087c8025

Comment on lines +470 to +499
@pytest.mark.parametrize(
"key",
[
pytest.param(("checkpoint", None), id="invalid length"),
pytest.param(
(
"my_fake_gx_resource",
"9805c644-6728-459f-846e-db7b40e8e811",
"test_resource",
),
id="invalid resource type",
),
],
)
def test_ge_cloud_store_backend_invalid_key_raises_error(
ge_cloud_access_token: str,
key: tuple,
) -> None:
ge_cloud_credentials = {
"access_token": ge_cloud_access_token,
"organization_id": "51379b8b-86d3-4fe7-84e9-e1a52f4a414c",
}

backend = GXCloudStoreBackend(
ge_cloud_credentials=ge_cloud_credentials,
ge_cloud_resource_type=GXCloudRESTResource.CHECKPOINT,
)

with pytest.raises(TypeError):
backend.get(key)
Copy link
Member Author

Choose a reason for hiding this comment

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

Ported test from the other file

Copy link

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.77%. Comparing base (86a5862) to head (2efb4c7).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9893      +/-   ##
===========================================
- Coverage    77.77%   77.77%   -0.01%     
===========================================
  Files          494      493       -1     
  Lines        42389    42381       -8     
===========================================
- Hits         32967    32960       -7     
+ Misses        9422     9421       -1     
Flag Coverage Δ
3.10 64.22% <100.00%> (-0.01%) ⬇️
3.10 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds ?
3.10 aws_deps ?
3.10 big ?
3.10 databricks ?
3.10 filesystem ?
3.10 mssql ?
3.10 mysql ?
3.10 postgresql ?
3.10 snowflake ?
3.10 spark ?
3.10 trino ?
3.11 64.22% <100.00%> (-0.01%) ⬇️
3.11 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.99% <100.00%> (-0.01%) ⬇️
3.11 aws_deps 44.88% <100.00%> (-0.01%) ⬇️
3.11 big 55.86% <0.00%> (-0.01%) ⬇️
3.11 databricks 46.06% <0.00%> (-0.01%) ⬇️
3.11 filesystem 60.81% <100.00%> (-0.01%) ⬇️
3.11 mssql 48.86% <0.00%> (-0.01%) ⬇️
3.11 mysql 48.92% <0.00%> (-0.01%) ⬇️
3.11 postgresql 52.76% <0.00%> (-0.01%) ⬇️
3.11 snowflake 46.67% <0.00%> (-0.02%) ⬇️
3.11 spark 57.27% <0.00%> (-0.01%) ⬇️
3.11 trino 50.84% <0.00%> (-0.01%) ⬇️
3.8 64.24% <100.00%> (-0.01%) ⬇️
3.8 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds 53.99% <100.00%> (-0.01%) ⬇️
3.8 aws_deps 44.89% <100.00%> (-0.01%) ⬇️
3.8 big 55.87% <0.00%> (-0.01%) ⬇️
3.8 databricks 46.07% <0.00%> (-0.01%) ⬇️
3.8 filesystem 60.83% <100.00%> (-0.01%) ⬇️
3.8 mssql 48.85% <0.00%> (-0.01%) ⬇️
3.8 mysql 48.90% <0.00%> (-0.01%) ⬇️
3.8 postgresql 52.75% <0.00%> (-0.01%) ⬇️
3.8 snowflake 46.68% <0.00%> (-0.01%) ⬇️
3.8 spark 57.24% <0.00%> (-0.01%) ⬇️
3.8 trino 50.83% <0.00%> (-0.01%) ⬇️
3.9 64.24% <100.00%> (-0.01%) ⬇️
3.9 athena or clickhouse or openpyxl or pyarrow or project or sqlite or aws_creds ?
3.9 aws_deps ?
3.9 big ?
3.9 databricks ?
3.9 filesystem ?
3.9 mssql ?
3.9 mysql ?
3.9 postgresql ?
3.9 snowflake ?
3.9 spark ?
3.9 trino ?
cloud 0.00% <0.00%> (ø)
docs-basic 48.90% <100.00%> (-0.01%) ⬇️
docs-creds-needed 50.34% <100.00%> (-0.01%) ⬇️
docs-spark 48.42% <100.00%> (-0.01%) ⬇️

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 May 7, 2024
Copy link
Contributor

@billdirks billdirks left a comment

Choose a reason for hiding this comment

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

LGTM

@cdkini cdkini added this pull request to the merge queue May 8, 2024
Merged via the queue into develop with commit f0fa7a9 May 8, 2024
68 checks passed
@cdkini cdkini deleted the m/_/remove_ge_cloud_store_backend branch May 8, 2024 11:57
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