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

[js] remove duplicate file #15103

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open

[js] remove duplicate file #15103

wants to merge 3 commits into from

Conversation

harsha509
Copy link
Member

@harsha509 harsha509 commented Jan 17, 2025

User description

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Motivation and Context

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

PR Type

Other


Description

  • Removed a duplicate JavaScript file bidi-mutation-listener.js.

  • Cleaned up unused code to avoid redundancy.


Changes walkthrough 📝

Relevant files
Miscellaneous
bidi-mutation-listener.js
Deleted duplicate file `bidi-mutation-listener.js`             

javascript/node/selenium-webdriver/lib/atoms/bidi-mutation-listener.js

  • Deleted the entire file bidi-mutation-listener.js.
  • Removed redundant code for mutation observation.
  • Cleaned up unnecessary duplication in the repository.
  • +0/-55   

    Need help?
  • Type /help how to ... in the comments thread for any question about Qodo Merge usage.
  • Check out the documentation for more information.
  • Copy link
    Contributor

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No major issues detected

    Copy link
    Contributor

    PR Code Suggestions ✨

    No code suggestions found for the PR.

    Copy link
    Contributor

    qodo-merge-pro bot commented Jan 17, 2025

    CI Failure Feedback 🧐

    (Checks updated until commit c6018d7)

    Action: Java / Browser Tests (windows) / Browser Tests (chrome, windows)

    Failed stage: Run Bazel [❌]

    Failed test name: ChromeDriverFunctionalTest

    Failure summary:

    The test ChromeDriverFunctionalTest failed with 7 failures. The main failure was in the
    shouldThrowNumberFormatException() test case, where there was an assertion error comparing expected
    vs actual error messages related to Arabic language port number formatting. The test expected a
    specific error message about port number formatting in Arabic, but received a slightly different
    message.

    Relevant error logs:
    1:  ##[group]Operating System
    2:  Microsoft Windows Server 2022
    ...
    
    623:  �[32mINFO: �[0mFrom Compiling absl/profiling/internal/exponential_biased.cc [for tool]:
    624:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
    625:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/escaping.cc [for tool]:
    626:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
    627:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/cordz_functions.cc [for tool]:
    628:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
    629:  �[32mINFO: �[0mFrom Compiling absl/strings/substitute.cc [for tool]:
    630:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
    631:  �[32mINFO: �[0mFrom Compiling absl/base/internal/strerror.cc [for tool]:
    ...
    
    1523:  public class RepeatedFieldBuilderV3<
    1524:  ^
    1525:  �[32m[2,031 / 2,409]�[0m Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files); 6s disk-cache, multiplex-worker ... (4 actions, 2 running)
    1526:  �[32m[2,064 / 2,409]�[0m Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files); 7s disk-cache, multiplex-worker ... (4 actions, 2 running)
    1527:  �[32m[2,091 / 2,409]�[0m Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files); 8s disk-cache, multiplex-worker ... (4 actions, 3 running)
    1528:  �[32m[2,187 / 2,409]�[0m Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files); 9s disk-cache, multiplex-worker ... (4 actions, 1 running)
    1529:  �[32m[2,198 / 2,409]�[0m Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files); 10s disk-cache, multiplex-worker ... (4 actions, 3 running)
    1530:  �[32mINFO: �[0mFrom Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files):
    1531:  java\src\org\openqa\selenium\remote\ErrorHandler.java:46: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1532:  private final ErrorCodes errorCodes;
    1533:  ^
    1534:  java\src\org\openqa\selenium\remote\ErrorHandler.java:60: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1535:  this.errorCodes = new ErrorCodes();
    1536:  ^
    1537:  java\src\org\openqa\selenium\remote\ErrorHandler.java:68: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1538:  public ErrorHandler(ErrorCodes codes, boolean includeServerErrors) {
    1539:  ^
    1540:  java\src\org\openqa\selenium\remote\Response.java:97: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1541:  ErrorCodes errorCodes = new ErrorCodes();
    1542:  ^
    1543:  java\src\org\openqa\selenium\remote\Response.java:97: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1544:  ErrorCodes errorCodes = new ErrorCodes();
    1545:  ^
    1546:  java\src\org\openqa\selenium\remote\ProtocolHandshake.java:181: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1547:  response.setStatus(ErrorCodes.SUCCESS);
    1548:  ^
    1549:  java\src\org\openqa\selenium\remote\ProtocolHandshake.java:182: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1550:  response.setState(ErrorCodes.SUCCESS_STRING);
    1551:  ^
    1552:  java\src\org\openqa\selenium\remote\W3CHandshakeResponse.java:53: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1553:  new ErrorCodes().toStatus((String) rawError, Optional.of(tuple.getStatusCode())));
    1554:  ^
    1555:  java\src\org\openqa\selenium\remote\W3CHandshakeResponse.java:56: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1556:  new ErrorCodes().getExceptionType((String) rawError);
    1557:  ^
    1558:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:44: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1559:  private final ErrorCodes errorCodes = new ErrorCodes();
    1560:  ^
    1561:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:44: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1562:  private final ErrorCodes errorCodes = new ErrorCodes();
    1563:  ^
    1564:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:55: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1565:  int status = response.getStatus() == ErrorCodes.SUCCESS ? HTTP_OK : HTTP_INTERNAL_ERROR;
    1566:  ^
    1567:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:101: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1568:  response.setStatus(ErrorCodes.UNKNOWN_COMMAND);
    1569:  ^
    1570:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:103: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1571:  response.setStatus(ErrorCodes.UNHANDLED_ERROR);
    1572:  ^
    1573:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:117: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1574:  response.setStatus(ErrorCodes.SUCCESS);
    1575:  ^
    1576:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:118: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1577:  response.setState(errorCodes.toState(ErrorCodes.SUCCESS));
    1578:  ^
    1579:  java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:124: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1580:  response.setState(errorCodes.toState(ErrorCodes.SUCCESS));
    1581:  ^
    1582:  java\src\org\openqa\selenium\remote\codec\w3c\W3CHttpResponseCodec.java:70: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1583:  private final ErrorCodes errorCodes = new ErrorCodes();
    1584:  ^
    1585:  java\src\org\openqa\selenium\remote\codec\w3c\W3CHttpResponseCodec.java:70: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1586:  private final ErrorCodes errorCodes = new ErrorCodes();
    1587:  ^
    1588:  java\src\org\openqa\selenium\remote\codec\w3c\W3CHttpResponseCodec.java:93: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1589:  response.setStatus(ErrorCodes.UNKNOWN_COMMAND);
    1590:  ^
    1591:  java\src\org\openqa\selenium\remote\codec\w3c\W3CHttpResponseCodec.java:98: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1592:  response.setStatus(ErrorCodes.UNHANDLED_ERROR);
    1593:  ^
    1594:  java\src\org\openqa\selenium\remote\codec\w3c\W3CHttpResponseCodec.java:145: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1595:  response.setStatus(ErrorCodes.SUCCESS);
    ...
    
    1708:  �[32m[2,376 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/LocalShippingSharp.d.ts; 111s disk-cache ... (4 actions, 2 running)
    1709:  �[32m[2,376 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/Looks4Rounded.js; 112s disk-cache ... (4 actions, 2 running)
    1710:  �[32m[2,376 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/Man.d.ts; 113s disk-cache ... (4 actions, 2 running)
    1711:  �[32m[2,377 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/MarkEmailUnreadSharp.js, 663 B / 663 B; 114s disk-cache ... (4 actions, 1 running)
    1712:  �[32m[2,377 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/MenuOutlined.js; 115s disk-cache ... (4 actions, 1 running)
    1713:  �[32m[2,377 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/MobileFriendlyOutlined.d.ts; 116s disk-cache ... (4 actions, 1 running)
    1714:  �[32m[2,378 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/MonitorWeight.d.ts; 117s disk-cache ... (4 actions, 1 running)
    1715:  �[32m[2,379 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/MovieCreationOutlined.js; 118s disk-cache ... (3 actions, 1 running)
    1716:  �[32m[2,379 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/NearbyError.d.ts; 119s disk-cache ... (3 actions, 1 running)
    1717:  �[32m[2,379 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/NoEncryptionOutlined.d.ts; 121s disk-cache ... (3 actions, 2 running)
    1718:  �[32m[2,379 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/OneK.d.ts; 123s disk-cache ... (3 actions, 2 running)
    1719:  �[32m[2,380 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/Padding.d.ts; 124s disk-cache ... (3 actions, 1 running)
    1720:  �[32m[2,381 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/ParkOutlined.d.ts; 125s disk-cache ... (3 actions, 1 running)
    1721:  �[32m[2,383 / 2,409]�[0m Splitting Javascript ../../../javascript/grid-ui/src/index.tsx [esbuild]; Downloading node_modules/.aspect_rules_js/@[email protected]_60647716/node_modules/@mui/icons-material/PeopleOutlineTwoTone.d.ts; 126s disk-cache ... (2 actions, 0 running)
    1722:  �[32mINFO: �[0mFrom Building java/test/org/openqa/selenium/remote/libsmall-tests-test-lib.jar (5 source files) and running annotation processors (AutoServiceProcessor):
    1723:  java\test\org\openqa\selenium\remote\WebDriverFixture.java:170: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal
    1724:  response.setStatus(new ErrorCodes().toStatus(state, Optional.of(400)));
    ...
    
    1788:  �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest (see D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test_attempts/attempt_1.log)
    1789:  �[32m[2,400 / 2,413]�[0m 1 / 5 tests;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 50s local, disk-cache ... (4 actions running)
    1790:  �[32m[2,400 / 2,413]�[0m 1 / 5 tests;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 52s local, disk-cache ... (4 actions running)
    1791:  �[32m[2,401 / 2,413]�[0m 1 / 5 tests;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 53s local, disk-cache ... (4 actions, 3 running)
    1792:  �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest (see D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test_attempts/attempt_2.log)
    1793:  �[32m[2,401 / 2,413]�[0m 1 / 5 tests;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 54s local, disk-cache ... (4 actions, 3 running)
    1794:  �[32m[2,401 / 2,413]�[0m 1 / 5 tests;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 56s local, disk-cache ... (4 actions running)
    1795:  �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest (see D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test.log)
    1796:  �[31m�[1mFAILED: �[0m//java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest (Summary)
    1797:  ==================== Test output for //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest:
    1798:  D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test.log
    1799:  Failures: 7
    1800:  D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test_attempts/attempt_1.log
    1801:  ?) shouldThrowNumberFormatException() (org.openqa.selenium.chrome.ChromeDriverFunctionalTest)
    1802:  D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test_attempts/attempt_2.log
    1803:  org.opentest4j.AssertionFailedError: 
    1804:  �[32mINFO: �[0mFrom Testing //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest:
    1805:  Expecting message to be:
    1806:  "Couldn't format the port numbers because the System Language is arabic: "--port=?????", please make sure to add the required arguments "-Duser.language=en -Duser.region=US" to your JVM, for more info please visit :
    1807:  https://www.selenium.dev/documentation/webdriver/browsers/"
    1808:  but was:
    1809:  "Couldn't format the port numbers because the System Language is arabic: "--port=?????", please make sure to add the required arguments "-Duser.language=en -Duser.region=US" to your JVM, for more info please visit :
    1810:  https://www.selenium.dev/documentation/webdriver/browsers/"
    1811:  Throwable that failed the check:
    ...
    
    1948:  at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    1949:  at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    1950:  at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    1951:  at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    1952:  at org.openqa.selenium.remote.RemoteWebDriverBuilder.getLocalDriver(RemoteWebDriverBuilder.java:310)
    1953:  at org.openqa.selenium.remote.RemoteWebDriverBuilder.build(RemoteWebDriverBuilder.java:364)
    1954:  at org.openqa.selenium.chrome.ChromeDriverFunctionalTest.builderOverridesDefaultChromeOptions(ChromeDriverFunctionalTest.java:71)
    1955:  ?) driverOverridesDefaultClientConfig() (org.openqa.selenium.chrome.ChromeDriverFunctionalTest)
    1956:  java.lang.AssertionError: 
    ...
    
    2035:  at org.openqa.selenium.testing.JupiterTestBase.prepareEnvironment(JupiterTestBase.java:84)
    2036:  at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    2037:  at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    2038:  at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    2039:  ================================================================================
    2040:  ==================== Test output for //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest:
    2041:  Failures: 7
    2042:  ?) shouldThrowNumberFormatException() (org.openqa.selenium.chrome.ChromeDriverFunctionalTest)
    2043:  org.opentest4j.AssertionFailedError: 
    2044:  Expecting message to be:
    2045:  "Couldn't format the port numbers because the System Language is arabic: "--port=????", please make sure to add the required arguments "-Duser.language=en -Duser.region=US" to your JVM, for more info please visit :
    2046:  https://www.selenium.dev/documentation/webdriver/browsers/"
    2047:  but was:
    2048:  "Couldn't format the port numbers because the System Language is arabic: "--port=????", please make sure to add the required arguments "-Duser.language=en -Duser.region=US" to your JVM, for more info please visit :
    2049:  https://www.selenium.dev/documentation/webdriver/browsers/"
    2050:  Throwable that failed the check:
    ...
    
    2187:  at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    2188:  at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    2189:  at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    2190:  at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    2191:  at org.openqa.selenium.remote.RemoteWebDriverBuilder.getLocalDriver(RemoteWebDriverBuilder.java:310)
    2192:  at org.openqa.selenium.remote.RemoteWebDriverBuilder.build(RemoteWebDriverBuilder.java:364)
    2193:  at org.openqa.selenium.chrome.ChromeDriverFunctionalTest.builderOverridesDefaultChromeOptions(ChromeDriverFunctionalTest.java:71)
    2194:  ?) driverOverridesDefaultClientConfig() (org.openqa.selenium.chrome.ChromeDriverFunctionalTest)
    2195:  java.lang.AssertionError: 
    ...
    
    2274:  at org.openqa.selenium.testing.JupiterTestBase.prepareEnvironment(JupiterTestBase.java:84)
    2275:  at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    2276:  at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    2277:  at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    2278:  ================================================================================
    2279:  ==================== Test output for //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest:
    2280:  Failures: 7
    2281:  ?) shouldThrowNumberFormatException() (org.openqa.selenium.chrome.ChromeDriverFunctionalTest)
    2282:  org.opentest4j.AssertionFailedError: 
    2283:  Expecting message to be:
    2284:  "Couldn't format the port numbers because the System Language is arabic: "--port=????", please make sure to add the required arguments "-Duser.language=en -Duser.region=US" to your JVM, for more info please visit :
    2285:  https://www.selenium.dev/documentation/webdriver/browsers/"
    2286:  but was:
    2287:  "Couldn't format the port numbers because the System Language is arabic: "--port=????", please make sure to add the required arguments "-Duser.language=en -Duser.region=US" to your JVM, for more info please visit :
    2288:  https://www.selenium.dev/documentation/webdriver/browsers/"
    2289:  Throwable that failed the check:
    ...
    
    2426:  at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
    2427:  at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
    2428:  at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    2429:  at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
    2430:  at org.openqa.selenium.remote.RemoteWebDriverBuilder.getLocalDriver(RemoteWebDriverBuilder.java:310)
    2431:  at org.openqa.selenium.remote.RemoteWebDriverBuilder.build(RemoteWebDriverBuilder.java:364)
    2432:  at org.openqa.selenium.chrome.ChromeDriverFunctionalTest.builderOverridesDefaultChromeOptions(ChromeDriverFunctionalTest.java:71)
    2433:  ?) driverOverridesDefaultClientConfig() (org.openqa.selenium.chrome.ChromeDriverFunctionalTest)
    2434:  java.lang.AssertionError: 
    ...
    
    2510:  at org.openqa.selenium.testing.SeleniumExtension.actuallyCreateDriver(SeleniumExtension.java:276)
    2511:  at org.openqa.selenium.testing.SeleniumExtension.actuallyCreateDriver(SeleniumExtension.java:265)
    2512:  at org.openqa.selenium.testing.SeleniumExtension.getDriver(SeleniumExtension.java:254)
    2513:  at org.openqa.selenium.testing.JupiterTestBase.prepareEnvironment(JupiterTestBase.java:84)
    2514:  at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    2515:  at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    2516:  at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    2517:  ================================================================================
    2518:  �[32m[2,402 / 2,413]�[0m 2 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 58s local, disk-cache ... (3 actions running)
    2519:  �[32m[2,402 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest; 67s local, disk-cache ... (3 actions running)
    2520:  �[32m[2,403 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest; 34s local, disk-cache ... (2 actions running)
    2521:  �[32mINFO: �[0mFrom PackageZip javascript/grid-ui/react-zip.jar:
    2522:  C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_cuy96q3c\runfiles\rules_python~~python~python_3_9_x86_64-pc-windows-msvc\lib\zipfile.py:1522: UserWarning: Duplicate name: 'grid-ui/'
    2523:  return self._open_to_write(zinfo, force_zip64=force_zip64)
    2524:  �[32m[2,404 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest; 40s local, disk-cache ... (2 actions, 1 running)
    2525:  �[32m[2,405 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest; 41s local, disk-cache ... (2 actions running)
    2526:  �[32m[2,406 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest; 43s local, disk-cache ... (2 actions, 1 running)
    2527:  �[32m[2,406 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest; 44s local, disk-cache ... (2 actions running)
    2528:  �[32m[2,407 / 2,413]�[0m 3 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest; 45s local, disk-cache ... (2 actions, 1 running)
    2529:  �[32m[2,413 / 2,414]�[0m 4 / 5 tests, �[31m�[1m1 failed�[0m;�[0m [Prepa] Testing //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest
    2530:  �[32m[2,413 / 2,414]�[0m 4 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest; 1s disk-cache
    2531:  �[32m[2,413 / 2,414]�[0m 4 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest; 0s local, disk-cache
    2532:  �[32m[2,413 / 2,414]�[0m 4 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest; 8s local, disk-cache
    2533:  �[32m[2,413 / 2,414]�[0m 4 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest; 38s local, disk-cache
    2534:  �[32m[2,413 / 2,414]�[0m 5 / 5 tests, �[31m�[1m1 failed�[0m;�[0m Testing //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest; 56s local, disk-cache
    2535:  �[32mINFO: �[0mFound 5 test targets...
    2536:  �[32mINFO: �[0mElapsed time: 397.494s, Critical Path: 297.80s
    2537:  �[32mINFO: �[0m2153 processes: 1282 disk cache hit, 787 internal, 82 local, 2 worker.
    2538:  �[32mINFO: �[0mBuild completed, 1 test FAILED, 2153 total actions
    2539:  //java/test/org/openqa/selenium/federatedcredentialmanagement:FederatedCredentialManagementTest �[0m�[32mPASSED�[0m in 67.6s
    2540:  //java/test/org/openqa/selenium/firefox:FirefoxDriverBuilderTest         �[0m�[32mPASSED�[0m in 46.5s
    2541:  //java/test/org/openqa/selenium/grid/router:RemoteWebDriverDownloadTest  �[0m�[32mPASSED�[0m in 56.5s
    2542:  //java/test/org/openqa/selenium/remote:RemoteWebDriverBuilderTest        �[0m�[32mPASSED�[0m in 13.6s
    2543:  //java/test/org/openqa/selenium/chrome:ChromeDriverFunctionalTest        �[0m�[31m�[1mFAILED�[0m in 3 out of 3 in 4.3s
    2544:  Stats over 3 runs: max = 4.3s, min = 3.2s, avg = 3.7s, dev = 0.4s
    2545:  D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test.log
    2546:  D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test_attempts/attempt_1.log
    2547:  D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest/test_attempts/attempt_2.log
    2548:  Executed 5 out of 5 tests: 4 tests pass and �[0m�[31m�[1m1 fails locally�[0m.
    2549:  There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
    2550:  �[0m
    2551:  ##[error]Process completed with exit code 1.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    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.

    1 participant