-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into migrate-add-from-lib
- Loading branch information
Showing
79 changed files
with
2,013 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,17 +14,46 @@ is_pr() { | |
false | ||
} | ||
|
||
verify_no_git_changes() { | ||
check_for_changed_files() { | ||
RED='\033[0;31m' | ||
YELLOW='\033[0;33m' | ||
C_RESET='\033[0m' # Reset color | ||
|
||
SHOULD_AUTO_COMMIT_CHANGES="${2:-}" | ||
GIT_CHANGES="$(git ls-files --modified -- . ':!:.bazelrc')" | ||
|
||
if [ "$GIT_CHANGES" ]; then | ||
echo -e "\n${RED}ERROR: '$1' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
echo -e "\n${YELLOW}TO FIX: Run '$1' locally, commit the changes and push to your branch${C_RESET}\n" | ||
exit 1 | ||
if [[ "$SHOULD_AUTO_COMMIT_CHANGES" == "true" && "${BUILDKITE_PULL_REQUEST:-}" ]]; then | ||
NEW_COMMIT_MESSAGE="[CI] Auto-commit changed files from '$1'" | ||
PREVIOUS_COMMIT_MESSAGE="$(git log -1 --pretty=%B)" | ||
|
||
if [[ "$NEW_COMMIT_MESSAGE" == "$PREVIOUS_COMMIT_MESSAGE" ]]; then | ||
echo -e "\n${RED}ERROR: '$1' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
echo -e "CI already attempted to commit these changes, but the file(s) seem to have changed again." | ||
echo -e "Please review and fix manually." | ||
exit 1 | ||
fi | ||
|
||
echo "'$1' caused changes to the following files:" | ||
echo "$GIT_CHANGES" | ||
echo "" | ||
echo "Auto-committing these changes now. A new build should start soon if successful." | ||
|
||
git config --global user.name kibanamachine | ||
git config --global user.email '[email protected]' | ||
gh pr checkout "${BUILDKITE_PULL_REQUEST}" | ||
git add -u -- . ':!.bazelrc' | ||
|
||
git commit -m "$NEW_COMMIT_MESSAGE" | ||
git push | ||
exit 1 | ||
else | ||
echo -e "\n${RED}ERROR: '$1' caused changes to the following files:${C_RESET}\n" | ||
echo -e "$GIT_CHANGES\n" | ||
echo -e "\n${YELLOW}TO FIX: Run '$1' locally, commit the changes and push to your branch${C_RESET}\n" | ||
exit 1 | ||
fi | ||
fi | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...lopment/core/server/kibana-plugin-core-server.elasticsearchconfig.maxsockets.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-server](./kibana-plugin-core-server.md) > [ElasticsearchConfig](./kibana-plugin-core-server.elasticsearchconfig.md) > [maxSockets](./kibana-plugin-core-server.elasticsearchconfig.maxsockets.md) | ||
|
||
## ElasticsearchConfig.maxSockets property | ||
|
||
The maximum number of sockets that can be used for communications with elasticsearch. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
readonly maxSockets: number; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.