Skip to content

Commit

Permalink
[CI] Explicit linting stages for OSS and x-pack (#23695)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Jan 27, 2021
1 parent f4416cb commit b51d36a
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 231 deletions.
31 changes: 2 additions & 29 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ when:
branches: true ## for all the branches
changeset: ## when PR contains any of those entries in the changeset
- "^auditbeat/.*"
- "^x-pack/auditbeat/.*" ## when changes in the x-pack/auditbeat
- "@ci" ## special token regarding the changeset for the ci
- "@oss" ## special token regarding the changeset for the oss
comments: ## when PR comment contains any of those entries
Expand All @@ -18,6 +17,8 @@ stages:
make: |
make -C auditbeat check;
make -C auditbeat update;
make -C x-pack/auditbeat check;
make -C x-pack/auditbeat update;
make check-no-changes;
arm:
mage: "mage build unitTest"
Expand All @@ -34,16 +35,8 @@ stages:
tags: true ## for all the tags
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
crosscompile:
make: "make -C auditbeat crosscompile"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -63,42 +56,22 @@ stages:
- "windows-2019"
#- "windows-7-32-bit" https://github.com/elastic/beats/issues/19831
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19799
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
#windows-7: See https://github.com/elastic/beats/issues/19831
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
Expand Down
27 changes: 2 additions & 25 deletions filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ when:
branches: true ## for all the branches
changeset: ## when PR contains any of those entries in the changeset
- "^filebeat/.*"
- "^x-pack/filebeat/.*" ## when changes in the x-pack/filebeat
- "@ci" ## special token regarding the changeset for the ci
- "@oss" ## special token regarding the changeset for the oss
comments: ## when PR comment contains any of those entries
Expand All @@ -18,6 +17,8 @@ stages:
make: |
make -C filebeat check;
make -C filebeat update;
make -C x-pack/filebeat check;
make -C x-pack/filebeat update;
make check-no-changes;
arm:
mage: "mage build unitTest"
Expand All @@ -35,10 +36,6 @@ stages:
build:
mage: "mage build test"
withModule: true ## run the ITs only if the changeset affects a specific module.
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -57,34 +54,18 @@ stages:
platforms: ## override default labels in this specific stage.
- "windows-2019"
#- "windows-2008-r2" https://github.com/elastic/beats/issues/19795
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
#windows-7: See https://github.com/elastic/beats/issues/22317
# mage: "mage build unitTest"
# platforms: ## override default labels in this specific stage.
Expand All @@ -100,7 +81,3 @@ stages:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-7-32-bit"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
39 changes: 2 additions & 37 deletions heartbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ when:
branches: true ## for all the branches
changeset: ## when PR contains any of those entries in the changeset
- "^heartbeat/.*"
- "^x-pack/heartbeat/.*" ## when changes in the x-pack/heartbeat
- "@ci" ## special token regarding the changeset for the ci
- "@oss" ## special token regarding the changeset for the oss
comments: ## when PR comment contains any of those entries
Expand All @@ -18,6 +17,8 @@ stages:
make: |
make -C heartbeat check;
make -C heartbeat update;
make -C x-pack/heartbeat check;
make -C x-pack/heartbeat update;
make check-no-changes;
arm:
mage: "mage build unitTest"
Expand All @@ -34,10 +35,6 @@ stages:
tags: true ## for all the tags
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
macos:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand All @@ -55,63 +52,31 @@ stages:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2019"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2016:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2016"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2012:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2012-r2"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-10:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-10"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-2008:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-2008-r2"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-8:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-8"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-7:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-7"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
windows-7-32:
mage: "mage build unitTest"
platforms: ## override default labels in this specific stage.
- "windows-7-32-bit"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
7 changes: 2 additions & 5 deletions journalbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ when:
branches: true ## for all the branches
changeset: ## when PR contains any of those entries in the changeset
- "^journalbeat/.*"
- "^x-pack/journalbeat/.*" ## when changes in the x-pack/journalbeat
- "@ci" ## special token regarding the changeset for the ci
- "@oss" ## special token regarding the changeset for the oss
comments: ## when PR comment contains any of those entries
Expand All @@ -18,6 +17,8 @@ stages:
make: |
make -C journalbeat check;
make -C journalbeat update;
make -C x-pack/journalbeat check;
make -C x-pack/journalbeat update;
make check-no-changes;
arm:
mage: "mage build unitTest"
Expand All @@ -34,7 +35,3 @@ stages:
tags: true ## for all the tags
unitTest:
mage: "mage build unitTest"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
15 changes: 2 additions & 13 deletions libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
when:
branches: true ## for all the branches
changeset: ## when PR contains any of those entries in the changeset
- "^x-pack/libbeat/.*" ## when changes in the x-pack/libbeat
- "@ci" ## special token regarding the changeset for the ci
- "@oss" ## special token regarding the changeset for the oss
comments: ## when PR comment contains any of those entries
Expand All @@ -17,6 +16,8 @@ stages:
make: |
make -C libbeat check;
make -C libbeat update;
make -C x-pack/libbeat check;
make -C x-pack/libbeat update;
make check-no-changes;
arm:
mage: "mage build unitTest"
Expand All @@ -31,19 +32,7 @@ stages:
- "armTest"
build:
mage: "mage build test"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
crosscompile:
make: "make -C libbeat crosscompile"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
stress-tests:
make: "make STRESS_TEST_OPTIONS='-timeout=20m -race -v -parallel 1' -C libbeat stress-tests"
when: ## Override the top-level when.
not_changeset_full_match: "^x-pack/.*" ## Disable the stage if ONLY changes for the x-pack
branches: true ## for all the branches
tags: true ## for all the tags
Loading

0 comments on commit b51d36a

Please sign in to comment.