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

[RAM] Fix flaky expiring snooze test #159138

Closed
wants to merge 1 commit into from

Conversation

Zacqary
Copy link
Contributor

@Zacqary Zacqary commented Jun 6, 2023

Summary

Closes #159076

Wraps a flaky bit of test in retry.try

@Zacqary Zacqary added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Alerting/RulesManagement Issues related to the Rules Management UX v8.9.0 labels Jun 6, 2023
@Zacqary Zacqary requested a review from a team as a code owner June 6, 2023 16:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@Zacqary Zacqary enabled auto-merge (squash) June 6, 2023 16:17
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

},
]);
await retry.try(async () => {
expect(updatedAlert.snooze_schedule).to.eql([
Copy link
Contributor

Choose a reason for hiding this comment

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

You will have to fetch the rule in this function instead so you can have updatedAlert eventually equal to what's expected.

const { body: updatedAlert } = await supertestWithoutAuth
        .get(`${getUrlPrefix(Spaces.space1.id)}/internal/alerting/rule/${createdRule.id}`)
        .set('kbn-xsrf', 'foo')
        .expect(200);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RIGHT WHOOPS thanks for that lmao

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 413 417 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 497 501 +4
total +6

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

@Zacqary Zacqary disabled auto-merge June 7, 2023 16:18
@Zacqary Zacqary enabled auto-merge (squash) June 7, 2023 16:18
@Zacqary
Copy link
Contributor Author

Zacqary commented Jun 7, 2023

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

expected head sha didn’t match current head ref.

@Zacqary
Copy link
Contributor Author

Zacqary commented Jun 7, 2023

AND WHOSE FAULT IS THAT @kibanamachine? NOT MINE

@Zacqary
Copy link
Contributor Author

Zacqary commented Jun 7, 2023

I have no idea what's happening so I'm gonna reopen this PR

@Zacqary Zacqary closed this Jun 7, 2023
auto-merge was automatically disabled June 7, 2023 16:20

Pull request was closed

Zacqary added a commit that referenced this pull request Jun 8, 2023
## Summary

Closes #159076

Wraps a flaky bit of test in retry.try

Second attempt to merge #159138 after that one inexplicably got its git
all in a twist or something

---------

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
Feature:Alerting/RulesManagement Issues related to the Rules Management UX release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.9.0
Projects
None yet
6 participants