Skip to content

[7.x] chore(NA): move bazel workspace status from bash script into nodejs executable (#90560)#90692

Merged
mistic merged 2 commits intoelastic:7.xfrom
mistic:backport/7.x/pr-90560
Feb 9, 2021
Merged

[7.x] chore(NA): move bazel workspace status from bash script into nodejs executable (#90560)#90692
mistic merged 2 commits intoelastic:7.xfrom
mistic:backport/7.x/pr-90560

Conversation

@mistic
Copy link
Copy Markdown
Contributor

@mistic mistic commented Feb 8, 2021

Backports the following commits to 7.x:

…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 mistic added the backport This PR is a backport of another PR label Feb 8, 2021
@mistic
Copy link
Copy Markdown
Contributor Author

mistic commented Feb 9, 2021

@elasticmachine merge upstream

@mistic mistic merged commit 43c9e57 into elastic:7.x Feb 9, 2021
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/index_management/feature_controls/index_management_security·ts.Index Management app feature controls security global dashboard all with index_management_user should render the "Data" section with index management

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:08:17]         └-: Index Management app
[00:08:17]           └-> "before all" hook in "Index Management app"
[00:08:17]           └-: feature controls
[00:08:17]             └-> "before all" hook in "feature controls"
[00:08:17]             └-: security
[00:08:17]               └-> "before all" hook in "security"
[00:08:17]               └-> "before all" hook in "security"
[00:08:17]                 │ info [empty_kibana] Loading "mappings.json"
[00:08:17]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_2/lf_lD7k_StalKEFc2OfCMA] deleting index
[00:08:17]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_1/rMXglGPlQo2R4Q4DlyNZlg] deleting index
[00:08:17]                 │ info [empty_kibana] Deleted existing index ".kibana_2"
[00:08:17]                 │ info [empty_kibana] Deleted existing index ".kibana_1"
[00:08:17]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:08:17]                 │ info [empty_kibana] Created index ".kibana"
[00:08:17]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:08:17]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana/_l2XKhnJQn20qJwQIWioNw] update_mapping [_doc]
[00:08:17]                 │ debg Migrating saved objects
[00:08:17]                 │ proc [kibana]   log   [03:57:49.028] [info][savedobjects-service] Creating index .kibana_2.
[00:08:17]                 │ proc [kibana]   log   [03:57:49.032] [info][savedobjects-service] Creating index .kibana_task_manager_4.
[00:08:17]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:17]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:17]                 │ proc [kibana]   log   [03:57:49.057] [warning][environment] Detected an unhandled Promise rejection.
[00:08:17]                 │ proc [kibana] Error: Saved object [space/default] not found
[00:08:17]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_task_manager_4] creating index, cause [api], templates [], shards [1]/[1]
[00:08:17]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] updating number_of_replicas to [0] for indices [.kibana_task_manager_4]
[00:08:17]                 │ proc [kibana]   log   [03:57:49.132] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:08:17]                 │ proc [kibana]   log   [03:57:49.148] [info][savedobjects-service] Migrating .kibana_task_manager_3 saved objects to .kibana_task_manager_4
[00:08:17]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:08:17]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] updating number_of_replicas to [0] for indices [.kibana_1]
[00:08:17]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_task_manager_4/-3gzb2kqQXiksVix1PvhQg] update_mapping [_doc]
[00:08:17]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] 16054 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:08:17]                 │ proc [kibana]   log   [03:57:49.226] [info][savedobjects-service] Pointing alias .kibana_task_manager to .kibana_task_manager_4.
[00:08:17]                 │ proc [kibana]   log   [03:57:49.262] [info][savedobjects-service] Finished in 230ms.
[00:08:17]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana/_l2XKhnJQn20qJwQIWioNw] deleting index
[00:08:18]                 │ proc [kibana]   log   [03:57:49.507] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:18]                 │ proc [kibana]   log   [03:57:49.512] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:18]                 │ proc [kibana]   log   [03:57:49.540] [info][savedobjects-service] Finished in 514ms.
[00:08:18]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:08:18]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:08:18]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:08:18]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] [.kibana_2/29upQvAXR8-1I8daPEkZDg] update_mapping [_doc]
[00:08:19]                 │ debg navigating to home url: http://localhost:61231/app/home#/
[00:08:19]                 │ debg navigate to: http://localhost:61231/app/home#/
[00:08:19]                 │ debg browser[INFO] http://localhost:61231/app/home?_t=1612843071090#/ 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:08:19]                 │
[00:08:19]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:19]                 │ debg ... sleep(700) start
[00:08:20]                 │ debg ... sleep(700) end
[00:08:20]                 │ debg returned from get, calling refresh
[00:08:21]                 │ERROR browser[SEVERE] http://localhost:61231/38568/bundles/core/core.entry.js 12:158464 TypeError: Failed to fetch
[00:08:21]                 │          at fetch_Fetch.fetchResponse (http://localhost:61231/38568/bundles/core/core.entry.js:6:32451)
[00:08:21]                 │          at async interceptResponse (http://localhost:61231/38568/bundles/core/core.entry.js:6:28637)
[00:08:21]                 │          at async http://localhost:61231/38568/bundles/core/core.entry.js:6:31117
[00:08:21]                 │ debg browser[INFO] http://localhost:61231/app/home?_t=1612843071090#/ 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:08:21]                 │
[00:08:21]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:21]                 │ debg currentUrl = http://localhost:61231/app/home#/
[00:08:21]                 │          appUrl = http://localhost:61231/app/home#/
[00:08:21]                 │ debg TestSubjects.find(kibanaChrome)
[00:08:21]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:08:21]                 │ debg ... sleep(501) start
[00:08:22]                 │ debg ... sleep(501) end
[00:08:22]                 │ debg in navigateTo url = http://localhost:61231/app/home#/
[00:08:22]                 │ debg TestSubjects.exists(statusPageContainer)
[00:08:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:08:24]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:08:39]               └-: global dashboard all with index_management_user
[00:08:39]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:08:39]                 └-> "before all" hook for "should show the Stack Management nav link"
[00:08:39]                   │ debg set roles = global_dashboard_all,index_management_user
[00:08:39]                   │ debg creating user test_user
[00:08:39]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1612839746877094402] updated user [test_user]
[00:08:39]                   │ debg created user test_user
[00:08:39]                   │ debg TestSubjects.exists(kibanaChrome)
[00:08:39]                   │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:08:40]                   │ debg TestSubjects.find(kibanaChrome)
[00:08:40]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:08:40]                   │ debg browser[INFO] http://localhost:61231/app/management?_t=1612843083946 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:08:40]                   │
[00:08:40]                   │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:41]                 └-> should show the Stack Management nav link
[00:08:41]                   └-> "before each" hook: global before each for "should show the Stack Management nav link"
[00:08:41]                   │ debg isGlobalLoadingIndicatorVisible
[00:08:41]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:08:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:08:42]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:08:43]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:08:43]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:08:43]                   │ debg TestSubjects.exists(collapsibleNav)
[00:08:43]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:08:46]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:08:46]                   │ debg TestSubjects.click(toggleNavButton)
[00:08:46]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:08:46]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:08:46]                   │ debg TestSubjects.find(collapsibleNav)
[00:08:46]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:08:46]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:08:46]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:08:46]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:08:46]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:08:46]                   └- ✓ pass  (5.4s) "Index Management app feature controls security global dashboard all with index_management_user should show the Stack Management nav link"
[00:08:46]                 └-> should render the "Data" section with index management
[00:08:46]                   └-> "before each" hook: global before each for "should render the "Data" section with index management"
[00:08:46]                   │ debg navigating to management url: http://localhost:61231/app/management
[00:08:46]                   │ debg navigate to: http://localhost:61231/app/management
[00:08:46]                   │ debg browser[INFO] http://localhost:61231/app/management?_t=1612843098306 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:08:46]                   │
[00:08:46]                   │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:46]                   │ debg ... sleep(700) start
[00:08:47]                   │ debg ... sleep(700) end
[00:08:47]                   │ debg returned from get, calling refresh
[00:08:48]                   │ debg browser[INFO] http://localhost:61231/app/management?_t=1612843098306 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:08:48]                   │
[00:08:48]                   │ debg browser[INFO] http://localhost:61231/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:48]                   │ debg currentUrl = http://localhost:61231/app/management
[00:08:48]                   │          appUrl = http://localhost:61231/app/management
[00:08:48]                   │ debg TestSubjects.find(kibanaChrome)
[00:08:48]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:08:48]                   │ debg ... sleep(501) start
[00:08:49]                   │ debg ... sleep(501) end
[00:08:49]                   │ debg in navigateTo url = http://localhost:61231/app/management
[00:08:49]                   │ debg TestSubjects.exists(statusPageContainer)
[00:08:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:08:51]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:08:52]                   │ debg Find.allByCssSelector('.mgtSideBarNav > .euiSideNav__content > .euiSideNavItem') with timeout=10000
[00:08:52]                   │ info Taking screenshot "/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/screenshots/failure/Index Management app feature controls security global dashboard all with index_management_user should render the _Data_ section with index management.png"
[00:08:52]                   │ info Current URL is: http://localhost:61231/app/management
[00:08:52]                   │ info Saving page source to: /dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/failure_debug/html/Index Management app feature controls security global dashboard all with index_management_user should render the _Data_ section with index management.html
[00:08:52]                   └- ✖ fail: Index Management app feature controls security global dashboard all with index_management_user should render the "Data" section with index management
[00:08:52]                   │      Error: expected [ { sectionId: 'ingest',
[00:08:52]                   │     sectionLinks: [ 'beats_management' ] },
[00:08:52]                   │   { sectionId: 'data',
[00:08:52]                   │     sectionLinks: [ 'index_management', 'transform' ] } ] to have a length of 1 but got 2
[00:08:52]                   │       at Assertion.assert (/dev/shm/workspace/parallel/23/kibana/packages/kbn-expect/expect.js:100:11)
[00:08:52]                   │       at Assertion.length (/dev/shm/workspace/parallel/23/kibana/packages/kbn-expect/expect.js:374:8)
[00:08:52]                   │       at Context.<anonymous> (test/functional/apps/index_management/feature_controls/index_management_security.ts:63:34)
[00:08:52]                   │       at runMicrotasks (<anonymous>)
[00:08:52]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:08:52]                   │       at Object.apply (/dev/shm/workspace/parallel/23/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:08:52]                   │ 
[00:08:52]                   │ 

Stack Trace

Error: expected [ { sectionId: 'ingest',
    sectionLinks: [ 'beats_management' ] },
  { sectionId: 'data',
    sectionLinks: [ 'index_management', 'transform' ] } ] to have a length of 1 but got 2
    at Assertion.assert (/dev/shm/workspace/parallel/23/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/23/kibana/packages/kbn-expect/expect.js:374:8)
    at Context.<anonymous> (test/functional/apps/index_management/feature_controls/index_management_security.ts:63:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/23/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

✅ unchanged

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants