[CI] Add support to test packages with basic subscription#13377
[CI] Add support to test packages with basic subscription#13377mrodm merged 54 commits intoelastic:mainfrom
Conversation
Verbose mode allows us to show the full description of the issue that it is going to be created or updated.
🚀 Benchmarks reportTo see the full report comment with |
d87ae20 to
fcfc90a
Compare
| {{ if ne .stackVersion "" -}} | ||
| - Stack version: {{ .stackVersion }} | ||
| {{ else -}} | ||
| - Stack version: Same as in Pull Request builds |
There was a problem hiding this comment.
This value could be changed in the follow-up PR to include LogsDB too.
| if ! reason=$(mage -d "${WORKSPACE}" -w . isSubscriptionCompatible) ; then | ||
| return 1 | ||
| fi | ||
| echo "${reason}" | ||
| return 0 |
There was a problem hiding this comment.
It would return failure if there is any failure (e.g. failed to read YAML file), and success in any other case (zero value).
When it returns success, the message echoed will show whether or not it is compatible (true or false).
| if ! compatible=$(is_subscription_compatible); then | ||
| echo "${FATAL_ERROR}" | ||
| return 1 | ||
| fi | ||
| if [[ "${compatible}" == "false" ]]; then | ||
| echo "[${package}] PR is not affected: subscription not compatible with ${ELASTIC_SUBSCRIPTION}" | ||
| return 1 | ||
| fi |
There was a problem hiding this comment.
For both cases, this function will return failure (code 1). Depending on the message echoed, the caller method should take one or other action.
💛 Build succeeded, but was flaky
Failed CI StepsHistory
cc @mrodm |
To be added in elastic#13484
|





Proposed commit message
Update CI scripts and tools (
ReportFailedTests) to allow run Elastic stack with other subscriptions.Currently, it is just supported "basic" and "trial".
Added new mage targets to get the subscription set in the package:
Author's Checklist
go.mod,go.sumand.buildkite/scripts/common.sh.How to test this PR locally
Related issues