Skip to content

Conversation

@rStelmach
Copy link
Contributor

@rStelmach rStelmach commented Jul 30, 2025

closes: #220609

Summary 📚

A new CI pipeline was prepared to run Ensemble tests on a serverless cluster, but Playwright e2e tests were failing due to authentication flow differences between stateful and serverless environments. This PR makes the existing onboarding tests generic enough to work in both environments without requiring dedicated test suites.

Solution ✅

  • Combined authentication flows: Single test file now handles both stateful and serverless login patterns
  • Environment-aware detection: Uses CLUSTER_ENVIRONMENT variable with runtime fallback detection

Ensemble nightly job run showing successful execution:

Nightly serverless job run

@rStelmach rStelmach marked this pull request as ready for review August 4, 2025 14:31
@rStelmach rStelmach requested a review from a team as a code owner August 4, 2025 14:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)

@rStelmach rStelmach marked this pull request as draft August 6, 2025 12:46
@rStelmach rStelmach marked this pull request as ready for review August 6, 2025 14:18
@rStelmach
Copy link
Contributor Author

new workflow that confirms that the fix is working :
https://github.com/elastic/ensemble/actions/runs/16780857174

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #60 / Agents fleet_agents_status should return incoming data status for specified agents
  • [job] [logs] FTR Configs #78 / Interactive setup APIs - Enrollment flow should be able to enroll with valid authentication code
  • [job] [logs] FTR Configs #101 / Interactive setup APIs - Manual configuration flow should be able to configure with valid authentication code
  • [job] [logs] FTR Configs #135 / ObservabilityApp o11y sidenav sidenav & breadcrumbs renders the correct nav and navigate to links

Metrics [docs]

✅ unchanged

@rStelmach rStelmach merged commit 6bbf934 into elastic:main Aug 7, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

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

@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [OAS] Promote space awareness in REST docs (#230594)
- [dashboard] fix duplicate panel action hangs when dashboard has collapsed section that are closed on page load (#230842)
- [Security Solution] [SKA] Moved cypress folder (#230198)
- [Synthetics] Renamed ping to latestPing (#230756)
- [Synonyms] Use i18n string for Synonyms (#230431)
- Remove unused deps (#230630)
9.1

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 229969

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Aug 7, 2025
…less environment (#229969) (#230913)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[Oblt Onboarding] Adjust e2e onboarding tests to work in serverless
environment (#229969)](#229969)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Robert
Stelmach","email":"60304951+rStelmach@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-08-07T07:23:59Z","message":"[Oblt
Onboarding] Adjust e2e onboarding tests to work in serverless
environment
(#229969)","sha":"6bbf934fb65e2e433f0108d7e0028c924c59c641","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:obs-ux-logs","Feature:
Observability
Onboarding","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Oblt
Onboarding] Adjust e2e onboarding tests to work in serverless
environment","number":229969,"url":"https://github.com/elastic/kibana/pull/229969","mergeCommit":{"message":"[Oblt
Onboarding] Adjust e2e onboarding tests to work in serverless
environment
(#229969)","sha":"6bbf934fb65e2e433f0108d7e0028c924c59c641"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229969","number":229969,"mergeCommit":{"message":"[Oblt
Onboarding] Adjust e2e onboarding tests to work in serverless
environment
(#229969)","sha":"6bbf934fb65e2e433f0108d7e0028c924c59c641"}}]}]
BACKPORT-->

Co-authored-by: Robert Stelmach <60304951+rStelmach@users.noreply.github.com>
@rStelmach rStelmach removed the v8.19.0 label Aug 7, 2025
gergoabraham pushed a commit to gergoabraham/kibana that referenced this pull request Aug 7, 2025
@mistic mistic added the v9.1.2 label Aug 7, 2025
denar50 pushed a commit to denar50/kibana that referenced this pull request Aug 8, 2025
@gbamparop
Copy link
Contributor

@rStelmach @yngrdyn did we need to backport this to 9.1?

@rStelmach
Copy link
Contributor Author

@gbamparop I realized that after 9.1 backport pr got merged, that's why I didn't proceed with backporting 8.19 and just left it as it is.

NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Oblt Onboarding] Investigate e2e test failure on serverless

6 participants