great-expectations / great_expectations

Always know what to expect from your data.
https://docs.greatexpectations.io/
Apache License 2.0
10k stars 1.55k forks source link

[MAINTENANCE] Log service as gx-cloud if using cloud-mode #10651

Open TrangPham opened 1 week ago

TrangPham commented 1 week ago

For more information about contributing, visit our community resources.

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!

netlify[bot] commented 1 week ago

Deploy Preview for niobium-lead-7998 canceled.

Name Link
Latest commit 257adf261497e9ca0f066c49b5383036079402af
Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/673e1b7277fac10008cb077f
codecov[bot] commented 1 week ago

:x: 1 Tests Failed:

Tests completed Failed Passed Skipped
27276 1 27275 4782
View the top 1 failed tests by shortest run time > > ```python > tests.analytics.test_analytics::test_cloud_context_init > ``` > >
Stack Traces | 0.034s run time > > > > > ```python > > cloud_api_fake = > > cloud_details = CloudDetails(base_url='https://app.greatexpectations.fake.io/', org_id='12345678-1234-5678-1234-567812345678', access_...yJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c') > > monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7efd439a6d00> > > > > @pytest.mark.cloud > > def test_cloud_context_init(cloud_api_fake, cloud_details, monkeypatch): > > monkeypatch.setattr(ENV_CONFIG, "gx_analytics_enabled", True) # Enable usage stats > > > > with ( > > mock.patch( > > "great_expectations.data_context.data_context.cloud_data_context.init_analytics" > > ) as mock_init, > > mock.patch("posthog.capture") as mock_submit, > > ): > > context = gx.get_context( > > cloud_access_token=cloud_details.access_token, > > cloud_organization_id=cloud_details.org_id, > > cloud_base_url=cloud_details.base_url, > > cloud_mode=True, > > mode="cloud", > > ) > > > assert isinstance(context, gx.CloudDataContext) > > E AttributeError: module 'great_expectations' has no attribute 'CloudDataContext' > > > > tests/analytics/test_analytics.py:158: AttributeError > > ``` > >

To view more test analytics, go to the Test Analytics Dashboard Got feedback? Let us know on Github