Closed selenium-ci closed 3 months ago
โฑ๏ธ Estimated effort to review: 2 ๐ต๐ตโชโชโช |
๐งช No relevant tests |
๐ No security concerns identified |
โก Key issues to review URL Verification Ensure that the new URLs for packages and drivers are correct and accessible. Checksum Verification Verify that the new SHA256 checksums match the files at the specified URLs to ensure file integrity. |
Category | Suggestion | Score |
Possible issue |
Verify the accuracy of URLs and SHA256 hashes, and ensure file paths in the 'move' dictionary are correct___ **Ensure that the URL and SHA256 hash for the 'mac_edge' package are correct and thatthe file path in the 'move' dictionary matches the actual structure of the downloaded package. This is crucial to avoid runtime errors due to incorrect file paths or corrupted downloads due to hash mismatches.** [common/repositories.bzl [124-130]](https://github.com/SeleniumHQ/selenium/pull/14331/files#diff-25d82cd18102fed27d3202000e1f1b3a56a85ad2848236d91989cd30a3952401R124-R130) ```diff +pkg_archive( + name = "mac_edge", + url = "https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/dd910ebc-f59d-4ea2-b18b-81a8a163e54f/MicrosoftEdge-127.0.2651.86.pkg", + sha256 = "67893bc929315ae6798d93ccce5386c81e8f5b544b14ba31c8ddcaea401f2ced", + move = { + "MicrosoftEdge-127.0.2651.86.pkg/Payload/Microsoft Edge.app": "Edge.app", + }, + build_file_content = """ - ``` - [ ] **Apply this suggestion** Suggestion importance[1-10]: 8Why: Verifying the accuracy of URLs, SHA256 hashes, and file paths is crucial for preventing runtime errors and ensuring the integrity of the downloaded files. This suggestion addresses a significant potential issue. | 8 |
Maintainability |
Use a variable for the version number in URLs and hashes to simplify updates and maintain consistency___ **Consider using a variable for the version number '127.0.2651.74' in the URL andSHA256 hash for 'linux_edgedriver' to ensure consistency and ease future updates. This will help in maintaining the code and reduce the chances of errors during updates.** [common/repositories.bzl [145-147]](https://github.com/SeleniumHQ/selenium/pull/14331/files#diff-25d82cd18102fed27d3202000e1f1b3a56a85ad2848236d91989cd30a3952401R145-R147) ```diff +version = "127.0.2651.74" http_archive( name = "linux_edgedriver", - url = "https://msedgedriver.azureedge.net/127.0.2651.74/edgedriver_linux64.zip", + url = "https://msedgedriver.azureedge.net/" + version + "/edgedriver_linux64.zip", sha256 = "5689b970f61abb98fa1147cac8daf8b7c6604862345f449ed7bc432f61ee6ab3", build_file_content = """ ``` - [ ] **Apply this suggestion** Suggestion importance[1-10]: 7Why: Using a variable for the version number improves maintainability and reduces the risk of errors during updates. This is a good practice for code consistency and future-proofing. | 7 |
**Action:** .NET / Browser Tests / Browser Tests |
**Failed stage:** [Run Bazel](https://github.com/SeleniumHQ/selenium/actions/runs/10207879199/job/28243490645) [โ] |
**Failed test name:** ElementFindingTest-firefox, ElementFindingTest-chrome |
**Failure summary:**
The action failed because two tests, ElementFindingTest-firefox and ElementFindingTest-chrome , failed to execute. The failure was due to the following reasons: WaitableProcess::Create function in the process.cc file and the AsExecutablePathForCreateProcess function in the util.cc file.GetShortPathNameW function failed to shorten the path for the test executables. |
Relevant error logs:```yaml 1: ##[group]Operating System 2: Microsoft Windows Server 2022 ... 696: [32m[1,157 / 2,105][0m Calculating 712 JavaScript deps to javascript/atoms/deps.js; 14s local ... (4 actions running) 697: [32m[1,158 / 2,105][0m Compiling src/google/protobuf/compiler/csharp/csharp_field_base.cc [for tool]; 2s local ... (4 actions running) 698: [32m[1,160 / 2,105][0m Compiling src/google/protobuf/compiler/csharp/csharp_field_base.cc [for tool]; 3s local ... (4 actions running) 699: [32m[1,162 / 2,105][0m Action java/src/org/openqa/selenium/manager/libmanager-module.jar; 1s local ... (4 actions, 3 running) 700: [32m[1,163 / 2,105][0m Action java/src/org/openqa/selenium/manager/libmanager-module.jar; 2s local ... (4 actions, 2 running) 701: [32m[1,165 / 2,105][0m Compiling src/google/protobuf/util/internal/protostream_objectwriter.cc [for tool]; 1s local ... (4 actions, 3 running) 702: [32m[1,166 / 2,105][0m Compiling src/google/protobuf/util/internal/protostream_objectwriter.cc [for tool]; 2s local ... (4 actions running) 703: [32mINFO: [0mFrom Building java/src/org/openqa/selenium/remote/libapi-class.jar (69 source files): 704: java\src\org\openqa\selenium\remote\ErrorHandler.java:46: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 705: private final ErrorCodes errorCodes; 706: ^ 707: java\src\org\openqa\selenium\remote\ErrorHandler.java:60: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 708: this.errorCodes = new ErrorCodes(); 709: ^ 710: java\src\org\openqa\selenium\remote\ErrorHandler.java:68: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 711: public ErrorHandler(ErrorCodes codes, boolean includeServerErrors) { 712: ^ 713: java\src\org\openqa\selenium\remote\Response.java:97: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 714: ErrorCodes errorCodes = new ErrorCodes(); 715: ^ 716: java\src\org\openqa\selenium\remote\Response.java:97: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 717: ErrorCodes errorCodes = new ErrorCodes(); 718: ^ 719: java\src\org\openqa\selenium\remote\ProtocolHandshake.java:181: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 720: response.setStatus(ErrorCodes.SUCCESS); 721: ^ 722: java\src\org\openqa\selenium\remote\ProtocolHandshake.java:182: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 723: response.setState(ErrorCodes.SUCCESS_STRING); 724: ^ 725: java\src\org\openqa\selenium\remote\W3CHandshakeResponse.java:53: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 726: new ErrorCodes().toStatus((String) rawError, Optional.of(tuple.getStatusCode()))); 727: ^ 728: java\src\org\openqa\selenium\remote\W3CHandshakeResponse.java:56: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 729: new ErrorCodes().getExceptionType((String) rawError); 730: ^ 731: 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 732: private final ErrorCodes errorCodes = new ErrorCodes(); 733: ^ 734: 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 735: private final ErrorCodes errorCodes = new ErrorCodes(); 736: ^ 737: 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 738: int status = response.getStatus() == ErrorCodes.SUCCESS ? HTTP_OK : HTTP_INTERNAL_ERROR; 739: ^ 740: 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 741: response.setStatus(ErrorCodes.UNKNOWN_COMMAND); 742: ^ 743: 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 744: response.setStatus(ErrorCodes.UNHANDLED_ERROR); 745: ^ 746: 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 747: response.setStatus(ErrorCodes.SUCCESS); 748: ^ 749: java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:125: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 750: response.setState(errorCodes.toState(ErrorCodes.SUCCESS)); 751: ^ 752: java\src\org\openqa\selenium\remote\codec\AbstractHttpResponseCodec.java:131: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal 753: response.setState(errorCodes.toState(ErrorCodes.SUCCESS)); 754: ^ 755: 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 756: private final ErrorCodes errorCodes = new ErrorCodes(); 757: ^ 758: 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 759: private final ErrorCodes errorCodes = new ErrorCodes(); 760: ^ 761: 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 762: response.setStatus(ErrorCodes.UNKNOWN_COMMAND); 763: ^ 764: 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 765: response.setStatus(ErrorCodes.UNHANDLED_ERROR); 766: ^ 767: 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 768: response.setStatus(ErrorCodes.SUCCESS); ... 885: [32m[1,581 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/labs/useragent:util; 0s worker ... (4 actions, 3 running) 886: [32m[1,587 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/i18n:datetimepatternsext; 1s worker ... (4 actions, 3 running) 887: [32m[1,595 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/iter:iter; 0s worker ... (4 actions running) 888: [32m[1,603 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/net:wrapperxmlhttpfactory; 0s worker ... (4 actions, 3 running) 889: [32m[1,643 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/crypt:aes; 0s worker ... (4 actions running) 890: [32m[1,699 / 2,105][0m [Prepa] Checking 1 JS files in @@io_bazel_rules_closure//closure/library/html:safehtml 891: [32m[1,720 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/useragent:flash; 0s worker ... (4 actions, 3 running) 892: [32m[1,748 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/net:jsloader; 0s worker ... (4 actions, 2 running) 893: [32m[1,773 / 2,105][0m Checking 1 JS files in @@io_bazel_rules_closure//closure/library/fs:error; 0s worker ... (4 actions, 3 running) ... 926: [32m[2,105 / 2,105][0m checking cached actions 927: [32m[2,105 / 2,107][0m [Prepa] Testing //dotnet/test/common:ElementFindingTest-firefox ... (2 actions, 0 running) 928: [32m[2,105 / 2,107][0m [Prepa] Testing //dotnet/test/common:ElementFindingTest-chrome; 4s ... (2 actions, 0 running) 929: [31m[1mFAIL: [0m//dotnet/test/common:ElementFindingTest-firefox (see D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild-ST-8fd7485a76d3/testlogs/dotnet/test/common/ElementFindingTest-firefox/test.log) 930: [31m[1mFAIL: [0m//dotnet/test/common:ElementFindingTest-chrome (see D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild-ST-8fd7485a76d3/testlogs/dotnet/test/common/ElementFindingTest-chrome/test.log) 931: [32mINFO: [0mFrom Testing //dotnet/test/common:ElementFindingTest-chrome: 932: ==================== Test output for //dotnet/test/common:ElementFindingTest-chrome: 933: [32mINFO: [0mFrom Testing //dotnet/test/common:ElementFindingTest-firefox: 934: ERROR(tools/test/windows/tw.cc:1302) ERROR: src/main/native/windows/process.cc(95): WaitableProcess::Create(D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat): ERROR: src/main/native/windows/util.cc(292): AsExecutablePathForCreateProcess(D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat): ERROR: src/main/native/windows/util.cc(262): GetShortPathNameW(\\?\D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat): cannot shorten the path enough 935: ERROR(tools/test/windows/tw.cc:1479) Failed to start test process (arg: D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-chrome\net8.0\WebDriver.Common.Tests.dll.bat) 936: ================================================================================ 937: ==================== Test output for //dotnet/test/common:ElementFindingTest-firefox: 938: ERROR(tools/test/windows/tw.cc:1302) ERROR: src/main/native/windows/process.cc(95): WaitableProcess::Create(D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat): ERROR: src/main/native/windows/util.cc(292): AsExecutablePathForCreateProcess(D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat): ERROR: src/main/native/windows/util.cc(262): GetShortPathNameW(\\?\D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat): cannot shorten the path enough 939: ERROR(tools/test/windows/tw.cc:1479) Failed to start test process (arg: D:\_bazel\execroot\_main\bazel-out\x64_windows-fastbuild-ST-8fd7485a76d3\bin\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat.runfiles\_main\dotnet\test\common\ElementFindingTest-firefox\net8.0\WebDriver.Common.Tests.dll.bat) 940: ================================================================================ 941: [32mINFO: [0mFound 2 test targets... 942: [32mINFO: [0mElapsed time: 458.041s, Critical Path: 107.83s 943: [32mINFO: [0m2107 processes: 816 internal, 489 local, 802 worker. 944: [32mINFO: [0mBuild completed, 2 tests FAILED, 2107 total actions 945: //dotnet/test/common:ElementFindingTest-chrome [0m[31m[1mFAILED[0m in 0.1s 946: D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild-ST-8fd7485a76d3/testlogs/dotnet/test/common/ElementFindingTest-chrome/test.log 947: //dotnet/test/common:ElementFindingTest-firefox [0m[31m[1mFAILED[0m in 0.1s 948: D:/_bazel/execroot/_main/bazel-out/x64_windows-fastbuild-ST-8fd7485a76d3/testlogs/dotnet/test/common/ElementFindingTest-firefox/test.log 949: Executed 2 out of 2 tests: [0m[31m[1m2 fail locally[0m. 950: [0m 951: ##[error]Process completed with exit code 1. ``` |
User description
This is an automated pull request to update pinned browsers and drivers
Merge after verify the new browser versions properly passing the tests and no bugs need to be filed
PR Type
Enhancement, Other
Description
mac_edge
package to a new version.linux_edge
package definition from the repository.linux_edgedriver
package to a new version.mac_edgedriver
package to a new version.Changes walkthrough ๐
repositories.bzl
Update browser and driver versions and checksums
common/repositories.bzl
mac_edge
package.linux_edge
package definition.linux_edgedriver
package.mac_edgedriver
package.