forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into feature/ci-runbld…
…-refactor * upstream/master: [Ingest manager] Copy Action store on upgrade (elastic#21298) [CI] Pipeline 2.0 for monorepos (elastic#20104) Stop running agent container as root by default (elastic#21213) Stop running auditbeat container as root by default (elastic#21202) Fix autodiscover flaky tests (elastic#21242) [Ingest Manager] Enabled dev builds (elastic#21241) Fix librpm installation in auditbeat build (elastic#21239) Fix prometheus default config (elastic#21253) Fix dev guide test command (elastic#21254) Move aws lambda metricset to GA (elastic#21255) [Docs] Typo in table syntax (elastic#20227) [ECS] Adds related.hosts to capture all hostnames and host identifiers on an event. (elastic#21160)
- Loading branch information
Showing
173 changed files
with
10,687 additions
and
2,884 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import yaml | ||
|
||
if __name__ == "__main__": | ||
|
||
print("| Beat | Stage | Command | MODULE | Platforms | When |") | ||
print("|-------|--------|----------|---------|------------|------|") | ||
for root, dirs, files in os.walk("."): | ||
dirs.sort() | ||
for file in files: | ||
if file.endswith("Jenkinsfile.yml") and root != ".": | ||
with open(os.path.join(root, file), 'r') as f: | ||
doc = yaml.load(f, Loader=yaml.FullLoader) | ||
module = root.replace(".{}".format(os.sep), '') | ||
platforms = [doc["platform"]] | ||
when = "" | ||
if "branches" in doc["when"]: | ||
when = f"{when}/:palm_tree:" | ||
if "changeset" in doc["when"]: | ||
when = f"{when}/:file_folder:" | ||
if "comments" in doc["when"]: | ||
when = f"{when}/:speech_balloon:" | ||
if "labels" in doc["when"]: | ||
when = f"{when}/:label:" | ||
if "parameters" in doc["when"]: | ||
when = f"{when}/:smiley:" | ||
if "tags" in doc["when"]: | ||
when = f"{when}/:taco:" | ||
for stage in doc["stages"]: | ||
withModule = False | ||
if "make" in doc["stages"][stage]: | ||
command = doc["stages"][stage]["make"] | ||
if "mage" in doc["stages"][stage]: | ||
command = doc["stages"][stage]["mage"] | ||
if "platforms" in doc["stages"][stage]: | ||
platforms = doc["stages"][stage]["platforms"] | ||
if "withModule" in doc["stages"][stage]: | ||
withModule = doc["stages"][stage]["withModule"] | ||
if "when" in doc["stages"][stage]: | ||
when = f"{when}/:star:" | ||
print("| {} | {} | `{}` | {} | `{}` | {} |".format( | ||
module, stage, command, withModule, platforms, when)) | ||
|
||
print("> :palm_tree: -> Git Branch based") | ||
print("> :label: -> GitHub Pull Request Label based") | ||
print("> :file_folder: -> Changeset based") | ||
print("> :speech_balloon: -> GitHub Pull Request comment based") | ||
print("> :taco: -> Git tag based") | ||
print("> :smiley: -> Manual UI interaction based") | ||
print("> :star: -> More specific cases based") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Given the go module it will list all the dependencies that will be later on | ||
# used by the CI to enable/disable specific stages as long as the changeset | ||
# matches any of those patterns. | ||
# | ||
|
||
GO_VERSION=${GO_VERSION:?"GO_VERSION environment variable is not set"} | ||
BEATS=${1:?"parameter missing."} | ||
eval "$(gvm "${GO_VERSION}")" | ||
|
||
go list -deps ./"${BEATS}" \ | ||
| grep 'elastic/beats' \ | ||
| sort \ | ||
| sed -e "s#github.com/elastic/beats/v7/##g" \ | ||
| awk '{print "^" $1 "/.*"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
|
||
.ci/scripts/install-go.sh | ||
.ci/scripts/install-docker-compose.sh | ||
.ci/scripts/install-terraform.sh | ||
make mage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.