Skip to content

Commit 4622cc4

Browse files
committed
Update CI scripts and config
1 parent 464e526 commit 4622cc4

10 files changed

+14
-13
lines changed

.ci/DockerFile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG DOTNET_VERSION=5.0.103
1+
ARG DOTNET_VERSION=6.0.101
22
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build
33

44
ARG USER_ID

.ci/jobs/elastic+elasticsearch-net+pull-request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
refspec: +refs/pull/*:refs/remotes/origin/pr/*
1212
triggers:
1313
- github-pull-request:
14-
black-list-target-branches:
15-
- '6\.(?:x|\d+?)'
1614
org-list:
1715
- elastic
1816
allow-whitelist-orgs-as-admins: true
1917
github-hooks: true
2018
status-context: clients-ci
2119
cancel-builds-on-update: true
20+
publishers: []

.ci/make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OUTPUT_DIR="$repo/${output_folder}"
4242
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
4343
mkdir -p "$OUTPUT_DIR"
4444

45-
DOTNET_VERSION=${DOTNET_VERSION-5.0.103}
45+
DOTNET_VERSION=${DOTNET_VERSION-6.0.101}
4646

4747
echo -e "\033[34;1mINFO:\033[0m PRODUCT ${product}\033[0m"
4848
echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m"

.ci/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ STACK_VERSION=8.0.0-SNAPSHOT ./.ci/run-tests
3030
|-------------------------|-------------|-------------|
3131
| `STACK_VERSION` | `N/A` | The elasticsearch version to target
3232
| `TEST_SUITE` | `basic` | `free` or `platinum` sets which test suite to run and which container to run against. |
33-
| `DOTNET_VERSION` | `5.0.103` | The .NET sdk version used to grab the proper container |
33+
| `DOTNET_VERSION` | `6.0.101` | The .NET sdk version used to grab the proper container |
3434

3535
If you want to manually spin up elasticsearch for these tests and call the runner afterwards you can use
3636

.ci/run-elasticsearch.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ $environment = @(
160160
"--env", "node.attr.testattr=test",
161161
"--env", "path.repo=/tmp",
162162
"--env", "repositories.url.allowed_urls=http://snapshot.test*",
163-
"--env", "action.destructive_requires_name=false"
164163
"--env", "ingest.geoip.downloader.enabled=false"
165164
)
166165

.ci/run-elasticsearch.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
# Export the TEST_SUITE variable, eg. 'free' or 'platinum' defaults to 'free'.
88
# Export the NUMBER_OF_NODES variable to start more than 1 node
99

10-
# Version 1.1.0
10+
# Version 1.4.0
1111
# - Initial version of the run-elasticsearch.sh script
1212
# - Deleting the volume should not dependent on the container still running
1313
# - Fixed `ES_JAVA_OPTS` config
1414
# - Moved to STACK_VERSION and TEST_VERSION
1515
# - Refactored into functions and imports
1616
# - Support NUMBER_OF_NODES
17+
# - Added 5 retries on docker pull for fixing transient network errors
18+
# - Added flags to make local CCR configurations work
19+
# - Added action.destructive_requires_name=false as the default will be true in v8
20+
# - Added ingest.geoip.downloader.enabled=false as it causes false positives in testing
1721

1822
# Version 1.2.0
1923
# - Added action.destructive_requires_name=false as the default will be true in v8
@@ -46,8 +50,8 @@ environment=($(cat <<-END
4650
--env node.attr.testattr=test
4751
--env path.repo=/tmp
4852
--env repositories.url.allowed_urls=http://snapshot.test*
49-
--env action.destructive_requires_name=false
5053
--env ingest.geoip.downloader.enabled=false
54+
--env cluster.deprecation_indexing.enabled=false
5155
END
5256
))
5357
if [[ "$TEST_SUITE" == "platinum" ]]; then

.ci/run-repository.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
$NODE_NAME,
1515

1616
[string]
17-
$DOTNET_VERSION = "5.0.103"
17+
$DOTNET_VERSION = "6.0.101"
1818
)
1919

2020
$ESC = [char]27

.ci/run-repository.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22
# parameters are available to this script
33

4-
54
# STACK_VERSION -- version e.g Major.Minor.Patch(-Prelease)
65
# TEST_SUITE -- which test suite to run: free or platinum
76
# ELASTICSEARCH_URL -- The url at which elasticsearch is reachable, a default is composed based on STACK_VERSION and TEST_SUITE
@@ -10,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
109
source $script_path/functions/imports.sh
1110
set -euo pipefail
1211

13-
DOTNET_VERSION=${DOTNET_VERSION-5.0.103}
12+
DOTNET_VERSION=${DOTNET_VERSION-6.0.101}
1413
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1514
elasticsearch_container=${elasticsearch_container-}
1615

.ci/run-tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param (
88
$TEST_SUITE = "free",
99

1010
[string]
11-
$DOTNET_VERSION = "5.0.103"
11+
$DOTNET_VERSION = "6.0.101"
1212
)
1313

1414
$ESC = [char]27

.ci/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ TEST_SUITE:
88
- platinum
99

1010
DOTNET_VERSION:
11-
- 5.0.103
11+
- 6.0.101
1212

1313
exclude: ~

0 commit comments

Comments
 (0)