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

Unskip Search Sessions Management UI test #90110

Merged
merged 18 commits into from
Feb 19, 2021

Conversation

tsullivan
Copy link
Member

Summary

Closes #89069

@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes v7.12.0 v7.13.0 v8.0.0 labels Feb 3, 2021
@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan
Copy link
Member Author

13:36:33               └-> Cancels a session from management
13:36:33                 └-> "before each" hook: global before each
13:36:35                 │ERROR browser[SEVERE] http://localhost:61241/40129/bundles/core/core.entry.js 12:158432 TypeError: Failed to fetch
13:36:35                 │          at fetch_Fetch.fetchResponse (http://localhost:61241/40129/bundles/core/core.entry.js:6:32451)
13:36:35                 │          at async interceptResponse (http://localhost:61241/40129/bundles/core/core.entry.js:6:28637)
13:36:35                 │          at async http://localhost:61241/40129/bundles/core/core.entry.js:6:31117
13:42:41                 └- ✖ fail: search sessions management Search sessions Management UI New search sessions Cancels a session from management
13:42:41                 │      Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/24/kibana/x-pack/test/send_search_to_background_integration/tests/apps/management/search_sessions/sessions_management.ts)
13:42:41                 │       at listOnTimeout (internal/timers.js:554:17)
13:42:41                 │       at processTimers (internal/timers.js:497:7)
13:42:41                 │ 
13:42:41                 │ 
13:42:41               └-> "after all" hook
13:42:41               └-> "after all" hook
13:42:41                 │ proc [kibana]   log   [20:42:34.550] [warning][environment] Detected an unhandled Promise rejection.
13:42:41                 │ proc [kibana] Error: resource_not_found_exception
13:42:41             └-> "after all" hook
13:42:41           └-> "after all" hook
13:42:41       │
13:42:41       │15 passing (16.0m)
13:42:41       │1 failing
13:42:41       │
13:42:41       │1)    search sessions management
13:42:41       │       Search sessions Management UI
13:42:41       │         New search sessions
13:42:41       │           Cancels a session from management:
13:42:41       │
13:42:41       │      Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/24/kibana/x-pack/test/send_search_to_background_integration/tests/apps/management/search_sessions/sessions_management.ts)
13:42:41       │       at listOnTimeout (internal/timers.js:554:17)
13:42:41       │       at processTimers (internal/timers.js:497:7)
13:42:41       │ 
13:42:41       │ 
13:42:41       │
13:42:41       │ debg TestSubjects.find(searchSessionsMgmtTable)
13:42:41       │ debg Find.findByCssSelector('[data-test-subj="searchSessionsMgmtTable"]') with timeout=10000
13:42:41       │ debg Sending "SIGTERM" to proc "kibana"

@tsullivan
Copy link
Member Author

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

1 similar comment
@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan tsullivan requested a review from a team as a code owner February 9, 2021 19:33
@lizozom
Copy link
Contributor

lizozom commented Feb 13, 2021

@elasticmachine merge upstream

1 similar comment
@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan tsullivan force-pushed the flaky/search-sessions-2 branch from 99f0365 to 9615ee9 Compare February 17, 2021 06:28
@tsullivan tsullivan force-pushed the flaky/search-sessions-2 branch from e079807 to 8e611e1 Compare February 17, 2021 22:13
await esArchiver.unload('data/search_sessions');
});

it('has working pagination controls', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Bonus: new test!

@@ -73,7 +77,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

// NOTE: this test depends on the previous one passing
it('Reloads as new session from management', async () => {
it.skip('Reloads as new session from management', async () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure how this test is supposed to pass. I think the UI changed while the suite was skipped, and the test is obsolete now.

cc @Dosant

Copy link
Contributor

Choose a reason for hiding this comment

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

@tsullivan we removed the "reload" button in #90015 so this test case could be removed

@tsullivan
Copy link
Member Author

Tests pass locally now. The problems were:

  • The Search Session background task document must in es_archive data for tests that rely on having the background task run
  • The es_archive data for testing the Management UI needed to have the username field match test_user (and realmName / realmType also had to match) since the listing is filtered by user

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan tsullivan force-pushed the flaky/search-sessions-2 branch from ba6fab1 to a41946c Compare February 19, 2021 04:20
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dataEnhanced 161.5KB 161.5KB -21.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dataEnhanced 40.2KB 40.4KB +152.0B

History

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

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

lgtm!

describe('New search sessions', () => {
before(async () => {
await PageObjects.common.navigateToApp('dashboard');
log.debug('wait for dashboard landing page');
retry.tryForTime(10000, async () => {
await retry.tryForTime(10000, async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

😅

@tsullivan tsullivan merged commit d31119c into elastic:master Feb 19, 2021
@tsullivan tsullivan deleted the flaky/search-sessions-2 branch February 19, 2021 17:28
tsullivan added a commit to tsullivan/kibana that referenced this pull request Feb 19, 2021
* Unskip Search Sessions Management UI test

* more logging

* logging

* ci test

* skip reload test

* add tm task to archives used by dependent tests

* --wip-- [skip ci]

* revert jest affecting changes

* fix search sessions archive

* add pagination test

* test organize

* log cleanup

* fix async in tests

* remove obsolete test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
tsullivan added a commit to tsullivan/kibana that referenced this pull request Feb 19, 2021
* Unskip Search Sessions Management UI test

* more logging

* logging

* ci test

* skip reload test

* add tm task to archives used by dependent tests

* --wip-- [skip ci]

* revert jest affecting changes

* fix search sessions archive

* add pagination test

* test organize

* log cleanup

* fix async in tests

* remove obsolete test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
tsullivan added a commit that referenced this pull request Feb 19, 2021
* Unskip Search Sessions Management UI test

* more logging

* logging

* ci test

* skip reload test

* add tm task to archives used by dependent tests

* --wip-- [skip ci]

* revert jest affecting changes

* fix search sessions archive

* add pagination test

* test organize

* log cleanup

* fix async in tests

* remove obsolete test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
tsullivan added a commit that referenced this pull request Feb 19, 2021
* Unskip Search Sessions Management UI test

* more logging

* logging

* ci test

* skip reload test

* add tm task to archives used by dependent tests

* --wip-- [skip ci]

* revert jest affecting changes

* fix search sessions archive

* add pagination test

* test organize

* log cleanup

* fix async in tests

* remove obsolete test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 22, 2021
…ndition-for-hiding-recommded-allocation

* 'master' of github.com:elastic/kibana: (117 commits)
  [coverage] ingest data in parallel (elastic#92074)
  [Lens] Drag and drop performance improvements (elastic#91641)
  A few more environment uiFilters fixes (elastic#92044)
  Enabling Uptime and Dashboard a11y test (elastic#91017)
  [Security Solution][Detections] Adds more granular validation for nested fields (elastic#92041)
  [Security Solution] [Detections] add overflow-wrap for description (elastic#91945)
  [Security Solution] [Detections] do not truncate filename in value list table in modal (elastic#91952)
  Skip flaky apm test elastic#91673 (elastic#92065)
  [docker] Default server.name to hostname (elastic#90799)
  Use documentation link service for snapshot restore (elastic#91596)
  [Security Solution] Clearing up all jest errors and warnings (elastic#91740)
  Add `@kbn/analytics` to UI Shared Deps (elastic#91810)
  [7.12][Telemetry] Add missing fields for security telemetry (elastic#91920)
  [Security Solution] Adds cypress-pipe (elastic#91550)
  [ML] Fix event rate chart annotation position (elastic#91899)
  [APM] Break down error table api removing the sparklines (elastic#89138)
  docs: update dependencies table bug (elastic#91964)
  [Time to Visualize] Stay in Edit Mode After Dashboard Quicksave (elastic#91729)
  Unskip Search Sessions Management UI test (elastic#90110)
  [Fleet] Handle long text in agent details page (elastic#91776)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/edit_policy.helpers.tsx
#	x-pack/plugins/index_lifecycle_management/__jest__/components/edit_policy.test.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment