Skip to content

Commit 7c1d246

Browse files
Merge branch 'main' into ti-anomali-agentless
2 parents bcc8563 + 6c676bc commit 7c1d246

5,203 files changed

Lines changed: 368761 additions & 94780 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildkite/pipeline.publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22

33
env:
4-
SETUP_GVM_VERSION: "v0.5.2"
4+
SETUP_GVM_VERSION: "v0.6.0"
55
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
66
DOCKER_COMPOSE_VERSION: "v2.24.1"
77
DOCKER_VERSION: "false"

.buildkite/pipeline.schedule-daily.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: integrations-schedule-daily
33

44
env:
5-
SETUP_GVM_VERSION: "v0.5.2"
5+
SETUP_GVM_VERSION: "v0.6.0"
66
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
77

88
# The pipeline is triggered by the scheduler every day
@@ -34,7 +34,7 @@ steps:
3434
env:
3535
SERVERLESS: "false"
3636
FORCE_CHECK_ALL: "true"
37-
STACK_VERSION: 8.19.1-SNAPSHOT
37+
STACK_VERSION: 8.19.8-SNAPSHOT
3838
PUBLISH_COVERAGE_REPORTS: "true"
3939
depends_on:
4040
- step: "check"
@@ -48,7 +48,7 @@ steps:
4848
env:
4949
SERVERLESS: "false"
5050
FORCE_CHECK_ALL: "true"
51-
STACK_VERSION: 8.19.1-SNAPSHOT
51+
STACK_VERSION: 8.19.8-SNAPSHOT
5252
STACK_LOGSDB_ENABLED: "true"
5353
PUBLISH_COVERAGE_REPORTS: "false"
5454
depends_on:
@@ -86,13 +86,13 @@ steps:
8686
if: |
8787
build.env('TEST_PACKAGES_BASIC_SUBSCRIPTION') == "true"
8888
89-
- label: "Check integrations local stacks - Stack Version v9.2"
89+
- label: "Check integrations local stacks - Stack Version v9.3"
9090
trigger: "integrations"
9191
build:
9292
env:
9393
SERVERLESS: "false"
9494
FORCE_CHECK_ALL: "true"
95-
STACK_VERSION: 9.2.0-SNAPSHOT
95+
STACK_VERSION: 9.3.0-SNAPSHOT
9696
PUBLISH_COVERAGE_REPORTS: "false"
9797
depends_on:
9898
- step: "check"

.buildkite/pipeline.schedule-weekly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: integrations-schedule-weekly
33

44
env:
5-
SETUP_GVM_VERSION: "v0.5.2"
5+
SETUP_GVM_VERSION: "v0.6.0"
66
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
77

88
# The pipeline is triggered by the scheduler every week
@@ -21,20 +21,20 @@ steps:
2121
env:
2222
SERVERLESS: "false"
2323
FORCE_CHECK_ALL: "true"
24-
STACK_VERSION: 8.19.1-SNAPSHOT
24+
STACK_VERSION: 8.19.8-SNAPSHOT
2525
PUBLISH_COVERAGE_REPORTS: "false"
2626
ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFI: "true"
2727
depends_on:
2828
- step: "check"
2929
allow_failure: false
3030

31-
- label: "Check integrations local stacks and non-wolfi images for Elastic Agent - Stack Version v9.2"
31+
- label: "Check integrations local stacks and non-wolfi images for Elastic Agent - Stack Version v9.3"
3232
trigger: "integrations"
3333
build:
3434
env:
3535
SERVERLESS: "false"
3636
FORCE_CHECK_ALL: "true"
37-
STACK_VERSION: 9.2.0-SNAPSHOT
37+
STACK_VERSION: 9.3.0-SNAPSHOT
3838
PUBLISH_COVERAGE_REPORTS: "false"
3939
ELASTIC_PACKAGE_DISABLE_ELASTIC_AGENT_WOLFI: "true"
4040
depends_on:

.buildkite/pipeline.serverless.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22

33
env:
4-
SETUP_GVM_VERSION: "v0.5.2"
4+
SETUP_GVM_VERSION: "v0.6.0"
55
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
66
DOCKER_COMPOSE_VERSION: "v2.24.1"
77
DOCKER_VERSION: "false" # not required to set since system tests are not running yet
@@ -109,6 +109,8 @@ steps:
109109
- label: ":github: Report failed tests"
110110
key: report-failed-tests
111111
command: ".buildkite/scripts/report_issues.sh"
112+
env:
113+
CI_MAX_TESTS_REPORTED: 30
112114
agents:
113115
image: "${LINUX_AGENT_IMAGE}"
114116
cpu: "8"

.buildkite/pipeline.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22
env:
3-
SETUP_GVM_VERSION: "v0.5.2"
3+
SETUP_GVM_VERSION: "v0.6.0"
44
DOCKER_COMPOSE_VERSION: "v2.24.1"
55
DOCKER_VERSION: "26.1.2"
66
KIND_VERSION: 'v0.27.0'
@@ -57,6 +57,24 @@ steps:
5757
image: "${LINUX_AGENT_IMAGE}"
5858
cpu: "8"
5959
memory: "4G"
60+
artifact_paths:
61+
- tests-report.xml
62+
63+
- label: ":junit: Sources Junit annotate"
64+
agents:
65+
# requires at least "bash", "curl" and "git"
66+
image: "docker.elastic.co/ci-agent-images/buildkite-junit-annotate:1.0"
67+
depends_on:
68+
- step: "check"
69+
allow_failure: true
70+
plugins:
71+
- junit-annotate#v2.7.0:
72+
artifacts: "tests-report.xml"
73+
failed-download-exit-code: 0 # Not fail the build in case there are no XML files
74+
report-skipped: true
75+
always-annotate: false
76+
run-in-docker: false
77+
context: junit-sources
6078

6179
- label: "Trigger integrations"
6280
key: "test-integrations"
@@ -85,21 +103,6 @@ steps:
85103
build.env('BUILDKITE_PULL_REQUEST') != "false" &&
86104
build.env('BUILDKITE_PIPELINE_SLUG') == "integrations"
87105
88-
- label: ":sonarqube: Continuous Code Inspection"
89-
soft_fail: true # FIXME: Coverage is failing, remove this after solving the issue
90-
timeout_in_minutes: 120
91-
env:
92-
VAULT_SONAR_TOKEN_PATH: "kv/ci-shared/platform-ingest/elastic/integrations/sonar-analyze-token"
93-
agents:
94-
image: "docker.elastic.co/cloud-ci/sonarqube/buildkite-scanner:latest"
95-
cpu: "8"
96-
memory: "4G"
97-
command: ".buildkite/scripts/run_sonar_scanner.sh"
98-
artifact_paths:
99-
- build/test-coverage/coverage_merged.xml
100-
if: |
101-
build.env('BUILDKITE_PIPELINE_SLUG') == "integrations"
102-
103106
- label: ":junit: Junit annotate"
104107
agents:
105108
# requires at least "bash", "curl" and "git"

.buildkite/pull-requests.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"^.github/ISSUE_TEMPLATE/",
2020
"^docs/",
2121
"^catalog-info.yaml$",
22+
"^CODE_OF_CONDUCT.md$",
2223
"^.buildkite/pipeline.schedule-daily.yml$",
2324
"^.buildkite/pipeline.schedule-weekly.yml$",
2425
"^.buildkite/pipeline.backport.yml$",

.buildkite/scripts/check_sources.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ set -euo pipefail
77
add_bin_path
88
with_mage
99

10+
echo "--- Run mage check"
1011
mage -v check
1112

13+
echo "--- Check if any files modified"
1214
check_git_diff
1315

16+
echo "--- Run elastic-package links"
1417
run_links_command=false
1518
if less_than=$(mage isElasticPackageDependencyLessThan 0.113.0) ; then
1619
# links command require at least v0.113.0

.buildkite/scripts/common.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,9 @@ with_mage() {
125125
create_bin_folder
126126
with_go
127127

128-
local install_packages=(
129-
"github.com/magefile/mage"
130-
"github.com/jstemmer/go-junit-report"
131-
"gotest.tools/gotestsum"
132-
)
133-
for pkg in "${install_packages[@]}"; do
134-
go install "${pkg}@latest"
135-
done
128+
# Install version from go.mod"
129+
go install "github.com/magefile/mage"
130+
136131
mage --version
137132
}
138133

@@ -768,7 +763,7 @@ is_pr_affected() {
768763
# Example:
769764
# https://buildkite.com/elastic/integrations/builds/25606
770765
# https://github.com/elastic/integrations/pull/13810
771-
if git diff --name-only "${commit_merge}" "${to}" | grep -E -v '^(packages/|\.github/(CODEOWNERS|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE|workflows/)|README\.md|docs/|catalog-info\.yaml|\.buildkite/(pull-requests\.json|pipeline\.schedule-daily\.yml|pipeline\.schedule-weekly\.yml|pipeline\.backport\.yml))' > /dev/null; then
766+
if git diff --name-only "${commit_merge}" "${to}" | grep -E -v '^(packages/|\.github/(CODEOWNERS|ISSUE_TEMPLATE|PULL_REQUEST_TEMPLATE|workflows/)|CODE_OF_CONDUCT\.md|README\.md|docs/|catalog-info\.yaml|\.buildkite/(pull-requests\.json|pipeline\.schedule-daily\.yml|pipeline\.schedule-weekly\.yml|pipeline\.backport\.yml))' > /dev/null; then
772767
echo "[${package}] PR is affected: found non-package files"
773768
return 0
774769
fi

.buildkite/scripts/run_sonar_scanner.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)