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

chore(NA): move bazel workspace status from bash script into nodejs executable #90560

Merged

Conversation

mistic
Copy link
Member

@mistic mistic commented Feb 7, 2021

Closes #90551 \cc @liza-mae

That PR fixes the integration made at #90116 to push metadata info into build buddy using the Bazel --workspace_status_command. Previously we were using a bash script which don't work on Windows machine. With those changes we will achieve the same output but using Node.js to run it so we can make it cross platform.

@mistic mistic added chore Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.12.0 labels Feb 7, 2021
@mistic mistic requested a review from a team as a code owner February 7, 2021 16:38
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

LGTM on Windows. Tested and yarn kbn bootstrap now runs without error (using Windows 10, Git Bash)

@mistic
Copy link
Member Author

mistic commented Feb 8, 2021

@elasticmachine merge upstream

@mistic

This comment has been minimized.

1 similar comment
@mistic

This comment has been minimized.

Copy link
Contributor

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

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

LGTM - tested with invalid remote

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/transform/feature_controls/transform_security·ts.transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/90576

[00:00:00]       │
[00:19:05]         └-: transform
[00:19:05]           └-> "before all" hook in "transform"
[00:19:06]           └-> "before all" hook in "transform"
[00:19:06]             │ debg creating role transform_source
[00:19:06]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] added role [transform_source]
[00:19:06]             │ debg creating role transform_dest
[00:19:06]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] added role [transform_dest]
[00:19:06]             │ debg creating role transform_dest_readonly
[00:19:06]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] added role [transform_dest_readonly]
[00:19:06]             │ debg creating role transform_ui_extras
[00:19:06]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] added role [transform_ui_extras]
[00:19:06]             │ debg creating user transform_poweruser
[00:19:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] added user [transform_poweruser]
[00:19:06]             │ debg created user transform_poweruser
[00:19:06]             │ debg creating user transform_viewer
[00:19:06]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] added user [transform_viewer]
[00:19:06]             │ debg created user transform_viewer
[00:24:07]           └-: feature controls
[00:24:07]             └-> "before all" hook in "feature controls"
[00:24:07]             └-: security
[00:24:07]               └-> "before all" hook in "security"
[00:24:07]               └-> "before all" hook in "security"
[00:24:07]                 │ info [empty_kibana] Loading "mappings.json"
[00:24:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_pre6.5.0_001/Lc3rUE5lSWuujaPSpvSCxw] deleting index
[00:24:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_001/-tGFeB02SUGLwux1eEIDQQ] deleting index
[00:24:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_task_manager_8.0.0_001/jNmOjhjUTUW1CFL391fnWA] deleting index
[00:24:07]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:24:07]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:24:07]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:24:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:24:07]                 │ info [empty_kibana] Created index ".kibana"
[00:24:07]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:24:07]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana/WasGTVOURmu5BaVpszVyNA] update_mapping [_doc]
[00:24:07]                 │ debg Migrating saved objects
[00:24:07]                 │ proc [kibana]   log   [19:59:22.597] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET
[00:24:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:24:07]                 │ proc [kibana]   log   [19:59:22.609] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK
[00:24:07]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] adding block write to indices [[.kibana/WasGTVOURmu5BaVpszVyNA]]
[00:24:07]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] completed adding block write to indices [.kibana]
[00:24:07]                 │ proc [kibana]   log   [19:59:22.664] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY
[00:24:07]                 │ proc [kibana]   log   [19:59:22.684] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET
[00:24:07]                 │ proc [kibana]   log   [19:59:22.697] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE
[00:24:07]                 │ proc [kibana]   log   [19:59:22.697] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 105ms
[00:24:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:24:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:24:07]                 │ proc [kibana]   log   [19:59:22.748] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX
[00:24:07]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] 31658 finished with response BulkByScrollResponse[took=1.8ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:24:07]                 │ proc [kibana]   log   [19:59:22.756] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK
[00:24:07]                 │ proc [kibana]   log   [19:59:22.763] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE
[00:24:07]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana/WasGTVOURmu5BaVpszVyNA] deleting index
[00:24:07]                 │ proc [kibana]   log   [19:59:22.799] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK
[00:24:07]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] adding block write to indices [[.kibana_pre6.5.0_001/kF8T94aqQPOLfjlqRT9otw]]
[00:24:07]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:24:07]                 │ proc [kibana]   log   [19:59:22.838] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP
[00:24:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:24:07]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:24:08]                 │ proc [kibana]   log   [19:59:22.889] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP
[00:24:08]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] 31687 finished with response BulkByScrollResponse[took=1.9ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:24:08]                 │ proc [kibana]   log   [19:59:22.896] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK
[00:24:08]                 │ proc [kibana]   log   [19:59:22.902] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] adding block write to indices [[.kibana_8.0.0_reindex_temp/EhAb9acXQ4GLDdEgSoKQPw]]
[00:24:08]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:24:08]                 │ proc [kibana]   log   [19:59:22.943] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:24:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:24:08]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_001/Ya3z5YZDSbi_ei6RscfFlQ] create_mapping
[00:24:08]                 │ proc [kibana]   log   [19:59:23.044] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH
[00:24:08]                 │ proc [kibana]   log   [19:59:23.053] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_001/Ya3z5YZDSbi_ei6RscfFlQ] update_mapping [_doc]
[00:24:08]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] 31723 finished with response BulkByScrollResponse[took=1.6ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:24:08]                 │ proc [kibana]   log   [19:59:23.115] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK
[00:24:08]                 │ proc [kibana]   log   [19:59:23.121] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY
[00:24:08]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_reindex_temp/EhAb9acXQ4GLDdEgSoKQPw] deleting index
[00:24:08]                 │ proc [kibana]   log   [19:59:23.161] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE
[00:24:08]                 │ proc [kibana]   log   [19:59:23.162] [info][savedobjects-service] [.kibana] Migration completed after 571ms
[00:24:08]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:24:08]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:24:08]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:24:08]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] [.kibana_8.0.0_001/Ya3z5YZDSbi_ei6RscfFlQ] update_mapping [_doc]
[00:24:10]                 │ debg SecurityPage.forceLogout
[00:24:10]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:24:10]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:10]                 │ debg Redirecting to /logout to force the logout
[00:24:10]                 │ debg Waiting on the login form to appear
[00:24:10]                 │ debg Waiting for Login Page to appear.
[00:24:10]                 │ debg Waiting up to 100000ms for login page...
[00:24:10]                 │ debg browser[INFO] http://localhost:61161/logout?_t=1612814365621 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:10]                 │
[00:24:10]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:10]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61161/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ debg browser[INFO] http://localhost:61161/login?msg=LOGGED_OUT 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:13]                 │
[00:24:13]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:13]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61161/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61161/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:13]                 │ debg browser[INFO] http://localhost:61161/40237/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:13]                 │      Error: Unauthorized"
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61161/40237/bundles/core/core.entry.js 5:3002 
[00:24:13]                 │ERROR browser[SEVERE] http://localhost:61161/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:14]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:14]                 │ debg navigating to home url: http://localhost:61161/app/home#/
[00:24:14]                 │ debg navigate to: http://localhost:61161/app/home#/
[00:24:14]                 │ debg browser[INFO] http://localhost:61161/login?next=%2Fapp%2Fhome%3F_t%3D1612814369320#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:14]                 │
[00:24:14]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:14]                 │ debg ... sleep(700) start
[00:24:15]                 │ debg ... sleep(700) end
[00:24:15]                 │ debg returned from get, calling refresh
[00:24:15]                 │ERROR browser[SEVERE] http://localhost:61161/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:15]                 │ debg browser[INFO] http://localhost:61161/40237/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:15]                 │      Error: Unauthorized"
[00:24:15]                 │ERROR browser[SEVERE] http://localhost:61161/40237/bundles/core/core.entry.js 5:3002 
[00:24:15]                 │ debg browser[INFO] http://localhost:61161/login?next=%2Fapp%2Fhome%3F_t%3D1612814369320#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:15]                 │
[00:24:15]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:16]                 │ debg currentUrl = http://localhost:61161/login?next=%2Fapp%2Fhome%3F_t%3D1612814369320#/
[00:24:16]                 │          appUrl = http://localhost:61161/app/home#/
[00:24:16]                 │ debg TestSubjects.find(kibanaChrome)
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:16]                 │ debg Found login page
[00:24:16]                 │ debg TestSubjects.setValue(loginUsername, test_user)
[00:24:16]                 │ debg TestSubjects.click(loginUsername)
[00:24:16]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61161/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ debg browser[INFO] http://localhost:61161/40237/bundles/core/core.entry.js 12:159412 "Detected an unhandled Promise rejection.
[00:24:16]                 │      Error: Unauthorized"
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61161/40237/bundles/core/core.entry.js 5:3002 
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61161/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ERROR browser[SEVERE] http://localhost:61161/internal/security/me - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:24:16]                 │ debg TestSubjects.setValue(loginPassword, changeme)
[00:24:16]                 │ debg TestSubjects.click(loginPassword)
[00:24:16]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:16]                 │ debg TestSubjects.click(loginSubmit)
[00:24:16]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:16]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:16]                 │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:24:16]                 │ proc [kibana]   log   [19:59:31.434] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:24:17]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:17]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:24:18]                 │ debg browser[INFO] http://localhost:61161/app/home?_t=1612814369320#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:18]                 │
[00:24:18]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:19]                 │ debg browser[INFO] http://localhost:61161/app/home?_t=1612814373573#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:19]                 │
[00:24:19]                 │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:19]                 │ debg Finished login process currentUrl = http://localhost:61161/app/home#/
[00:24:19]                 │ debg ... sleep(501) start
[00:24:20]                 │ debg ... sleep(501) end
[00:24:20]                 │ debg in navigateTo url = http://localhost:61161/app/home#/
[00:24:20]                 │ debg TestSubjects.exists(statusPageContainer)
[00:24:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:22]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:23]               └-: global all privileges (aka kibana_admin)
[00:24:23]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:23]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:24:23]                   │ debg set roles = kibana_admin
[00:24:23]                   │ debg creating user test_user
[00:24:23]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612810686757847051] updated user [test_user]
[00:24:23]                   │ debg created user test_user
[00:24:23]                   │ debg TestSubjects.exists(kibanaChrome)
[00:24:23]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:24:23]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:23]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:24:23]                   │ debg browser[INFO] http://localhost:61161/app/home?_t=1612814373573#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:23]                   │
[00:24:23]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:24]                 └-> should show the Stack Management nav link
[00:24:24]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:24:24]                   │ debg isGlobalLoadingIndicatorVisible
[00:24:24]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:24:24]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:24:25]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:24:26]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:24:26]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:24:26]                   │ debg TestSubjects.exists(collapsibleNav)
[00:24:26]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:24:28]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:24:29]                   │ debg TestSubjects.click(toggleNavButton)
[00:24:29]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:24:29]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:24:29]                   │ debg TestSubjects.find(collapsibleNav)
[00:24:29]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:24:29]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:24:29]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:29]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:29]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:24:29]                   └- ✓ pass  (5.6s) "transform feature controls security global all privileges (aka kibana_admin) should show the Stack Management nav link"
[00:24:29]                 └-> should not render the "Stack" section
[00:24:29]                   └-> "before each" hook: global before each for "should not render the "Stack" section"
[00:24:29]                   │ debg navigating to management url: http://localhost:61161/app/management
[00:24:29]                   │ debg navigate to: http://localhost:61161/app/management
[00:24:29]                   │ debg browser[INFO] http://localhost:61161/app/management?_t=1612814384709 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:29]                   │
[00:24:29]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:29]                   │ debg ... sleep(700) start
[00:24:30]                   │ debg ... sleep(700) end
[00:24:30]                   │ debg returned from get, calling refresh
[00:24:30]                   │ debg browser[INFO] http://localhost:61161/app/management?_t=1612814384709 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:24:30]                   │
[00:24:30]                   │ debg browser[INFO] http://localhost:61161/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:30]                   │ debg currentUrl = http://localhost:61161/app/management
[00:24:30]                   │          appUrl = http://localhost:61161/app/management
[00:24:30]                   │ debg TestSubjects.find(kibanaChrome)
[00:24:30]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:32]                   │ debg ... sleep(501) start
[00:24:32]                   │ debg ... sleep(501) end
[00:24:32]                   │ debg in navigateTo url = http://localhost:61161/app/management
[00:24:32]                   │ debg TestSubjects.exists(statusPageContainer)
[00:24:32]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:35]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:35]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:24:35]                   │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/screenshots/failure/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.png"
[00:24:35]                   │ info Current URL is: http://localhost:61161/app/management
[00:24:35]                   │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/failure_debug/html/transform feature controls security global all privileges _aka kibana_admin_ should not render the _Stack_ section.html
[00:24:35]                   └- ✖ fail: transform feature controls security global all privileges (aka kibana_admin) should not render the "Stack" section
[00:24:35]                   │       Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
[00:24:35]                   │       + expected - actual
[00:24:35]                   │ 
[00:24:35]                   │        [
[00:24:35]                   │       -  "ingest"
[00:24:35]                   │          "insightsAndAlerting"
[00:24:35]                   │          "kibana"
[00:24:35]                   │        ]
[00:24:35]                   │       
[00:24:35]                   │       at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:24:35]                   │       at Assertion.eql (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:244:8)
[00:24:35]                   │       at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
[00:24:35]                   │       at runMicrotasks (<anonymous>)
[00:24:35]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:24:35]                   │       at Object.apply (/dev/shm/workspace/parallel/16/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:24:35]                   │ 
[00:24:35]                   │ 

Stack Trace

Error: expected [ 'ingest', 'insightsAndAlerting', 'kibana' ] to sort of equal [ 'insightsAndAlerting', 'kibana' ]
    at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:244:8)
    at Context.<anonymous> (test/functional/apps/transform/feature_controls/transform_security.ts:45:29)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/16/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '[\n  "ingest"\n  "insightsAndAlerting"\n  "kibana"\n]',
  expected: '[\n  "insightsAndAlerting"\n  "kibana"\n]',
  showDiff: true
}

ci stats were not enabled for this build

History

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

@mistic mistic merged commit 15a4c28 into elastic:master Feb 8, 2021
@mistic
Copy link
Member Author

mistic commented Feb 8, 2021

7.x/7.12: 43c9e57

mistic added a commit to mistic/kibana that referenced this pull request Feb 8, 2021
…xecutable (elastic#90560)

* chore(NA): move bazel workspace status into nodejs executable

* chore(NA): removed unused console.log on error

* chore(NA): ability to setup different name for origin remote on workspace status command

* chore(NA): do not fail if cant collect repo url

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
mistic added a commit that referenced this pull request Feb 9, 2021
…xecutable (#90560) (#90692)

* chore(NA): move bazel workspace status into nodejs executable

* chore(NA): removed unused console.log on error

* chore(NA): ability to setup different name for origin remote on workspace status command

* chore(NA): do not fail if cant collect repo url

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 9, 2021
…timeline-and-rollover-info

* 'master' of github.com:elastic/kibana: (47 commits)
  [Fleet] Use TS project references (elastic#87574)
  before/beforeEach clean up (elastic#90663)
  [Vega] user should be able to set a specific tilemap service using the mapStyle property (elastic#88440)
  [Security Solution][Case] ServiceNow SIR Connector (elastic#88655)
  [Search Sessions] Enable extend from management (elastic#90558)
  [ILM] Delete phase redesign (rework) (elastic#90291)
  [APM-UI][E2E] use withGithubStatus step (elastic#90651)
  Add folding in kb-monaco and update some viewers (elastic#90152)
  [Grok Debugger] Changed test to wait for grok debugger container to exist to fix test flakiness (elastic#90543)
  Strongly typed EUI theme for styled-components (elastic#90106)
  Fix vega renovate label (elastic#90591)
  [Uptime] Migrate to TypeScript project references (elastic#90510)
  [Monitoring] Migrate data source for legacy alerts to monitoring data directly (elastic#87377)
  [Upgrade Assistant] Add A11y Tests (elastic#90265)
  [Time to Visualize] Adds functional tests for linking/unlinking panel from embeddable library (elastic#89612)
  [dev-utils/ship-ci-stats] fail when CI stats is down (elastic#90678)
  chore(NA): remove write permissions on Bazel remote cache for PRs (elastic#90652)
  chore(NA): move bazel workspace status from bash script into nodejs executable (elastic#90560)
  Use default ES distribution for functional tests (elastic#88737)
  [Alerts] Jira: Disallow labels with spaces (elastic#90548)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/timeline/timeline.tsx
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.test.ts
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kibana bootstrap / Bazel fails on windows
6 participants