Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
jruby/rakelib/rubyspec.rake at master · jruby/jruby · GitHub
Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
See all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
jruby
jruby
Repository navigation
Code
Issues
790
(790)
Pull requests
117
(117)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
jruby
/
rakelib
/
rubyspec.rake
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
183 lines (155 loc) · 5.17 KB
master
Breadcrumbs
jruby
/
rakelib
/
rubyspec.rake
Copy path
Top
File metadata and controls
Code
Blame
183 lines (155 loc) · 5.17 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
namespace
:spec
do
# This set of tasks will run ci and retrieve the proper version of specs.
# The specs below this section will run specs, but they will not retrieve
# the specs they run against. This is so we can run the similiar mspec
# runs against a stable and head version of the rubyspecs.
desc
"Run rubyspecs expected to pass in interpreted mode"
task
:ruby
=>
:ci_interpreted
desc
"Run rubyspecs expected to pass in interpreted mode"
task
:'ruby:int'
=>
:ci_interpreted
desc
"Run rubyspecs expected to pass in compiled mode"
task
:'ruby:jit'
=>
:ci_compiled
desc
"Run rubyspecs expected to pass in precompiled mode"
task
:'ruby:aot'
=>
:ci_precompiled
if
ENV
[
'CI'
]
# can't easily see file output on CI so we use specdoc
MSPEC_FORMAT
=
"s"
else
MSPEC_FORMAT
=
"d"
end
desc
"Run fast specs that do not spawn many subprocesses"
task
:'ruby:fast'
do
mspec
:format
=>
'd'
,
:spec_target
=>
":fast"
,
:spec_config
=>
"spec/jruby.mspec"
end
desc
"Run fast specs that do not spawn many subprocesses (prism)"
task
:'ruby:fast:prism'
do
mspec
:compile_mode
=>
"OFF"
,
:format
=>
MSPEC_FORMAT
,
:spec_target
=>
":fast"
,
:jruby_opts
=>
"--dev -Xparser.prism"
,
:spec_config
=>
"spec/jruby.mspec"
end
desc
"Run fast specs that do not spawn many subprocesses"
task
:'ruby:fast:jit'
do
mspec
:compile_mode
=>
"JIT"
,
:jit_threshold
=>
0
,
:format
=>
MSPEC_FORMAT
,
:spec_target
=>
":fast"
end
desc
"Run fast specs that do not spawn many subprocesses"
task
:'ruby:fast:int'
do
mspec
:compile_mode
=>
"OFF"
,
:format
=>
MSPEC_FORMAT
,
:spec_target
=>
":fast"
end
desc
"Run slow specs"
task
:'ruby:slow'
do
mspec
:compile_mode
=>
"OFF"
,
:format
=>
"s"
,
:spec_target
=>
":slow"
,
:jruby_opts
=>
"--dev"
end
desc
"Run debug specs"
task
:'ruby:debug'
do
mspec
:compile_mode
=>
"OFF"
,
:format
=>
"s"
,
:spec_target
=>
":debug"
,
:jruby_opts
=>
"--debug"
end
desc
"Run specs for work-in-progess features"
task
:'ruby:wip'
do
mspec
:command
=>
"run"
,
:compile_mode
=>
"OFF"
,
:format
=>
"s"
,
:spec_target
=>
":ci_files"
,
:jruby_opts
=>
"--dev"
,
:spec_config
=>
"spec/jruby.mspec"
,
:tags
=>
[
:wip
]
end
desc
"Run rubyspecs expected to pass"
task
:ci
=>
[
'spec:tagged'
]
task
:ci_interpreted
=>
[
'spec:interpreted'
]
task
:ci_compiled
=>
[
'spec:compiled'
]
task
:ci_precompiled
=>
[
'spec:precompiled'
]
desc
"Run all the specs including failures"
task
:ci_all
=>
[
'spec:all'
]
desc
"Run all the specs in precompiled mode"
task
:ci_all_precompiled
=>
[
'spec:all_precompiled'
]
# Note: For this point below it is your reponsibility to make sure specs
# are checked out.
# Each mode's mspec run aborts rake as soon as it fails, so there is no
# separate status check after all modes have run.
desc
"Run tagged specs in interpreted, JIT, and pre-compiled modes"
task
:tagged
=>
[
:interpreted
,
:compiled
,
:precompiled
]
desc
"Run all specs in interpreted, JIT, and pre-compiled modes"
task
:all
=>
[
:all_interpreted
,
:all_compiled
,
:all_precompiled
]
desc
"Tagged specs in interpreted mode only"
task
:interpreted
do
mspec
:compile_mode
=>
"OFF"
,
:format
=>
'd'
end
desc
"Tagged specs in JIT mode only (threshold=0)"
task
:compiled
do
mspec
:compile_mode
=>
"JIT"
,
:jit_threshold
=>
0
,
:format
=>
'd'
end
desc
"Tagged specs in JIT mode only (threshold=0)"
task
:'compiled:prism'
do
mspec
:compile_mode
=>
"JIT"
,
:jit_threshold
=>
0
,
:format
=>
'd'
:jruby_opts
=>
"-Xparser.prism"
end
desc
"Tagged specs in AOT mode only"
task
:precompiled
do
mspec
:compile_mode
=>
"FORCE"
,
:jit_threshold
=>
0
,
:format
=>
'd'
end
desc
"All specs in interpreted mode only"
task
:all_interpreted
do
mspec
:compile_mode
=>
"OFF"
,
:format
=>
'd'
end
desc
"All specs in JIT mode only (threshold=0)"
task
:all_compiled_18
do
mspec
:compile_mode
=>
"JIT"
,
:jit_threshold
=>
0
,
:format
=>
'd'
end
desc
"All specs in AOT mode only"
task
:all_precompiled
do
mspec
:compile_mode
=>
"FORCE"
,
:jit_threshold
=>
0
,
:format
=>
'd'
end
# Complimentary tasks for running specs
desc
"Retrieve latest tagged rubyspec git repository"
task
:fetch_latest_rubyspec_repo
do
unless
git_repo_exists?
RUBYSPEC_DIR
clean_spec_dirs
git_clone
(
'rubyspec'
,
RUBYSPEC_GIT_REPO
,
RUBYSPEC_DIR
)
else
git_fetch
(
'rubyspec'
,
RUBYSPEC_DIR
,
ignore_error
=
true
)
end
end
desc
"Retrieve latest tagged mspec git repository"
task
:fetch_latest_mspec_repo
do
unless
git_repo_exists?
MSPEC_DIR
git_clone
(
'mspec'
,
MSPEC_GIT_REPO
,
MSPEC_DIR
)
else
git_fetch
(
'mspec'
,
MSPEC_DIR
,
ignore_error
=
true
)
end
end
desc
"Clean up spec dirs"
task
:clean_specs
do
clean_spec_dirs
(
true
)
end
def
clean_spec_dirs
(
wipe_spec_dir
=
false
)
rm_rf
RUBYSPEC_DIR
if
wipe_spec_dir
rm_rf
MSPEC_DIR
rm_f
MSPEC_TAR_FILE
rm_f
File
.
join
(
SPEC_DIR
,
"rubyspecs.current.revision"
)
end
end
You can’t perform that action at this time.