Skip to content

Commit efc1b7f

Browse files
[updatecli] update elastic stack version for testing 9.0.0-e70a10ac-SNAPSHOT (#3893)
* chore: Update snapshot.yml * Remove -amd64 tags * Skip e2e agent container tests * Update terraform provider and template * Fix integration test --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>
1 parent 7d9a469 commit efc1b7f

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

.buildkite/pipeline.yml

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ steps:
150150

151151
- label: ":gcloud: Cloud e2e Test"
152152
key: "cloud-e2e-test"
153+
skip: true
153154
command: ".buildkite/scripts/cloud_e2e_test.sh"
154155
agents:
155156
provider: "gcp"

dev-tools/cloud/terraform/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
ec = {
66
source = "elastic/ec"
7-
version = "0.9.0"
7+
version = "0.11.0"
88
}
99
}
1010
}
@@ -47,7 +47,7 @@ resource "ec_deployment" "deployment" {
4747
name = format("fleet server PR %s", random_uuid.name.result)
4848
region = "gcp-us-west2"
4949
version = local.stack_version
50-
deployment_template_id = "gcp-io-optimized-v2"
50+
deployment_template_id = "gcp-general-purpose"
5151

5252
tags = {
5353
"created_with_terraform" = "true"

dev-tools/e2e/docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
kibana:
3-
image: "docker.elastic.co/kibana/kibana:${ELASTICSEARCH_VERSION}-amd64"
3+
image: "docker.elastic.co/kibana/kibana:${ELASTICSEARCH_VERSION}"
44
container_name: kibana
55
healthcheck:
66
test: ["CMD", "curl", "-f", "${ELASTICSEARCH_USERNAME}:${ELASTICSEARCH_PASSWORD}@localhost:5601/api/status"]
@@ -17,7 +17,7 @@ services:
1717
networks:
1818
- integration
1919
apm-server:
20-
image: "docker.elastic.co/apm/apm-server:${ELASTICSEARCH_VERSION}-amd64"
20+
image: "docker.elastic.co/apm/apm-server:${ELASTICSEARCH_VERSION}"
2121
container_name: apm-server
2222
# curl is not in the apm-server image
2323
#healthcheck:

dev-tools/integration/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# If you use change this version without a pinned one, please update
22
# .ci/bump-elastic-stack-snapshot.yml or .github/workflows/bump-golang.yml
3-
ELASTICSEARCH_VERSION=8.16.0-3a37a73c-SNAPSHOT
3+
ELASTICSEARCH_VERSION=9.0.0-e70a10ac-SNAPSHOT
44
ELASTICSEARCH_USERNAME=elastic
55
ELASTICSEARCH_PASSWORD=changeme
66
TEST_ELASTICSEARCH_HOSTS=localhost:9200

dev-tools/integration/docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ volumes:
33
driver: local
44
services:
55
setup:
6-
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}-amd64
6+
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}
77
volumes:
88
- certs:/usr/share/elasticsearch/config/certs
99
user: "0"
@@ -45,7 +45,7 @@ services:
4545
find . -type f -exec chmod 640 \{\} \;;
4646
';
4747
elasticsearch:
48-
image: "docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}-amd64"
48+
image: "docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}"
4949
container_name: elasticsearch
5050
environment:
5151
- node.name=es01
@@ -89,7 +89,7 @@ services:
8989
depends_on:
9090
setup:
9191
condition: service_healthy
92-
image: "docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}-amd64"
92+
image: "docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION}"
9393
container_name: elasticsearch-remote
9494
environment:
9595
- node.name=es02

internal/pkg/bulk/bulk_integration_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ func TestBulkCreate(t *testing.T) {
6969
Name: "Invalid utf-8",
7070
Index: string([]byte{0xfe, 0xfe, 0xff, 0xff}),
7171
Err: es.ErrElastic{
72-
Status: 500,
73-
Type: "json_parse_exception",
72+
Status: 400,
73+
Type: "parse_exception",
7474
},
7575
},
7676
{
@@ -100,7 +100,7 @@ func TestBulkCreate(t *testing.T) {
100100
// Create
101101
id, err := bulker.Create(ctx, test.Index, test.ID, sampleData)
102102
if !EqualElastic(test.Err, err) {
103-
t.Fatal(err)
103+
t.Fatalf("expected error: %+v, got: %+v", test.Err, err)
104104
}
105105
if err != nil {
106106
return

testing/e2e/agent_container_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ type AgentContainerSuite struct {
3737
}
3838

3939
func TestAgentContainerSuite(t *testing.T) {
40+
t.Skip("Flakey test suite skipped. See https://github.com/elastic/fleet-server/issues/3909")
4041
suite.Run(t, new(AgentContainerSuite))
4142
}
4243

0 commit comments

Comments
 (0)