Skip to content

Commit 6f004f8

Browse files
committed
Rename 8.x branch to 8.19
1 parent 0c4062d commit 6f004f8

File tree

7 files changed

+10
-21
lines changed

7 files changed

+10
-21
lines changed

.backportrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
22
"upstream" : "elastic/elasticsearch",
3-
"targetBranchChoices" : [ "main", "8.x", "9.0", "8.18", "8.17", "8.16", "8.15", "8.14", "8.13", "8.12", "8.11", "8.10", "8.9", "8.8", "8.7", "8.6", "8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.17", "6.8" ],
3+
"targetBranchChoices" : [ "main", "9.0", "8.19", "8.18", "8.17", "8.16", "8.15", "8.14", "8.13", "8.12", "8.11", "8.10", "8.9", "8.8", "8.7", "8.6", "8.5", "8.4", "8.3", "8.2", "8.1", "8.0", "7.17", "6.8" ],
44
"targetPRLabels" : [ "backport" ],
55
"branchLabelMapping" : {
66
"^v8.17.6$" : "main",
7-
"^v8.17.5$" : "8.x",
87
"^v(\\d+).(\\d+).\\d+(?:-(?:alpha|beta|rc)\\d+)?$" : "$1.$2"
98
}
109
}

.buildkite/pipelines/periodic.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ steps:
217217
image: family/elasticsearch-ubuntu-2004
218218
machineType: n2-standard-8
219219
buildDirectory: /dev/shm/bk
220-
if: build.branch == "main" || build.branch == "8.x" || build.branch == "7.17"
220+
if: build.branch == "main" || build.branch == "8.19" || build.branch == "7.17"
221221
- label: check-branch-consistency
222222
command: .ci/scripts/run-gradle.sh branchConsistency
223223
timeout_in_minutes: 15

.buildkite/pipelines/periodic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ steps:
902902
image: family/elasticsearch-ubuntu-2004
903903
machineType: n2-standard-8
904904
buildDirectory: /dev/shm/bk
905-
if: build.branch == "main" || build.branch == "8.x" || build.branch == "7.17"
905+
if: build.branch == "main" || build.branch == "8.19" || build.branch == "7.17"
906906
- label: check-branch-consistency
907907
command: .ci/scripts/run-gradle.sh branchConsistency
908908
timeout_in_minutes: 15

.buildkite/scripts/lucene-snapshot/update-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010
if [[ "$BUILDKITE_BRANCH" == "lucene_snapshot_10" ]]; then
1111
UPSTREAM="main"
1212
elif [[ "$BUILDKITE_BRANCH" == "lucene_snapshot" ]]; then
13-
UPSTREAM="8.x"
13+
UPSTREAM="8.19"
1414
else
1515
echo "Error: unknown branch: $BUILDKITE_BRANCH"
1616
exit 1

.ci/scripts/resolve-dra-manifest.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ if [ "$LATEST_VERSION" != "$ES_VERSION" ]; then
2424
echo "Latest build for '$ARTIFACT' is version $LATEST_VERSION but expected version $ES_VERSION." 1>&2
2525
NEW_BRANCH=$(echo $ES_VERSION | sed -E "s/([0-9]+\.[0-9]+)\.[0-9]/\1/g")
2626

27-
# Temporary
28-
if [[ "$ES_VERSION" == "8.16.0" ]]; then
29-
NEW_BRANCH="8.x"
30-
fi
31-
3227
echo "Using branch $NEW_BRANCH instead of $BRANCH." 1>&2
3328
LATEST_BUILD=$(fetch_build $WORKFLOW $ARTIFACT $NEW_BRANCH)
3429
fi

branches.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88
"branch": "9.0"
99
},
1010
{
11-
"branch": "8.17"
11+
"branch": "8.19"
1212
},
1313
{
14-
"branch": "8.16"
14+
"branch": "8.18"
15+
},
16+
{
17+
"branch": "8.17"
1518
},
1619
{
17-
"branch": "8.x"
20+
"branch": "8.16"
1821
},
1922
{
2023
"branch": "7.17"

build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,6 @@ tasks.register("verifyVersions") {
211211
throw new GradleException("No branch choice exists for development branch ${unreleasedVersion.branch} in .backportrc.json.")
212212
}
213213
}
214-
String versionMapping = backportConfig.get("branchLabelMapping").fields().find { it.value.textValue() == '8.x' }.key
215-
String expectedMapping = "^v${versions.elasticsearch.replaceAll('-SNAPSHOT', '')}\$"
216-
if (versionMapping != expectedMapping) {
217-
throw new GradleException(
218-
"Backport label mapping for branch '8.x' is '${versionMapping}' but should be " +
219-
"'${expectedMapping}'. Update .backportrc.json."
220-
)
221-
}
222214
}
223215
}
224216

0 commit comments

Comments
 (0)