-
Notifications
You must be signed in to change notification settings - Fork 0
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
do not import gcp-metadata rabbithole, if not needed #29
Conversation
test-coverage seems drunk? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice catch.
Is it really a good idea for us to force 100% code coverage?
When submitting PR's like this it is frustrating when not getting passed Github Actions for this reason.
We can track and report it somehow if we want to - but I vote for not having it as a requirement.
Regarding coverage: I think we can remove all ignore-coverage comments if we lower it to 90. I think we should change gcp lib to optional dependency if we revert to importing this dynamically. Alternatively add it as an argument to the middleware, so that its the implementors responsibility to either set the env variable or pass an argument with the name. Thoughts? |
I think it will be less headaches to keep it in |
I actually tried making it an optional dependency at first, but changed it due to optional dependencies being a pain to work with in node (I never thought I'd miss Python's dependency management). I also absolutely agree that using |
c79c863
to
ff29256
Compare
Yes! Saw it! :D since |
Cloud run imports are slow as is. Do not make it worse.
gcp-metadata
pullsgaxios
andjson-bigint
, always.Should also be replaced with
since node 18+ is required.