Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Conversation

aminalaee
Copy link
Contributor

Not sure if this is accepted but some tests fail locally when credentials/env variables are not set.
I see that there are already decorators for this purpose, this PR extends those decorators.

@aminalaee aminalaee requested a review from a team May 1, 2023 08:14
@aminalaee aminalaee temporarily deployed to external May 1, 2023 08:14 — with GitHub Actions Inactive
Comment on lines +24 to 27
@need_aws_auth
@long
def test_loading_remote(s3_tmp_path, s3_storage_fs):
project = s3_tmp_path("remote_conf")
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, thank you @aminalaee. This should make it easier contributing 🙏🏻 The only question - I thought some tests with aws will pass since to read test bucket, you don't need any special permissions. Is this wrong?

Copy link
Contributor Author

@aminalaee aminalaee May 1, 2023

Choose a reason for hiding this comment

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

Not sure the case, but boto3.Session().get_credentials() will return None if the AWS credentials ~/.aws/credentials doesn't exist on my local. I guess this is even before making the calls to AWS services.
‌But about the failing tests, no, they failed with permission errors I think.

@codecov
Copy link

codecov bot commented May 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (bd230a2) 85.75% compared to head (e1cfc36) 85.75%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #669   +/-   ##
=======================================
  Coverage   85.75%   85.75%           
=======================================
  Files         109      109           
  Lines        9922     9922           
=======================================
  Hits         8509     8509           
  Misses       1413     1413           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aminalaee aminalaee temporarily deployed to external May 1, 2023 17:46 — with GitHub Actions Inactive
Copy link
Contributor

@aguschin aguschin left a comment

Choose a reason for hiding this comment

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

LGTM, merging! Thanks a lot @aminalaee !

@aguschin aguschin merged commit 2b63b34 into iterative:main May 2, 2023
@aminalaee aminalaee deleted the add-more-test-decorators branch May 2, 2023 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants