-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support testing without AWS secrets #269
Comments
The CI runs on a public AWS account provided by Invenia so we can do some integration testing for uploading, deleting, etc. objects. If these secrets were added into PkgEval would that resolve the issue? |
No, adding secrets (or other environmental information) to PkgEval on a per-package basis is not a scalable solution. |
I'm not quite sure what the path forward is here in that case. We need to limit access to the AWS account, but still be able to test the package concretely. I would not want to add in special code checking for PkgEval env vars and restructuring tests to have it work as this is not a dependency of this package. We could create a public bucket in the account and place some objects in there, restructure tests to separate ones which do and do not require credentials. But that limits things to read only operations and does not seem value. |
You only need to check an environment variable. Why is that problematic? It's generally a good thing that registered, public packages can be tested without special set-up. Alternatively, CloubBase.jl's Ultimately though, I don't really care about AWSS3.jl's PkgEval-compatibility, so feel free to close. The only disadvantage is that this package won't be considered when testing for upstream Julia changes. |
IMO, this package as well as AWS.jl and others are a bit more unique where if you're using them there's somewhat of an expectation that you have AWS credentials present. Although they do support credential-less requests, as part of testing you would want to test that your changes and nightly runs check everything.
Using MinIO would work, could refactor this to:
Personally I do not have the time to make these currently, if you make the PR though I can review though. Honestly this package really needs to be re-written anyways so I'm not too concerned about its current state that much. |
Yeah, I don't have the time for that either. I'll just blacklist the package. |
It looks like CI here has AWS secrets provided:
AWSS3.jl/.github/workflows/CI.yml
Lines 51 to 53 in 5eb7a78
This of course isn't the case on PkgEval, resulting in this package not being tested (or rather it it always failing its tests):
It would be great if this package could be tested by PkgEval. I guess the tests could just be made dependent on the availability of secrets? Alternatively, you can also check the PKGEVAL/JULIA_PKGEVAL env vars.
The text was updated successfully, but these errors were encountered: