Skip to content

Commit 074b335

Browse files
authored
Move make.sh to .buildkite (#47)
ci: move make.sh to .buildkite
1 parent 44afbe5 commit 074b335

File tree

6 files changed

+9
-11
lines changed

6 files changed

+9
-11
lines changed
File renamed without changes.

.ci/make.sh renamed to .buildkite/make.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Build entry script for elasticsearch-serverless-js
55
#
6-
# Must be called: ./.ci/make.sh <target> <params>
6+
# Must be called: ./.buildkite/make.sh <target> <params>
77
#
88
# Version: 1.1.0
99
#
@@ -34,8 +34,8 @@ STACK_VERSION=$VERSION
3434
set -euo pipefail
3535

3636
product="elastic/elasticsearch-serverless-js"
37-
output_folder=".ci/output"
38-
codegen_folder=".ci/output"
37+
output_folder=".buildkite/output"
38+
codegen_folder=".buildkite/output"
3939
OUTPUT_DIR="$repo/${output_folder}"
4040
NODE_VERSION=18
4141
WORKFLOW=${WORKFLOW-staging}
@@ -157,7 +157,7 @@ if [[ -z "${BUILDKITE+x}" ]] && [[ -z "${CI+x}" ]] && [[ -z "${GITHUB_ACTIONS+x}
157157
--rm \
158158
$product \
159159
/bin/bash -c "mkdir -p /usr/src/elastic-client-generator-js/output && \
160-
node .ci/make.mjs --task $TASK ${TASK_ARGS[*]}"
160+
node .buildkite/make.mjs --task $TASK ${TASK_ARGS[*]}"
161161
else
162162
echo -e "\033[34;1mINFO: Running in CI mode"
163163
docker run \
@@ -171,15 +171,15 @@ else
171171
/bin/bash -c "
172172
git clone https://$CLIENTS_GITHUB_TOKEN@github.com/elastic/elastic-client-generator-js.git /usr/src/elastic-client-generator-js && \
173173
mkdir -p /usr/src/elastic-client-generator-js/output && \
174-
node .ci/make.mjs --task $TASK ${TASK_ARGS[*]}"
174+
node .buildkite/make.mjs --task $TASK ${TASK_ARGS[*]}"
175175
fi
176176

177177
# ------------------------------------------------------- #
178178
# Post Command tasks & checks
179179
# ------------------------------------------------------- #
180180

181181
if [[ "$CMD" == "assemble" ]]; then
182-
if compgen -G ".ci/output/*" > /dev/null; then
182+
if compgen -G ".buildkite/output/*" > /dev/null; then
183183
echo -e "\033[32;1mTARGET: successfully assembled client v$VERSION\033[0m"
184184
else
185185
echo -e "\033[31;1mTARGET: assemble failed, empty workspace!\033[0m"

.buildkite/pull-requests.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"\\.asciidoc$",
1111
"\\.txt$",
1212
"^docs\\/",
13-
"^\\.ci\\/",
1413
"^scripts\\/",
1514
"^catalog-info\\.yaml$",
1615
"^test\\/unit\\/",

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
filters: |
1818
src-only:
19-
- '!(**/*.{md,asciidoc,txt}|*.{md,asciidoc,txt}|{docs,.ci,.buildkite,scripts}/**/*|catalog-info.yaml)'
19+
- '!(**/*.{md,asciidoc,txt}|*.{md,asciidoc,txt}|{docs,.buildkite,scripts}/**/*|catalog-info.yaml)'
2020
- '.github/workflows/**'
2121
2222
test:

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ test
6464
scripts
6565

6666
# ci configuration
67-
.ci
6867
.travis.yml
6968
.buildkite
7069
.github

test/integration/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The specification does not allow the test to be run in parallel, so it might tak
2323
### Running locally
2424

2525
If you want to run the integration tests on your development machine, you must have an Elasticsearch instance running first.
26-
A local instance can be spun up in a Docker container by running the [`.ci/run-elasticsearch.sh`](/.ci/run-elasticsearch.sh) script.
26+
A local instance can be spun up in a Docker container by running the [`.buildkite/run-elasticsearch.sh`](/.buildkite/run-elasticsearch.sh) script.
2727
This is the same script CI jobs use to run Elasticsearch for integration tests, so your results should be relatively consistent.
2828

2929
To simplify the process of starting a container, testing, and cleaning up the container, you can run the `make integration` target:
@@ -35,7 +35,7 @@ export TEST_SUITE=free # can be `free` or `platinum`
3535
make integration
3636
```
3737

38-
If Elasticsearch doesn't come up, run `make integration-cleanup` and then `DETACH=false .ci/run-elasticsearch.sh` manually to read the startup logs.
38+
If Elasticsearch doesn't come up, run `make integration-cleanup` and then `DETACH=false .buildkite/run-elasticsearch.sh` manually to read the startup logs.
3939

4040
If you get an error about `vm.max_map_count` being too low, run `sudo sysctl -w vm.max_map_count=262144` to update the setting until the next reboot, or `sudo sysctl -w vm.max_map_count=262144; echo 'vm.max_map_count=262144' | sudo tee -a /etc/sysctl.conf` to update the setting permanently.
4141

0 commit comments

Comments
 (0)