[CI] Fix project build & deploy job#196562
Conversation
build_pull_requests for the deploy serverless project job
build_pull_requests for the deploy serverless project job|
buildkite deploy project |
91b96fc to
58643c9
Compare
|
PR Project deployment started at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/12 |
58643c9 to
113b4fd
Compare
|
PR Project deployment started at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/23 |
|
Project deployed, see credentials at: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/23 |
Ikuni17
left a comment
There was a problem hiding this comment.
Since Jon found we're hitting the Github rate limits on commenting, we may need a slightly different approach. Can we edit the main build comment? Can we utilize a status check somehow?
I can't really tell from the PR history, so I'm wondering about a few situations (maybe I missed these in the initial PR):
- If there is a deployment label, does a normal CI run update/overwrite the deployment when it runs?
- Is there any concern for multiple deployments if the deployment pipeline and CI pipeline are running concurrently?
|
Thanks for the comments, it also allows me to think the scenario through again.
I think if we edit an existing comment would deplete the same limit (since we probably deplete the limits with edits, and not the creation anyway). Also, I think these are two different actors (at least for now). It's The nicer solution would probably be through the pr-bot, editing the one comment box, but we'll have to sync on the rate-limit considerations.
I tried using a status check through the env variables I copied from the pull-request pipeline, but it didn't appear yet, maybe after editing (1) If there is a deployment label, does a normal CI run update/overwrite the deployment when it runs? (2) Is there any concern for multiple deployments if the deployment pipeline and CI pipeline are running concurrently? |
|
Pinging @elastic/kibana-operations (Team:Operations) |
💚 Build Succeeded
Metrics [docs]
History
|
Summary
In #195581 we've added the option to deploy through the clickable triggers. But in it's current state, it's broken in several aspects.
(1) It's not starting on click. Triggers was resulting in a 422 on Buildkite's side, and after digging more into it, this was the error:

Apparently, building PRs needs to be enabled on jobs that want to be triggered through the PR bot.
(2) It is set up to run regardless of the labels
(3) There's no feedback on runs
Changes
This PR:
TODO:
There are several other builds started right now, because the logic that would trigger a build on changing a draft to ready. To be fixed in https://github.com/elastic/buildkite-pr-bot/issues/78
Tested after manually by enabling the option on the UI, and triggering through the checkbox: https://buildkite.com/elastic/kibana-deploy-project-from-pr/builds/23