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][Endpoint][Cypress] Update endpoint cypress config to include videos #170499

Merged

Conversation

ashokaditya
Copy link
Member

@ashokaditya ashokaditya commented Nov 3, 2023

Summary

Adds videos to failed cypress tests for debugging.

This is to help debugging test failures and flakiness
@ashokaditya ashokaditya added release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution OLM Sprint v8.11.0 v8.12.0 labels Nov 3, 2023
@ashokaditya ashokaditya self-assigned this Nov 3, 2023
@ashokaditya ashokaditya requested a review from a team as a code owner November 3, 2023 10:10
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

Copy link
Contributor

@tomsonpl tomsonpl 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 doing this Ash 👍
Just few hints from my side (unless you just wanted to enable this locally) :)

  • would be nice to also include these videos on CI, therefore we need to upload artifacts
  • limit the compression so we do not give too hard time to machine's CPU
  • filter out the videos of successful specs, therefore just save the failed ones

review changed @tomsonpl
Copy link
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

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

tested it only locally, but works great, thank you for adding this! 🙇

now let's hope for a flaky test in the PR to see it on the CI 🤞

@ashokaditya ashokaditya requested a review from a team as a code owner November 6, 2023 09:34
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 472 473 +1

Total ESLint disabled count

id before after diff
securitySolution 540 541 +1

History

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

cc @ashokaditya

Copy link
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

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

Cool, thanks for doing this :) hopefully will help us debug :)

@ashokaditya ashokaditya merged commit 1c25217 into elastic:main Nov 6, 2023
27 checks passed
@ashokaditya ashokaditya deleted the task/dw-add-videos-failed-cypress-tests branch November 6, 2023 16:04
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.11 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.11:
- [EDR Workflows] Verify flaky osquery tests (#169749)

Manual backport

To create the backport manually run:

node scripts/backport --pr 170499

Questions ?

Please refer to the Backport tool documentation

ashokaditya added a commit to ashokaditya/kibana that referenced this pull request Nov 8, 2023
… to include videos (elastic#170499)

## Summary

Adds videos to failed cypress tests for debugging.

(cherry picked from commit 1c25217)

# Conflicts:
#	.buildkite/scripts/lifecycle/post_command.sh
#	x-pack/plugins/security_solution/public/management/cypress/cypress_base.config.ts
@ashokaditya
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.11

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

Questions ?

Please refer to the Backport tool documentation

ashokaditya added a commit that referenced this pull request Nov 14, 2023
… config to include videos (#170499) (#170841)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[Security Solution][Endpoint][Cypress] Update endpoint cypress config
to include videos
(#170499)](#170499)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT
[{"author":{"name":"Ash","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-06T16:04:42Z","message":"[Security
Solution][Endpoint][Cypress] Update endpoint cypress config to include
videos (#170499)\n\n## Summary\r\n\r\nAdds videos to failed cypress
tests for
debugging.","sha":"1c2521705a1ece1ebe87740a4c99c27b254630f9","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend
Workflows","OLM
Sprint","v8.11.0","v8.12.0"],"number":170499,"url":"https://github.com/elastic/kibana/pull/170499","mergeCommit":{"message":"[Security
Solution][Endpoint][Cypress] Update endpoint cypress config to include
videos (#170499)\n\n## Summary\r\n\r\nAdds videos to failed cypress
tests for
debugging.","sha":"1c2521705a1ece1ebe87740a4c99c27b254630f9"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/170499","number":170499,"mergeCommit":{"message":"[Security
Solution][Endpoint][Cypress] Update endpoint cypress config to include
videos (#170499)\n\n## Summary\r\n\r\nAdds videos to failed cypress
tests for
debugging.","sha":"1c2521705a1ece1ebe87740a4c99c27b254630f9"}}]}]
BACKPORT-->

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OLM Sprint release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.11.0 v8.11.2 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants