Skip to content

Commit dbbbc00

Browse files
committed
meging with main and fixing diffs
Signed-off-by: Andreas Gkizas <[email protected]>
2 parents 86367b7 + 7801e00 commit dbbbc00

File tree

1,395 files changed

+120887
-4399
lines changed

Some content is hidden

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

1,395 files changed

+120887
-4399
lines changed

.buildkite/hooks/pre-command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if [ -n "${ELASTIC_PACKAGE_LINKS_FILE_PATH+x}" ]; then
7373
export ELASTIC_PACKAGE_LINKS_FILE_PATH=${BASE_DIR}/${ELASTIC_PACKAGE_LINKS_FILE_PATH}
7474
fi
7575

76-
if [[ "${BUILDKITE_PIPELINE_SLUG}" == "integrations" && "${BUILDKITE_STEP_KEY}" == "reference-target-branch" ]]; then
76+
if [[ ( "${BUILDKITE_PIPELINE_SLUG}" =~ ^(integrations|integrations-test-stack)$ ) && "${BUILDKITE_STEP_KEY}" == "reference-target-branch" ]]; then
7777
# Get the commit from target branch in the first step (reference-target-branch).
7878
# This step MUST be the first one and not run in parallel with any other step to ensure
7979
# that there is just one value for this variable
@@ -91,7 +91,7 @@ if [[ "${BUILDKITE_PIPELINE_SLUG}" == "integrations-publish" ]]; then
9191
fi
9292
fi
9393

94-
if [[ "${BUILDKITE_PIPELINE_SLUG}" == "integrations" ]]; then
94+
if [[ "${BUILDKITE_PIPELINE_SLUG}" =~ ^(integrations|integrations-test-stack)$ ]]; then
9595
if [[ "${BUILDKITE_STEP_KEY}" == "test-integrations" ]]; then
9696
BUILDKITE_API_TOKEN=$(retry 5 vault kv get -field buildkite_token "${BUILDKITE_API_TOKEN_PATH}")
9797
export BUILDKITE_API_TOKEN

.buildkite/hooks/pre-exit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ source .buildkite/scripts/common.sh
44

55
set -euo pipefail
66

7-
if [[ "$BUILDKITE_PIPELINE_SLUG" == "integrations" ]]; then
7+
if [[ "$BUILDKITE_PIPELINE_SLUG" =~ ^(integrations|integrations-test-stack)$ ]]; then
88
# FIXME: update condition depending on the pipeline steps triggered
99
if [[ "$BUILDKITE_STEP_KEY" =~ ^test-integrations- ]]; then
1010
unset ELASTIC_PACKAGE_AWS_ACCESS_KEY

.buildkite/pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ steps:
7070
image: "${LINUX_AGENT_IMAGE}"
7171
cpu: "8"
7272
memory: "4G"
73+
if: |
74+
build.env('BUILDKITE_PULL_REQUEST') != "false" &&
75+
build.env('BUILDKITE_PIPELINE_SLUG') == "integrations"
7376
7477
- label: ":sonarqube: Continuous Code Inspection"
7578
soft_fail: true # FIXME: Coverage is failing, remove this after solving the issue
@@ -83,6 +86,8 @@ steps:
8386
command: ".buildkite/scripts/run_sonar_scanner.sh"
8487
artifact_paths:
8588
- build/test-coverage/coverage_merged.xml
89+
if: |
90+
build.env('BUILDKITE_PIPELINE_SLUG') == "integrations"
8691
8792
- label: ":junit: Junit annotate"
8893
plugins:
@@ -108,4 +113,5 @@ steps:
108113
# run this step when if it is triggered by the daily job
109114
if: |
110115
build.source == "trigger_job" &&
116+
build.env('BUILDKITE_PIPELINE_SLUG') == "integrations" &&
111117
build.env('BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG') == "integrations-schedule-daily"

.buildkite/pull-requests.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@
1616
"skip_ci_on_only_changed": ["^.github/", "^docs/"],
1717
"always_require_ci_on_changed": []
1818
},
19+
{
20+
"enabled": true,
21+
"pipelineSlug": "integrations-test-stack",
22+
"allow_org_users": true,
23+
"allowed_repo_permissions": ["admin", "write"],
24+
"allowed_list": [],
25+
"set_commit_status": true,
26+
"build_on_commit": false,
27+
"build_on_comment": true,
28+
"trigger_comment_regex": "^/test stack (7|8|9)\\.\\d+\\.\\d+(-SNAPSHOT)?$",
29+
"always_trigger_comment_regex": "^/test stack (7|8|9)\\.\\d+\\.\\d+(-SNAPSHOT)?$",
30+
"skip_ci_labels": [],
31+
"skip_target_branches": [],
32+
"skip_ci_on_only_changed": [],
33+
"always_require_ci_on_changed": []
34+
},
1935
{
2036
"enabled": false,
2137
"pipelineSlug": "integrations-schedule-daily",

.buildkite/scripts/trigger_integrations_in_parallel.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ to="$(get_to_changeset)"
2929

3030
echo "[DEBUG] Checking with commits: from: '${from}' to: '${to}'"
3131

32+
# This variable does not exist in builds triggered automatically
33+
GITHUB_PR_TRIGGER_COMMENT="${GITHUB_PR_TRIGGER_COMMENT:-""}"
34+
35+
if [[ "${BUILDKITE_PIPELINE_SLUG}" == "integrations-test-stack" && "${GITHUB_PR_TRIGGER_COMMENT}" =~ ^/test\ stack ]]; then
36+
echo "--- Stack version set from Github comment"
37+
STACK_VERSION=$(echo "$GITHUB_PR_TRIGGER_COMMENT" | cut -d " " -f 3)
38+
export STACK_VERSION
39+
echo "Use Elastic stack version from Github comment: ${STACK_VERSION}"
40+
fi
41+
3242
packages_to_test=0
3343

3444
for package in ${PACKAGE_LIST}; do

.github/CODEOWNERS

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,19 @@
460460
/packages/cisco_meraki_metrics @elastic/obs-infraobs-integrations
461461
/packages/panw_metrics @elastic/obs-infraobs-integrations
462462
/packages/o365_metrics @elastic/obs-infraobs-integrations @elastic/security-service-integrations
463-
/packages/o365_metrics/data_stream/active_users @elastic/obs-infraobs-integrations
463+
/packages/o365_metrics/data_stream/active_users_services_user_counts @elastic/obs-infraobs-integrations
464464
/packages/o365_metrics/data_stream/groups_activity_group_detail @elastic/security-service-integrations
465-
/packages/o365_metrics/data_stream/mailbox_usage_detail @elastic/obs-infraobs-integrations
466-
/packages/o365_metrics/data_stream/mailbox_usage_quota_status @elastic/obs-infraobs-integrations
467-
/packages/o365_metrics/data_stream/onedrive_usage @elastic/obs-infraobs-integrations
465+
/packages/o365_metrics/data_stream/onedrive_usage_account_counts @elastic/obs-infraobs-integrations
466+
/packages/o365_metrics/data_stream/onedrive_usage_file_counts @elastic/obs-infraobs-integrations
467+
/packages/o365_metrics/data_stream/onedrive_usage_storage @elastic/obs-infraobs-integrations
468468
/packages/o365_metrics/data_stream/onedrive_usage_account_detail @elastic/security-service-integrations
469469
/packages/o365_metrics/data_stream/outlook_activity @elastic/obs-infraobs-integrations
470+
/packages/o365_metrics/data_stream/outlook_app_usage @elastic/obs-infraobs-integrations
471+
/packages/o365_metrics/data_stream/sharepoint_site_usage_storage @elastic/obs-infraobs-integrations
472+
/packages/o365_metrics/data_stream/sharepoint_site_usage_detail @elastic/obs-infraobs-integrations
473+
/packages/o365_metrics/data_stream/mailbox_usage_detail @elastic/obs-infraobs-integrations
474+
/packages/o365_metrics/data_stream/mailbox_usage_quota_status @elastic/obs-infraobs-integrations
470475
/packages/o365_metrics/data_stream/outlook_app_usage_version_counts @elastic/obs-infraobs-integrations
471-
/packages/o365_metrics/data_stream/sharepoint_site_usage @elastic/obs-infraobs-integrations
472476
/packages/o365_metrics/data_stream/teams_device_usage_user_counts @elastic/obs-infraobs-integrations
473477
/packages/o365_metrics/data_stream/teams_user_activity_user_counts @elastic/obs-infraobs-integrations
474478
/packages/o365_metrics/data_stream/teams_user_activity_user_detail @elastic/security-service-integrations

.github/ISSUE_TEMPLATE/integration_bug.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ body:
5353
- BBOT (Bighuge BLS OSINT Tool) [bbot]
5454
- Network Beaconing Identification [beaconing]
5555
- Beat [beat]
56+
- BeyondInsight and Password Safe [beyondinsight_password_safe]
5657
- BitDefender [bitdefender]
5758
- Bitwarden [bitwarden]
5859
- blacklens.io [blacklens]

.github/ISSUE_TEMPLATE/integration_feature_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ body:
5353
- BBOT (Bighuge BLS OSINT Tool) [bbot]
5454
- Network Beaconing Identification [beaconing]
5555
- Beat [beat]
56+
- BeyondInsight and Password Safe [beyondinsight_password_safe]
5657
- BitDefender [bitdefender]
5758
- Bitwarden [bitwarden]
5859
- blacklens.io [blacklens]

catalog-info.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,52 @@ spec:
6464
everyone:
6565
access_level: READ_ONLY
6666

67+
---
68+
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
69+
apiVersion: backstage.io/v1alpha1
70+
kind: Resource
71+
metadata:
72+
name: buildkite-pipeline-integrations-test-stack
73+
description: 'Pipeline to test packages with a given Elastic stack version'
74+
links:
75+
- title: Pipeline
76+
url: https://buildkite.com/elastic/integrations-test-stack
77+
78+
spec:
79+
type: buildkite-pipeline
80+
owner: group:ingest-fp
81+
system: platform-ingest
82+
implementation:
83+
apiVersion: buildkite.elastic.dev/v1
84+
kind: Pipeline
85+
metadata:
86+
name: integrations-test-stack
87+
description: 'Pipeline to test packages with a given Elastic stack version'
88+
spec:
89+
branch_configuration: "main backport-*"
90+
pipeline_file: ".buildkite/pipeline.yml"
91+
provider_settings:
92+
build_pull_request_forks: false
93+
build_pull_requests: true # requires filter_enabled and filter_condition settings as below when used with buildkite-pr-bot
94+
publish_commit_status: true
95+
build_tags: false
96+
build_branches: false
97+
filter_enabled: true
98+
filter_condition: >-
99+
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null && build.source == 'api')
100+
repository: elastic/integrations
101+
cancel_intermediate_builds: true
102+
cancel_intermediate_builds_branch_filter: '!main !backport-*'
103+
skip_intermediate_builds: true
104+
skip_intermediate_builds_branch_filter: '!main !backport-*'
105+
env:
106+
ELASTIC_PR_COMMENTS_ENABLED: 'true'
107+
teams:
108+
ingest-fp:
109+
access_level: MANAGE_BUILD_AND_READ
110+
everyone:
111+
access_level: READ_ONLY
112+
67113
---
68114
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json
69115
apiVersion: backstage.io/v1alpha1

dev/testsreporter/_static/description.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{{ .summary }}
2-
{{ if ne .failure "" -}}
2+
{{ if and (ne .failure nil) (ne .failure "") -}}
33
Failure:
44
```
55
{{ .failure }}
66
```
77
{{- end }}
8-
{{- if ne .error "" -}}
8+
{{- if and (ne .error nil) (ne .error "") -}}
99
Error:
1010
```
1111
{{ .error }}

0 commit comments

Comments
 (0)