[buildkite] Add new Buildkite pipelines to test packages with Serverless#8072
[buildkite] Add new Buildkite pipelines to test packages with Serverless#8072mrodm merged 143 commits intoelastic:mainfrom
Conversation
7733215 to
43d279d
Compare
43d279d to
554d5a0
Compare
💔 Tests Failed
Expand to view the summary
Build stats
Test stats 🧪
Test errors
Expand to view the tests failures
|
3469da8 to
ce9e0f1
Compare
9f35c13 to
e9af47e
Compare
🌐 Coverage report
|
| "pipelineSlug": "integrations", | ||
| "allow_org_users": true, | ||
| "allowed_repo_permissions": ["admin", "write"], | ||
| "allowed_list": ["dependabot[bot]", "mergify[bot]"], |
There was a problem hiding this comment.
Allow dependabot PRs to run buildkite pull requests.
|
|
||
| echo "Checking gsutil command..." | ||
| if ! command -v gsutil &> /dev/null ; then | ||
| echo "⚠️ gsutil is not installed" |
There was a problem hiding this comment.
Probably we can add this message to the buildkite annotation, @mrodm WDYT?
There was a problem hiding this comment.
I prefer just to keep it in the output. I think there is no need to add more information in the annotation for this.
| fi | ||
|
|
||
| if [ $any_package_failing -eq 1 ] ; then | ||
| echo "These packages have failed:" |
There was a problem hiding this comment.
Probably we can add this message to the buildkite annotation, @mrodm WDYT?
There was a problem hiding this comment.
Failed packages are already in one annotation. This is to be also in the log output.
.buildkite/scripts/common.sh
Outdated
| } | ||
|
|
||
| is_pr() { | ||
| if [ "${BUILDKITE_PULL_REQUEST}" == "false" ]; then |
There was a problem hiding this comment.
| if [ "${BUILDKITE_PULL_REQUEST}" == "false" ]; then | |
| if [[ "${BUILDKITE_PULL_REQUEST}" == "false" && "${BUILDKITE_TAG}" == "" ]]; then |
There was a problem hiding this comment.
This repository is configured to not run builds when pushing tags (catalog.yml) build_tags: false
But to be sure I'll add this (with OR condition):
- if it is not a PR
- or, it is a tag
if [[ "${BUILDKITE_PULL_REQUEST}" == "false" || "${BUILDKITE_TAG}" == "" ]]; then
catalog-info.yaml
Outdated
| # env: | ||
| # ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' | ||
| # # SLACK_NOTIFICATIONS_CHANNEL: '#beats-build' as the current jenkins schedule-daily? | ||
| # SLACK_NOTIFICATIONS_CHANNEL: '#ingest-test-notifications' #TODO: will be changed before GO-PROD | ||
| # SLACK_NOTIFICATIONS_ALL_BRANCHES: 'true' | ||
| # SLACK_NOTIFICATIONS_ON_SUCCESS: 'true' |
There was a problem hiding this comment.
I think we can enable it and use out test channel for tests: #ingest-test-notifications
WDYT?
There was a problem hiding this comment.
Ok! I'll uncomment those lines
Co-authored-by: sharbuz <87968844+sharbuz@users.noreply.github.com>
…ests)"" This reverts commit 94fa971.
|
Merging since failures in the Jenkins CI job are unrelated to this change. |
Proposed commit message
Add new pipelines to test packages in serverless.
Example of output:
This PR adds a schedule-daily and a integrations-serverless pipelines to test packages with Serverless projects. Tests performed in this script/pipeline:
This pipeline is different from the one running in Pull Requests:
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues