Bug 268604 - run-jsc-stress-tests:2504:in `prepareBundle': undefined method `exists?' for File:Class (NoMethodError) with Ruby 3.2
Summary: run-jsc-stress-tests:2504:in `prepareBundle': undefined method `exists?' for ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Fujii Hironori
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-02-01 22:40 PST by Fujii Hironori
Modified: 2024-02-03 01:24 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2024-02-01 22:40:22 PST
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>'
Comment 1 Fujii Hironori 2024-02-01 22:41:40 PST
Ruby 3.2 removed `File.exists?`.
https://www.ruby-lang.org/en/news/2022/12/25/ruby-3-2-0-released/
Comment 2 Fujii Hironori 2024-02-01 22:49:44 PST
Pull request: https://github.com/WebKit/WebKit/pull/23726
Comment 3 EWS 2024-02-03 01:23:01 PST
Committed 274040@main (3b4f0c1d94b5): <https://commits.webkit.org/274040@main>

Reviewed commits have been landed. Closing PR #23726 and removing active labels.
Comment 4 Radar WebKit Bug Importer 2024-02-03 01:24:14 PST
<rdar://problem/122228112>