-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add pipeline task queue framework and merge workers into one (#6…
- Loading branch information
1 parent
6e35798
commit 465ed21
Showing
51 changed files
with
749 additions
and
130 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
ARG NODE_VERSION=10.21.0 | ||
|
||
FROM node:${NODE_VERSION} AS base | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \ | ||
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \ | ||
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \ | ||
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \ | ||
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget openjdk-8-jre && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \ | ||
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | ||
&& apt-get update \ | ||
&& apt-get install -y rsync jq bsdtar google-chrome-stable \ | ||
--no-install-recommends \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN LATEST_VAULT_RELEASE=$(curl -s https://api.github.com/repos/hashicorp/vault/tags | jq --raw-output .[0].name[1:]) \ | ||
&& curl -L https://releases.hashicorp.com/vault/${LATEST_VAULT_RELEASE}/vault_${LATEST_VAULT_RELEASE}_linux_amd64.zip -o vault.zip \ | ||
&& unzip vault.zip \ | ||
&& rm vault.zip \ | ||
&& chmod +x vault \ | ||
&& mv vault /usr/local/bin/vault | ||
|
||
RUN groupadd -r kibana && useradd -r -g kibana kibana && mkdir /home/kibana && chown kibana:kibana /home/kibana | ||
|
||
COPY ./bash_standard_lib.sh /usr/local/bin/bash_standard_lib.sh | ||
RUN chmod +x /usr/local/bin/bash_standard_lib.sh | ||
|
||
COPY ./runbld /usr/local/bin/runbld | ||
RUN chmod +x /usr/local/bin/runbld | ||
|
||
USER kibana |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:checkDocApiChanges |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:checkFileCasing |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:i18nCheck |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:licenses |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:checkLockfileSymlinks |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:test_hardening |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:test_projects |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:checkTsProjects |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:typeCheck |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:verifyDependencyVersions |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
yarn run grunt run:verifyNotice |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
source src/dev/ci_setup/setup_env.sh | ||
|
||
echo " -> building examples separate from test plugins" | ||
node scripts/build_kibana_platform_plugins \ | ||
--oss \ | ||
--examples \ | ||
--workers 6 \ | ||
--verbose | ||
|
||
echo " -> building kibana platform plugins" | ||
node scripts/build_kibana_platform_plugins \ | ||
--oss \ | ||
--no-examples \ | ||
--scan-dir "$KIBANA_DIR/test/plugin_functional/plugins" \ | ||
--scan-dir "$KIBANA_DIR/test/interpreter_functional/plugins" \ | ||
--workers 6 \ | ||
--verbose |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
source test/scripts/jenkins_test_setup_oss.sh | ||
|
||
cd test/plugin_functional/plugins/kbn_sample_panel_action; | ||
if [[ ! -d "target" ]]; then | ||
yarn build; | ||
fi | ||
cd -; | ||
|
||
pwd | ||
|
||
yarn run grunt run:pluginFunctionalTestsRelease --from=source; | ||
yarn run grunt run:exampleFunctionalTestsRelease --from=source; | ||
yarn run grunt run:interpreterFunctionalTestsRelease; |
8 changes: 1 addition & 7 deletions
8
test/scripts/jenkins_security_solution_cypress.sh
100644 → 100755
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
CURRENT_DIR=$(pwd) | ||
|
||
# Copy everything except node_modules into the current workspace | ||
rsync -a ${WORKSPACE}/kibana/* . --exclude node_modules | ||
rsync -a ${WORKSPACE}/kibana/.??* . | ||
|
||
# Symlink all non-root, non-fixture node_modules into our new workspace | ||
cd ${WORKSPACE}/kibana | ||
find . -type d -name node_modules -not -path '*__fixtures__*' -not -path './node_modules*' -prune -print0 | xargs -0I % ln -s "${WORKSPACE}/kibana/%" "${CURRENT_DIR}/%" | ||
find . -type d -wholename '*__fixtures__*node_modules' -not -path './node_modules*' -prune -print0 | xargs -0I % cp -R "${WORKSPACE}/kibana/%" "${CURRENT_DIR}/%" | ||
cd "${CURRENT_DIR}" | ||
|
||
# Symlink all of the individual root-level node_modules into the node_modules/ directory | ||
mkdir -p node_modules | ||
ln -s ${WORKSPACE}/kibana/node_modules/* node_modules/ | ||
ln -s ${WORKSPACE}/kibana/node_modules/.??* node_modules/ | ||
|
||
# Copy a few node_modules instead of symlinking them. They don't work correctly if symlinked | ||
unlink node_modules/@kbn | ||
unlink node_modules/css-loader | ||
unlink node_modules/style-loader | ||
|
||
# packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts will fail if this is a symlink | ||
unlink node_modules/val-loader | ||
|
||
cp -R ${WORKSPACE}/kibana/node_modules/@kbn node_modules/ | ||
cp -R ${WORKSPACE}/kibana/node_modules/css-loader node_modules/ | ||
cp -R ${WORKSPACE}/kibana/node_modules/style-loader node_modules/ | ||
cp -R ${WORKSPACE}/kibana/node_modules/val-loader node_modules/ |
Oops, something went wrong.