Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[CI] Adding continuous testing for ECS dynamic templates #97901

Merged
merged 19 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .buildkite/pipelines/ecs-dynamic-template-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ steps:
image: family/elasticsearch-ubuntu-2004
diskSizeGb: 350
machineType: custom-32-98304
notify:
- slack: "#es-delivery"
if: build.state == "failed"
- email: "logs-plus@elastic.co"
if: build.state == "failed"
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,6 @@
},
{
"ecs_path_match_keyword_and_match_only_text": {
"mapping": {
"fields": {
"text": {
"type": "match_only_text"
}
},
"type": "keyword"
},
"path_match": [
"*file.path",
"*file.target_path",
"*os.full",
"user_agent.original"
]
}
},
{
"ecs_match_keyword_and_match_only_text": {
"mapping": {
"fields": {
"text": {
Expand All @@ -114,7 +96,13 @@
"*.executable",
"*.name",
"*.working_directory",
"*.full_name"
"*.full_name",
"*file.path",
"*file.target_path",
"*os.full",
"email.subject",
"vulnerability.description",
"user_agent.original"
]
}
},
Expand Down
15 changes: 14 additions & 1 deletion x-pack/plugin/stack/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-java-rest-test'

esplugin {
name 'x-pack-stack'
Expand All @@ -8,13 +9,25 @@ esplugin {
hasNativeController false
requiresKeystore true
}

base {
archivesName = 'x-pack-stack'
}

dependencies {
compileOnly project(path: xpackModule('core'))
testImplementation(testArtifact(project(xpackModule('core'))))
javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
javaRestTestImplementation project(path: ':x-pack:plugin:stack')
clusterModules project(':modules:mapper-extras')
clusterModules project(xpackModule('wildcard'))
}

// These tests are only invoked direclty as part of a dedicated build job
tasks.named('javaRestTest').configure {
onlyIf("E2E test task must be invoked directly") {
gradle.startParameter.getTaskNames().contains(this.path) ||
(gradle.startParameter.getTaskNames().contains(this.name) && gradle.startParameter.currentDir == project.projectDir)
}
}

addQaCheckDependencies(project)
Loading