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] - fix Cypress not running locally #193622

Merged

Conversation

PhilippeOberti
Copy link
Contributor

@PhilippeOberti PhilippeOberti commented Sep 20, 2024

Summary

This PR fixes Cypress not working when ran locally (and the error seems to also happen on Buildkite).

What happened

During on-week back in mid August, the Threat Intelligence Cypress tests were moved to the security_solution_cypress folder and all the tests were enabled again. The PR was only merged 3 weeks later, on the 10th of September. In between, another PR was merged, then reverted then merged again.

I'm not sure exactly how these PRs impacted each other...

This PR fixes the issue with Cypress not working while keeping the Threat Intelligence Cypress tests (and all the other ones obviously) working! 😄 Thank you @michaelolo24 for providing the code to fix the issue!

@PhilippeOberti PhilippeOberti requested a review from a team as a code owner September 20, 2024 17:24
@PhilippeOberti PhilippeOberti added Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Sep 20, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-threat-hunting (Team:Threat Hunting)

@elasticmachine
Copy link
Contributor

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

@PhilippeOberti PhilippeOberti added backport release_note:skip Skip the PR/issue when compiling release notes v9.0.0 v8.16.0 labels Sep 20, 2024
Copy link
Contributor

@michaelolo24 michaelolo24 left a comment

Choose a reason for hiding this comment

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

Thanks for getting this workaround in!

@PhilippeOberti PhilippeOberti force-pushed the fix-security-solution-cypress branch from ce9caa7 to 6a01a36 Compare September 20, 2024 19:12
@PhilippeOberti PhilippeOberti force-pushed the fix-security-solution-cypress branch from 6a01a36 to 8b03a36 Compare September 20, 2024 20:37
Copy link

@vgomez-el vgomez-el left a comment

Choose a reason for hiding this comment

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

LGTM! thanks @PhilippeOberti and @michaelolo24 for the fix!

@michaelolo24
Copy link
Contributor

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@PhilippeOberti PhilippeOberti merged commit f6c5dd9 into elastic:main Sep 23, 2024
38 checks passed
@PhilippeOberti PhilippeOberti deleted the fix-security-solution-cypress branch September 23, 2024 19:22
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 23, 2024
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Sep 23, 2024
…#193788)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security Solution] - fix Cypress not running locally
(#193622)](#193622)

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

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

<!--BACKPORT [{"author":{"name":"Philippe
Oberti","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-23T19:22:11Z","message":"[Security
Solution] - fix Cypress not running locally
(#193622)","sha":"f6c5dd99c6d67e0ba7846e262a1ef401d3e37f03","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["backport","release_note:skip","v9.0.0","Team:Threat
Hunting","Team: SecuritySolution","v8.16.0"],"title":"[Security
Solution] - fix Cypress not running
locally","number":193622,"url":"https://github.com/elastic/kibana/pull/193622","mergeCommit":{"message":"[Security
Solution] - fix Cypress not running locally
(#193622)","sha":"f6c5dd99c6d67e0ba7846e262a1ef401d3e37f03"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193622","number":193622,"mergeCommit":{"message":"[Security
Solution] - fix Cypress not running locally
(#193622)","sha":"f6c5dd99c6d67e0ba7846e262a1ef401d3e37f03"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Philippe Oberti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants