Skip to content

Make the test suite is compatible with --enable-frozen-string-literal - #10235

Merged
byroot merged 1 commit into
ruby:masterfrom
Shopify:enable-frozen-string-literal-compile
Mar 14, 2024
Merged

Make the test suite is compatible with --enable-frozen-string-literal#10235
byroot merged 1 commit into
ruby:masterfrom
Shopify:enable-frozen-string-literal-compile

Conversation

@casperisfine

@casperisfine casperisfine commented Mar 13, 2024

Copy link
Copy Markdown
Contributor

As preparation for https://bugs.ruby-lang.org/issues/20205 making sure the test suite is compatible with frozen string literals is making things easier.

Note that spec/ is being handled upstream: ruby/spec#1142

@casperisfine
casperisfine force-pushed the enable-frozen-string-literal-compile branch 2 times, most recently from f195b9c to 04f45a7 Compare March 13, 2024 12:02
@cloudbees-smart-tests

This comment has been minimized.

@casperisfine
casperisfine force-pushed the enable-frozen-string-literal-compile branch 4 times, most recently from b583fa5 to d5ae988 Compare March 13, 2024 14:22
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/spec/runner/mspec_spec.rb Fixed
Comment thread spec/mspec/lib/mspec/helpers/ruby_exe.rb Outdated
Comment thread spec/ruby/core/complex/inspect_spec.rb Outdated
@casperisfine
casperisfine force-pushed the enable-frozen-string-literal-compile branch from 0edf492 to 0ab9078 Compare March 13, 2024 17:19
casperisfine pushed a commit to casperisfine/mspec that referenced this pull request Mar 13, 2024
Ref: ruby/ruby#10235

As discussed upstream, the mutability is only used in one spec, `path.rb`:

```ruby
    @name = +"file_to_path"
    @path = tmp(@name)
```

For all the others it doesn't matter if the argument is mutated or not.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/mspec that referenced this pull request Mar 13, 2024
Ref: ruby/ruby#10235

As discussed upstream, the mutability is only used in one spec, `path.rb`:

```ruby
    @name = +"file_to_path"
    @path = tmp(@name)
```

For all the others it doesn't matter if the argument is mutated or not.
eregon pushed a commit to ruby/mspec that referenced this pull request Mar 13, 2024
Ref: ruby/ruby#10235

As discussed upstream, the mutability is only used in one spec, `path.rb`:

```ruby
    @name = +"file_to_path"
    @path = tmp(@name)
```

For all the others it doesn't matter if the argument is mutated or not.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
@casperisfine
casperisfine force-pushed the enable-frozen-string-literal-compile branch from 0ab9078 to c38e212 Compare March 14, 2024 16:01
@casperisfine casperisfine changed the title Ensure test suite is compatible with --frozen-string-literal Make the test suite is compatible with --enable-frozen-string-literal Mar 14, 2024
@casperisfine
casperisfine force-pushed the enable-frozen-string-literal-compile branch from c38e212 to 43f2a04 Compare March 14, 2024 16:03
@casperisfine
casperisfine marked this pull request as ready for review March 14, 2024 16:12
@casperisfine
casperisfine requested a review from a team as a code owner March 14, 2024 16:12
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
@casperisfine
casperisfine force-pushed the enable-frozen-string-literal-compile branch from 43f2a04 to 940a9ae Compare March 14, 2024 16:25
@byroot
byroot enabled auto-merge (rebase) March 14, 2024 16:26
eregon added a commit to casperisfine/spec that referenced this pull request Mar 14, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.

Co-authored-by: Benoit Daloze <[email protected]>
eregon added a commit to casperisfine/spec that referenced this pull request Mar 14, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.

Co-authored-by: Benoit Daloze <[email protected]>
eregon added a commit to ruby/spec that referenced this pull request Mar 14, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.

Co-authored-by: Benoit Daloze <[email protected]>
@byroot
byroot merged commit 09d8c99 into ruby:master Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants