Skip to content
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

[Security Solution][Quality Gate Monitoring] Fixed override for monitoring pipeline #196841

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

dkirchan
Copy link
Contributor

@dkirchan dkirchan commented Oct 18, 2024

Summary

Instead of just quality gate for security, a monitoring pipeline has been introduced which acts like quality gate but is overriding the kibana image with the latest dev-devenv version.

This change addresses the changes needed for this new pipeline taking under consideration the environmental variable KIBANA_MKI_QUALITY_GATE_MONITORING which if present, it defines that we do run the set of tests for quality gate but with an override.

@dkirchan dkirchan added release_note:skip Skip the PR/issue when compiling release notes v9.0.0 Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.16.0 v8.17.0 labels Oct 18, 2024
@dkirchan dkirchan self-assigned this Oct 18, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@dkirchan dkirchan added the backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) label Oct 18, 2024
@dkirchan
Copy link
Contributor Author

/ci

Copy link
Member

@MadameSheema MadameSheema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To follow-up: How we manage the environment variables.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @dkirchan

@dkirchan dkirchan merged commit 6091542 into main Oct 18, 2024
56 checks passed
@dkirchan dkirchan deleted the security-monitoring-quality-gate-fix branch October 18, 2024 12:16
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.x

https://github.com/elastic/kibana/actions/runs/11403513616

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 18, 2024
…oring pipeline (elastic#196841)

## Summary

Instead of just quality gate for security, a monitoring pipeline has
been introduced which acts like quality gate but is overriding the
kibana image with the latest [dev-devenv
version](https://github.com/elastic/serverless-gitops/blob/79862d97b1b1d3a97c0d8e2091ea06b9aed43f0c/services/kibana/versions.yaml#L4).

This change addresses the changes needed for this new pipeline taking
under consideration the environmental variable
`KIBANA_MKI_QUALITY_GATE_MONITORING` which if present, it defines that
we do run the set of tests for quality gate but with an override.

(cherry picked from commit 6091542)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 196841

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 18, 2024
… monitoring pipeline (#196841) (#196861)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution][Quality Gate Monitoring] Fixed override for
monitoring pipeline
(#196841)](#196841)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"dkirchan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T12:16:10Z","message":"[Security
Solution][Quality Gate Monitoring] Fixed override for monitoring
pipeline (#196841)\n\n## Summary\r\n\r\nInstead of just quality gate for
security, a monitoring pipeline has\r\nbeen introduced which acts like
quality gate but is overriding the\r\nkibana image with the latest
[dev-devenv\r\nversion](https://github.com/elastic/serverless-gitops/blob/79862d97b1b1d3a97c0d8e2091ea06b9aed43f0c/services/kibana/versions.yaml#L4).\r\n\r\nThis
change addresses the changes needed for this new pipeline
taking\r\nunder consideration the environmental
variable\r\n`KIBANA_MKI_QUALITY_GATE_MONITORING` which if present, it
defines that\r\nwe do run the set of tests for quality gate but with an
override.","sha":"60915420114fe35db940df268660503c93adae52","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","backport:prev-minor","v8.16.0","v8.17.0"],"title":"[Security
Solution][Quality Gate Monitoring] Fixed override for monitoring
pipeline","number":196841,"url":"https://github.com/elastic/kibana/pull/196841","mergeCommit":{"message":"[Security
Solution][Quality Gate Monitoring] Fixed override for monitoring
pipeline (#196841)\n\n## Summary\r\n\r\nInstead of just quality gate for
security, a monitoring pipeline has\r\nbeen introduced which acts like
quality gate but is overriding the\r\nkibana image with the latest
[dev-devenv\r\nversion](https://github.com/elastic/serverless-gitops/blob/79862d97b1b1d3a97c0d8e2091ea06b9aed43f0c/services/kibana/versions.yaml#L4).\r\n\r\nThis
change addresses the changes needed for this new pipeline
taking\r\nunder consideration the environmental
variable\r\n`KIBANA_MKI_QUALITY_GATE_MONITORING` which if present, it
defines that\r\nwe do run the set of tests for quality gate but with an
override.","sha":"60915420114fe35db940df268660503c93adae52"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196841","number":196841,"mergeCommit":{"message":"[Security
Solution][Quality Gate Monitoring] Fixed override for monitoring
pipeline (#196841)\n\n## Summary\r\n\r\nInstead of just quality gate for
security, a monitoring pipeline has\r\nbeen introduced which acts like
quality gate but is overriding the\r\nkibana image with the latest
[dev-devenv\r\nversion](https://github.com/elastic/serverless-gitops/blob/79862d97b1b1d3a97c0d8e2091ea06b9aed43f0c/services/kibana/versions.yaml#L4).\r\n\r\nThis
change addresses the changes needed for this new pipeline
taking\r\nunder consideration the environmental
variable\r\n`KIBANA_MKI_QUALITY_GATE_MONITORING` which if present, it
defines that\r\nwe do run the set of tests for quality gate but with an
override.","sha":"60915420114fe35db940df268660503c93adae52"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: dkirchan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.16.0 v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants