Hi, I have this MR failing unit testing with the folowing error message:
botocore.exceptions.NoCredentialsError: Unable to locate credentials
I think it's because of this line referencing S3, but cannot say for sure. I though I'd reach out the community before requesting another review.
Will
09/06/2023, 7:05 AM
@Nate sorry to drag you in, I met you in last month's prefect course. Any suggestions here?
n
Nate
09/06/2023, 2:55 PM
hi @Will - my feeling is that if this is something we're going to test, we would want to mock out any call to a remote filesystem. there should not be any need to actually talk to s3 from our unit tests
that specifies a protocol
i would think the eventual implementation would have
PREFECT_DEFAULT_RESULT_STORAGE_BLOCK
accepting a block type/document slug, as the name suggests, like
s3/my-result-storage
and then maybe this would be more like
Copy code
return (
Block.load(PREFECT_DEFAULT_RESULT_STORAGE_BLOCK.value())
if PREFECT_DEFAULT_RESULT_STORAGE_BLOCK.value() is not None
else LocalFileSystem(basepath=PREFECT_LOCAL_STORAGE_PATH.value())
)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.