-
Notifications
You must be signed in to change notification settings - Fork 168
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
[Enhancement] sd-step should check local hab dir first before installing #1163
Comments
Whether this is a habitat API issue or not, we could modify |
Ah I didn't noticed this issue and just created new one #1164 🚶... |
|
Should we avoid using curl in artifact-bookend? It might be good idea to implement a small command for uploading artifact without curl, place it to /opt/sd/bin and call it from bookend. |
Additionally, later versions of
There seems to be few people using such an OS especially for k8s, but we have k8s-vm executor that can run older OSes on VM by a user demand. |
@catto Hi Catto, we tested out the latest sd-step. It seems like it doesn't reduce the number of API calls to get versions. Based on the logic, every time sd-step is called, it will still call To really reduce the calls to list versions, we should check the local hab first before calling |
@minz1027 Sorry, I forgot to update the progress and did not notice that this issue was closed automatically. API call did not reduce because curl command in artifact-bookend calls with |
Update(2018/07/09): Finally reduced API calls from sd-step command. I confirmed there is no access to habitat API if a package already exists in
|
Thanks @catto, please let us know after you're done testing. We'll pull it in as well. |
@d2lam I confirmed that the latest sd-step works fine and API calls are reduced. You can use it by pulling launcher |
What happened:
We're getting throttling by habitat.sh when there're a lot of files to upload in
sd-teardown-artifacts-bookend
. Because every time we runsd-step
, we makes a call to fetch all theversions
first and find the match.https://github.com/screwdriver-cd/sd-step/blob/master/sd-step.go#L185
Example error:
What you expected to happen:
We shouldn't keep calling that endpoint. Can check if there is a local hab pkg matches the semver first before making the call to fetch versions.
@catto @kumada626 Can you guys help review/investigate this issue?
Updates
Actually also seeing this err in our functional tests and that only uploads 3 files... https://beta.cd.screwdriver.cd/pipelines/375/builds/22032
Even me hitting that endpoint in my browser got timeout: https://willem.habitat.sh/v1/depot/pkgs/core/curl?range=0

it's intermittent
The text was updated successfully, but these errors were encountered: