-
Notifications
You must be signed in to change notification settings - Fork 67
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
[WIP] Added circle-ci artifacts to prometheus-builder #304
[WIP] Added circle-ci artifacts to prometheus-builder #304
Conversation
Signed-off-by: Hrishikesh Barman <hrishikeshbman@gmail.com>
hm , I am not sure what is the problem here, did you try to contact the circle CI support? |
one other thing for how long are these artifacts kept? I mean what would happen if the last run was 2 weeks ago, would the artifact be persisted? |
just re-read the original discussion. |
@krasi-georgiev should we implement some kind of fall back? eg. if it cannot get the artifact from circleCI, attempt building it like what it does currently? |
The CI job triggered after prometheus/prometheus#6326 got merged hasn't completed though it's been started more than 30 hours ago. |
I could get get artifacts from a year old PR but they do not make any grantees as mentioned here
The issue seems to be something else from circleci's side, I tried getting api responses when the builds were successful as well. I'll open a ticket on circleci forum about it. |
Signed-off-by: Hrishikesh Barman <hrishikeshbman@gmail.com>
From what I see using circle will be flaky so I really don't want to depend on circle for this, can you try to come up with a different solution? |
I don't know. Maybe your requests were rate-limited? |
This currently tries to use the circleCI artifact first, if it fails to get the artifact then it tries to build it like what the current prometheus-builder does. |
I opened a question here: https://discuss.circleci.com/t/circleci-api-not-responding-correctly/35763 Putting it here to keep track. |
Since github actions now support artifacts, I think we could experiment with github actions artifacts instead of circleci artifacts here. |
it really looks like the CI run from prometheus/prometheus#6326 got stuck and never completed. Maybe it's happening from time to time but I don't remember anything like this before... |
👋🏽 Looks like there was no activity on this PR for some time, closing for now, we can always reopen if still relevant/to-be-reviewed. Thanks! |
Closes #83
Closes #163
With this PR,
prometheus-builder
no longer builds prometheus, instead it downloads the artifact for that PR and uses that to copy it to the mounted volume.prometheus-builder
will no longer be needed to be updated any dependency change once this gets merged.This is working locally, yet to test this on the cluster.
Another issue I faced was that, circle-ci api endpoint is not working as expected in few cases:
For example, api works as expected with prometheus/prometheus#6325 but not with prometheus/prometheus#6326
cc @krasi-georgiev @simonpasquier
Signed-off-by: Hrishikesh Barman hrishikeshbman@gmail.com