Skip to content
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ steps:
provider: "gcp"
env:
TEST_SUITE: "{{ matrix.suite }}"
STACK_VERSION: 9.1.0-SNAPSHOT
STACK_VERSION: 9.2.0-SNAPSHOT
WORKSPACE: /tmp/go-elasticsearch
matrix:
setup:
Expand Down
2 changes: 1 addition & 1 deletion .ci/test-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

STACK_VERSION:
- 8.10.0-SNAPSHOT
- 9.2.0-SNAPSHOT

GO_VERSION:
- 1-alpine
Expand Down
3 changes: 3 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "9.2.0"
}
17 changes: 17 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "go",
"include-component-in-tag": false,
"include-v-in-tag": true,
"versioning": "always-bump-patch",
"packages": {
".": {
"version-file": "internal/version/version.go"
}
},
"plugins": [
{
"type": "sentence-case"
}
]
}
34 changes: 31 additions & 3 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,44 @@
# See: https://github.com/tibdex/backport/blob/main/.github/workflows/backport.yml
name: Backport

on:
pull_request:
pull_request_target:
types:
- closed
- labeled

permissions:
contents: read
id-token: write

jobs:
backport:
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
name: Backport
steps:
- name: Fetch ephemeral GitHub token
id: fetch-token
uses: elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0
with:
vault-instance: "ci-prod"

- name: Backport
uses: tibdex/backport@v1
uses: tibdex/backport@9565281eda0731b1d20c4025c43339fb0a23812e # v2.0.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ steps.fetch-token.outputs.token }}
65 changes: 65 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Release

on:
push:
branches:
- '[0-9]*.[0-9]*'

permissions:
contents: write
issues: write
pull-requests: write
id-token: write

jobs:
release:
name: Release Please
runs-on: ubuntu-latest
steps:
- name: Fetch ephemeral GitHub token
id: fetch-token
uses: elastic/ci-gh-actions/fetch-github-token@8a7604dfdd4e7fe21f969bfe9ff96e17635ea577 # v1.0.0
with:
vault-instance: "ci-prod"

- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release-please
with:
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json
target-branch: ${{ github.ref_name }}
token: ${{ steps.fetch-token.outputs.token }}

- name: Checkout repository
if: steps.release-please.outputs.release_created == 'true'
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
token: ${{ steps.fetch-token.outputs.token }}

- name: Bump Version Snapshot
id: bump-version
if: steps.release-please.outputs.release_created == 'true'
run: |
NEXT_PATCH=$((${{ steps.release-please.outputs.patch }} + 1))
NEXT_VERSION="${{ steps.release-please.outputs.major }}.${{ steps.release-please.outputs.minor }}.${NEXT_PATCH}-SNAPSHOT"
echo "Next version: $NEXT_VERSION"
sed -i "s/const Version = \".*\"/const Version = \"$NEXT_VERSION\"/" internal/version/version.go
echo "next_version=$NEXT_VERSION" >> $GITHUB_OUTPUT


- name: Create Version Bump Pull Request
if: steps.release-please.outputs.release_created == 'true'
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
with:
token: ${{ steps.fetch-token.outputs.token }}
commit-message: 'chore: bump version to ${{ steps.bump-version.outputs.next_version }}'
branch: chore/bump-version-${{ steps.bump-version.outputs.next_version }}
delete-branch: true
title: 'chore: bump version to ${{ steps.bump-version.outputs.next_version }}'
body: |
Bumps version to ${{ steps.bump-version.outputs.next_version }} after release ${{ steps.release-please.outputs.major }}.${{ steps.release-please.outputs.minor }}.${{ steps.release-please.outputs.patch }}.

Auto-generated by GitHub Actions.
base: ${{ github.ref_name }}
committer: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
author: 'Elastic Machine <elasticmachine@users.noreply.github.com>'
4 changes: 2 additions & 2 deletions .github/workflows/test-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test-free:
name: Free
env:
ELASTICSEARCH_VERSION: elasticsearch:9.1.0-SNAPSHOT
ELASTICSEARCH_VERSION: elasticsearch:9.2.0-SNAPSHOT
ELASTICSEARCH_URL: http://localhost:9200
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
test-platinum:
name: Platinum
env:
ELASTICSEARCH_VERSION: elasticsearch:9.1.0-SNAPSHOT
ELASTICSEARCH_VERSION: elasticsearch:9.2.0-SNAPSHOT
ELASTICSEARCH_URL: https://elastic:elastic@localhost:9200
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

env:
GITHUB_ACTIONS: true
ELASTICSEARCH_VERSION: elasticsearch:8.3.0-SNAPSHOT
ELASTICSEARCH_VERSION: elasticsearch:9.2.0-SNAPSHOT

jobs:
test-integration:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 9.2.0

# API

* Updated APIs to 9.2.0

# Typed API

* Update TypedAPI to latest [elasticsearch-specification 9.2.0](https://github.com/elastic/elasticsearch-specification/commit/d520d9e)

# 9.1.0

# API
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL := /bin/bash

ELASTICSEARCH_DEFAULT_BUILD_VERSION = "9.1.0-SNAPSHOT"
ELASTICSEARCH_DEFAULT_BUILD_VERSION = "9.2.0-SNAPSHOT"

##@ Test
test-unit: ## Run unit tests
Expand Down
18 changes: 17 additions & 1 deletion esapi/api._.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions esapi/api.bulk.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion esapi/api.capabilities.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading