-
Notifications
You must be signed in to change notification settings - Fork 3.5k
bk(smart exhaustive tests): tune the steps to support GH comments and changesets #18383
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
Changes from all commits
e414c51
5d5ccab
748564e
4ad6fed
93ddef7
f81e169
8847b3f
8ad4433
de9741f
ecdc1d9
9df5ac8
2240d82
01b4d7a
ffd0899
0057a8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| steps: | ||||||
| - label: "Trigger logstash-exhaustive-tests-pipeline for PRs with qa/acceptance/ changes" | ||||||
| if: build.pull_request.id != null | ||||||
| if: build.pull_request.id != null && build.env("GITHUB_PR_TRIGGER_COMMENT") != "/run exhaustive tests" | ||||||
| plugins: | ||||||
| - monorepo-diff#v1.0.1: | ||||||
| diff: "git diff --name-only origin/${GITHUB_PR_TARGET_BRANCH}...HEAD" | ||||||
|
|
@@ -16,19 +16,16 @@ steps: | |||||
| commit: "${BUILDKITE_COMMIT}" | ||||||
| branch: "${BUILDKITE_BRANCH}" | ||||||
| env: | ||||||
| - BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST} | ||||||
| - BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH} | ||||||
| - GITHUB_PR_LABELS=${GITHUB_PR_LABELS} | ||||||
| - ELASTIC_SLACK_NOTIFICATIONS_ENABLE=false | ||||||
| BUILDKITE_PULL_REQUEST: "${BUILDKITE_PULL_REQUEST}" | ||||||
| BUILDKITE_PULL_REQUEST_BASE_BRANCH: "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}" | ||||||
|
Comment on lines
+19
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A map of env var name with key and its value as the value makes sense logstash/.buildkite/windows_jdk_matrix_pipeline.yml Lines 4 to 5 in be64ebf
|
||||||
| ELASTIC_SLACK_NOTIFICATIONS_ENABLED: false | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo |
||||||
|
|
||||||
| - label: "Trigger logstash-exhaustive-tests-pipeline for GitHub comments" | ||||||
| if: build.env("GITHUB_PR_TRIGGER_COMMENT") != "" | ||||||
| if: build.env("GITHUB_PR_TRIGGER_COMMENT") == "/run exhaustive tests" | ||||||
| trigger: "logstash-exhaustive-tests-pipeline" | ||||||
| build: | ||||||
| commit: "${BUILDKITE_COMMIT}" | ||||||
| branch: "${BUILDKITE_BRANCH}" | ||||||
| commit: "HEAD" | ||||||
| branch: "pull/${BUILDKITE_PULL_REQUEST}/merge" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is odd. Seems like you found a decent workaround though. |
||||||
| env: | ||||||
| - BUILDKITE_PULL_REQUEST=${BUILDKITE_PULL_REQUEST} | ||||||
| - BUILDKITE_PULL_REQUEST_BASE_BRANCH=${BUILDKITE_PULL_REQUEST_BASE_BRANCH} | ||||||
| - GITHUB_PR_LABELS=${GITHUB_PR_LABELS} | ||||||
| - ELASTIC_SLACK_NOTIFICATIONS_ENABLE=false | ||||||
| BUILDKITE_PULL_REQUEST: "${BUILDKITE_PULL_REQUEST}" | ||||||
| ELASTIC_SLACK_NOTIFICATIONS_ENABLED: false | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo |
||||||
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.
in case of two events at the same time, a changeset and also a comment