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

Cleanup logging from Context.<anonymous> and Runner.<anonymous> #22448

Closed
nallikaea opened this issue Aug 22, 2023 · 0 comments · Fixed by #22449
Closed

Cleanup logging from Context.<anonymous> and Runner.<anonymous> #22448

nallikaea opened this issue Aug 22, 2023 · 0 comments · Fixed by #22449
Assignees
Labels
area/qe kind/task Internal things, technical debt, and to-do tasks to be performed.

Comments

@nallikaea
Copy link
Contributor

          What about don't logging `Context.<anonymous>` and `Runner.<anonymous>` to make log cleaner? 
stack[3].replace(/^\s+at\s+(.+?)\s.+/g, '$1')
            .replace('Context.<anonymous>', '')
            .replace('Runner.<anonymous> ', '')

E.g.:

    ✔ Get recommended extensions list from extensions.json (10623ms)
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
     ✔ Open "Extensions" view section (1885ms)
       • Context.<anonymous> - Time for extensions installation TimeoutConstants.TS_COMMON_PLUGIN_TEST_TIMEOUT=30000
             ‣ DriverHelper.wait - (30000 milliseconds)
     ✔ Let extensions complete installation (30003ms)
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
           ▼ Context.<anonymous> - ActivityBar().getViewControl('Extensions'))?.openView(): open Extensions view.
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): get current section.
             ‣ DriverHelper.waitAllPresence - By(css selector, .name)
       • Context.<anonymous> - Check if {"publisher":"ms-python","name":"python"} are installed.
           ▼ Context.<anonymous> - extensionSection.findItem(python).
             ‣ DriverHelper.isVisible - By(xpath, //a[text()='Reload Required'])
           ▼ Context.<anonymous> - extensionsView?.getContent().getSections(): switch to marketplace section.
             ‣ DriverHelper.waitVisibility - By(css selector, .monaco-list-rows)
             ‣ DriverHelper.waitVisibility - element is located and is visible.
           ▼ Context.<anonymous> - marketplaceSection.getVisibleItems(): get all found items.
           ▼ Context.<anonymous> - Try to find extension published by ms-python.
           ▼ Context.<anonymous> - Extension was found: Black Formatter
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled()
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher?.isInstalled(): true.
           ▼ Context.<anonymous> - itemWithRightNameAndPublisher.manage(): get context menu.
     1) Check if extensions are installed and enabled
   [ERROR] Runner.<anonymous> - CheReporter runner.on.fail: Check if recommended extensions installed for Ansible Check if extensions are installed and enabled failed after 3346ms
             ‣ Runner.<anonymous> - FullTitle:Check if recommended extensions installed for Ansible Check if extensions are installed and enabled
             ‣ Runner.<anonymous> - FullTitleSanitized:Check_if_recommended_extensions_installed_for_Ansible_Check_if_extensions_are_installed_and_enabled
             ‣ Runner.<anonymous> - TestTitle:Check if extensions are installed and enabled
             ‣ Runner.<anonymous> - TestTitleSanitized:Check_if_extensions_are_installed_and_enabled
             ‣ DriverHelper.getDriver  

Originally posted by @dmytro-ndp in #22398 (comment)

@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Aug 22, 2023
@nallikaea nallikaea added area/qe kind/task Internal things, technical debt, and to-do tasks to be performed. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Aug 22, 2023
@nallikaea nallikaea self-assigned this Aug 22, 2023
@nallikaea nallikaea linked a pull request Aug 22, 2023 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qe kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants