Skip to content

Commit 1f02dac

Browse files
Merge branch 'main' into file-delivery-order
2 parents b138714 + ebab9d8 commit 1f02dac

File tree

8 files changed

+37
-19
lines changed

8 files changed

+37
-19
lines changed

.mergify.yml

+13
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,16 @@ pull_request_rules:
207207
labels:
208208
- "backport"
209209
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"
210+
- name: backport patches to 8.13 branch
211+
conditions:
212+
- merged
213+
- label=backport-v8.13.0
214+
actions:
215+
backport:
216+
assignees:
217+
- "{{ author }}"
218+
branches:
219+
- "8.13"
220+
labels:
221+
- "backport"
222+
title: "[{{ destination_branch }}](backport #{{ number }}) {{ title }}"

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ e2e-docker-stop: ## - Tear down testing Elasticsearch and Kibana instances
366366
@$(MAKE) int-docker-stop
367367

368368
.PHONY: test-e2e
369-
test-e2e: docker-cover-e2e-binaries build-e2e-agent-image e2e-certs build-docker ## - Setup and run the blackbox end to end test suite
369+
test-e2e: docker-cover-e2e-binaries e2e-certs build-docker ## - Setup and run the blackbox end to end test suite
370370
@mkdir -p build/e2e-cover
371371
@$(MAKE) e2e-docker-start
372372
@set -o pipefail; $(MAKE) test-e2e-set | tee build/test-e2e.out
@@ -381,7 +381,7 @@ test-e2e-set: ## - Run the blackbox end to end tests without setup.
381381
AGENT_E2E_IMAGE=$(shell cat "build/e2e-image") \
382382
STANDALONE_E2E_IMAGE=$(DOCKER_IMAGE):$(DOCKER_IMAGE_TAG)$(if $(DEV),-dev,) \
383383
CGO_ENABLED=1 \
384-
go test -v -timeout 30m -tags=e2e -count=1 -race -p 1 ./... -run StandAlone
384+
go test -v -timeout 30m -tags=e2e -count=1 -race -p 1 ./...
385385

386386
##################################################
387387
# Cloud testing targets

dev-tools/cloud/launch_cloud_e2e_tests.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ CLOUD_TESTING_BASE="$(dirname $0)"
77
cleanup() {
88
r=$?
99

10-
echo "--- Cleaning deployment"
11-
make -C "${CLOUD_TESTING_BASE}" cloud-clean
12-
10+
if [ -f ${CLOUD_TESTING_BASE}/terraform/.terraform.lock.hcl ] ; then
11+
echo "--- Cleaning deployment"
12+
make -C "${CLOUD_TESTING_BASE}" cloud-clean
13+
else
14+
echo "Skipped cleaning deployment, no Terraform files"
15+
fi
1316
exit $r
1417
}
1518
trap cleanup EXIT INT TERM

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.13.0-edaa0fd0-SNAPSHOT
3+
ELASTICSEARCH_VERSION=8.14.0-8dc05a81-SNAPSHOT
44
ELASTICSEARCH_USERNAME=elastic
55
ELASTICSEARCH_PASSWORD=changeme
66
TEST_ELASTICSEARCH_HOSTS=localhost:9200

internal/pkg/api/server_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ func Test_server_ClientCert(t *testing.T) {
295295
})
296296

297297
t.Run("valid client certs no certs requested", func(t *testing.T) {
298+
t.Skip("test is flakey see fleet-server/issue/3266")
298299
ctx, cancel := context.WithCancel(context.Background())
299300
defer cancel()
300301
ctx = testlog.SetLogger(t).WithContext(ctx)

testing/e2e/agent_container_test.go

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
// or more contributor license agreements. Licensed under the Elastic License;
33
// you may not use this file except in compliance with the Elastic License.
44

5-
//go:build e2e
5+
// FIXME(ml): test suite is disabled by additional build flag.
6+
// we do not want to rely on agent builds in our pipeline.
7+
8+
//go:build e2e && ignore
69

710
package e2e
811

@@ -20,15 +23,6 @@ import (
2023
"github.com/testcontainers/testcontainers-go"
2124
)
2225

23-
type logger struct {
24-
*testing.T
25-
}
26-
27-
func (l *logger) Printf(format string, v ...interface{}) {
28-
l.Helper()
29-
l.Logf(format, v...)
30-
}
31-
3226
type AgentContainerSuite struct {
3327
scaffold.Scaffold
3428

testing/e2e/agent_install_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
// you may not use this file except in compliance with the Elastic License.
44

55
// FIXME(ml): test suite is disabled by additional build flag.
6-
// I've had issues getting the test to run in Jenkins (lack of tty).
7-
// And there also seem to be issues with uninstalling the agent after each test when running in a VM.
8-
// We should fix this once we have migrated to buildkite.
6+
// we do not want to rely on agent builds in our pipeline.
97

108
//go:build e2e && ignore
119

testing/e2e/e2e_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ import (
1616
"github.com/testcontainers/testcontainers-go/wait"
1717
)
1818

19+
type logger struct {
20+
*testing.T
21+
}
22+
23+
func (l *logger) Printf(format string, v ...interface{}) {
24+
l.Helper()
25+
l.Logf(format, v...)
26+
}
27+
1928
var longFlag bool
2029

2130
func init() {

0 commit comments

Comments
 (0)