You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: Refactor and clean up the test runner for "core" tests
Use the same pattern as in the `tests-xpack.sh` runner, ie. run
the file directly on host, and execute commands with `docker exec`.
Also, clean up a little bit the `tests-xpack.sh` runner, removing
double quotes to prevent unwanted shell expansion, and passing
the `PACKAGE_PATH` environment variable.
(cherry picked from commit 4fbc97d)
echo -e "\033[1m>>>>> Generating the API registry\033[0m"
13
+
14
+
docker exec --workdir=/go-elasticsearch/internal/cmd/generate --env PACKAGE_PATH=/go-elasticsearch/esapi go-elasticsearch go generate ./...
15
+
16
+
echo -e "\033[1m>>>>> Generating the test files\033[0m"
17
+
18
+
time docker exec --tty --workdir=/go-elasticsearch/internal/cmd/generate go-elasticsearch go run main.go tests --output '/go-elasticsearch/esapi/test' --input '/elasticsearch-source/elasticsearch/rest-api-spec/src/main/resources/rest-api-spec/test/**/*.y*ml'
echo -e "\033[1m>>>>> Generating the API registry\033[0m"
13
+
14
+
docker exec --workdir=/go-elasticsearch/internal/cmd/generate --env PACKAGE_PATH=/go-elasticsearch/esapi go-elasticsearch go generate ./...
15
+
16
+
echo -e "\033[1m>>>>> Generating the test files\033[0m"
11
17
12
18
time docker exec --tty --workdir=/go-elasticsearch/internal/cmd/generate go-elasticsearch go run main.go apitests --output '/go-elasticsearch/esapi/test/xpack' --input '/elasticsearch-source/elasticsearch/x-pack/plugin/src/test/resources/rest-api-spec/test/**/*.yml'
13
19
@@ -16,28 +22,26 @@ time docker exec --tty --workdir=/go-elasticsearch/internal/cmd/generate go-elas
0 commit comments