-
Notifications
You must be signed in to change notification settings - Fork 90
Add JSON patch to remove SLO assets for spec versions less than 3.4.0 #884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mrodm
merged 14 commits into
elastic:main
from
mrodm:patch_remove_slo_folder_content_packages
Mar 24, 2025
Merged
Changes from 4 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d7b0288
Add JSON patch to remove slo folder in content packages
mrodm b225c40
Add slo assets into good_content test package
mrodm b01367e
Add changelog entry
mrodm 3161ea5
Remove security capability
mrodm 72fa169
Run kibana validation rules in content packages too
mrodm dd33139
Add another changelog entry
mrodm 6250bd1
Add basic content package for compliance tests
mrodm c8d3ffc
Add missing attribute in dashboard
mrodm 833b6d8
Include compliance test for 3.4.0 with current latest snapshot
mrodm 432bfa3
Set spec version 3.3.0 for basic_content
mrodm d03827b
Set 3.3.1 spec version for basic_content
mrodm 335b842
Add new compliance checks for SLO and dashboards
mrodm 68f0ca3
Refactor kibana functions
mrodm 5b59414
Remove compliance test for 9.1.0-SNAPSHOT and spec 3.4.0
mrodm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
29 changes: 29 additions & 0 deletions
29
test/packages/good_content/kibana/slo/good_content-slo-abc-1.json
This file contains hidden or 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,29 @@ | ||
| { | ||
| "attributes": { | ||
| "name": "Admin Console Availability", | ||
| "description": "", | ||
| "indicator": { | ||
| "type": "sli.kql.custom", | ||
| "params": { | ||
| "index": "kbn-data-forge-fake_stack.admin-console-*", | ||
| "filter": "", | ||
| "good": "http.response.status_code < 500", | ||
| "total": "http.response.status_code : *", | ||
| "timestampField": "@timestamp" | ||
| } | ||
| }, | ||
| "budgetingMethod": "occurrences", | ||
| "timeWindow": { | ||
| "duration": "7d", | ||
| "type": "rolling" | ||
| }, | ||
| "objective": { | ||
| "target": 0.99 | ||
| }, | ||
| "tags": [], | ||
| "groupBy": "url.domain" | ||
| }, | ||
| "id": "good_content-slo-abc-1", | ||
| "references": [], | ||
| "type": "slo" | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| format_version: 3.3.1 | ||
| format_version: 3.4.0 | ||
| name: good_content | ||
| title: Good content package | ||
| description: > | ||
|
|
||
This file contains hidden or 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,3 @@ | ||
| errors: | ||
| exclude_checks: | ||
| - PSR00001 # Allow to use unreleased features in GA package. | ||
|
Comment on lines
+1
to
+3
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added since |
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be updated the spec version for the compliance test here ?
package-spec/compliance/features/basic.feature
Lines 16 to 19 in 4366bf7
That test is running successfully even if that spec version is not updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the package has SLOs it should be updated, yes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that spec version is updated to be
@3.4.0, I guess it should be needed to add a new compliance test for3.4.0.Or should it be updated the one with stack
9.1.0-SNAPSHOTto3.4.0? @jsorianopackage-spec/.buildkite/pipeline.trigger.compliance.tests.sh
Line 31 in 4366bf7
Would it be better to create a new content package without SLO , so it can be tested that scenario with previous spec versions
3.3.0?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a new
basic_contenttest package , to be able to keep testing content packages with spec version 3.3.0 (and previous Elastic stacks). Added in 6250bd1