Bug 268604
Summary: | run-jsc-stress-tests:2504:in `prepareBundle': undefined method `exists?' for File:Class (NoMethodError) with Ruby 3.2 | ||
---|---|---|---|
Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> |
Component: | Tools / Tests | Assignee: | Fujii Hironori <Hironori.Fujii> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Fujii Hironori
run-jsc-stress-tests:2504:in `prepareBundle': undefined method `exists?' for File:Class (NoMethodError) with Ruby 3.2
PS C:\webkit\gc> perl Tools/Scripts/run-javascriptcore-tests --wincairo --debug --no-build --jsc-stress --ruby-runner --test-writer=ruby --verbose
The system cannot find the path specified.
Running: ruby Tools/Scripts/run-jsc-stress-tests -j C:\webkit\gc\WebKitBuild\Debug\bin64/jsc.exe -o C:\webkit\gc\WebKitBuild\Debug\bin64/jsc-stress-results --arch x86_64 PerformanceTests/SunSpider/tests/sunspider-1.0 PerformanceTests/JetStream/cdjs/cdjs-tests.yaml PerformanceTests/ARES-6/Air/airjs-tests.yaml PerformanceTests/ARES-6/Basic/basic-tests.yaml JSTests/executableAllocationFuzz.yaml JSTests/exceptionFuzz.yaml PerformanceTests/SunSpider/no-architecture-specific-optimizations.yaml PerformanceTests/SunSpider/shadow-chicken.yaml PerformanceTests/SunSpider/with-baseline-code-sharing.yaml PerformanceTests/SunSpider/tests/v8-v6 JSTests/stress JSTests/microbenchmarks JSTests/slowMicrobenchmarks.yaml PerformanceTests/SunSpider/profiler-test.yaml LayoutTests/jsc-layout-tests.yaml JSTests/typeProfiler.yaml JSTests/controlFlowProfiler.yaml JSTests/es6.yaml JSTests/modules.yaml JSTests/complex.yaml JSTests/ChakraCore.yaml JSTests/wasm.yaml --debug --ruby-runner --test-writer ruby --verbose --
Warning: did not find json or highline; some features will be disabled.
Run "sudo gem install json highline" to fix the issue.
Error: #<LoadError: cannot load such file -- highline>
Warning: cannot identify JSC framework, doing generic VM copy.
Tools/Scripts/run-jsc-stress-tests:2504:in `prepareBundle': undefined method `exists?' for File:Class (NoMethodError)
if (File.exists?(javaScriptCoreDLLPath))
^^^^^^^^
Did you mean? exist?
from Tools/Scripts/run-jsc-stress-tests:3324:in `prepareArtifacts'
from C:/webkit/gc/Tools/Scripts/webkitruby/jsc-stress-test/executor.rb:115:in `loop'
from Tools/Scripts/run-jsc-stress-tests:3436:in `runNormal'
from Tools/Scripts/run-jsc-stress-tests:3478:in `<main>'
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Ruby 3.2 removed `File.exists?`.
https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/23726
EWS
Committed 274040@main (3b4f0c1d94b5): <https://commits.webkit.org/274040@main>
Reviewed commits have been landed. Closing PR #23726 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/122228112>