Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frozen-string-literal fixes in eval'd code. #1136

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

pat
Copy link
Contributor

@pat pat commented Jun 28, 2017

Summary

The pragma comment doesn't pick up these uses because the code is eval'd on the fly.

Related:

How Has This Been Tested?

I've managed to get the test suite passing locally with the --enable-frozen-string-literal RUBYOPT flag, using my own copy of Aruba plus some related upgrading changes because Cucumber's been locked to an old Aruba version for quite some time. I've also used the rspec-core test suite (which makes use of Cucumber) and my local cucumber copy to confirm their test suite is green as well.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Given the pragma comments, I'm presuming being frozen-string-literal-friendly is a goal of Cucumber, hence pretty confident in labelling this a bug fix :)

Checklist:

  • I've added tests for my code
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

None of the checklist items here apply.

@danascheider
Copy link
Contributor

@pat Some of the AppVeyor failures are fixed on master now - if you can rebase we can see if that fixes everything. Thanks for your help!

@pat pat force-pushed the frozen-string-literals branch from bb9151e to 9aa704f Compare July 6, 2017 04:42
@pat
Copy link
Contributor Author

pat commented Jul 18, 2017

@danascheider it seems the AppVeyor build's still broken? Or at the very least, I don't think my changes are the source of the problem… but I don't have a Windows machine at hand to test with.

If there's any debugging help I can do though, do let me know!

@enkessler
Copy link
Contributor

The AppVeyor build was very briefly green at its start but didn't stay that way. It probably doesn't help that the Slack bot only posts about the Travis builds but the AppVeyor builds fail more quietly.

@stale
Copy link

stale bot commented Nov 8, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

@stale stale bot added the ⌛ stale Will soon be closed by stalebot unless there is activity label Nov 8, 2017
@pat
Copy link
Contributor Author

pat commented Nov 8, 2017

Can someone more knowledgeable let me know whether I should expect Appveyor to go green? Would rebasing this PR help matters? I don't feel I'm doing anything here that's going to behave differently on Windows.

@stale stale bot removed the ⌛ stale Will soon be closed by stalebot unless there is activity label Nov 8, 2017
@mattwynne
Copy link
Member

@pat I think a rebase should help, yes. The appveyor build has been green recently.

The pragma comment doesn't pick up these uses because the code is eval'd on the fly.
@pat pat force-pushed the frozen-string-literals branch from 9aa704f to 6a3bde3 Compare November 8, 2017 22:04
@pat
Copy link
Contributor Author

pat commented Nov 8, 2017

Indeed, looks like it's green now with the rebase :)

@stale
Copy link

stale bot commented Jan 7, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs.

@stale stale bot added the ⌛ stale Will soon be closed by stalebot unless there is activity label Jan 7, 2018
@pat
Copy link
Contributor Author

pat commented Jan 7, 2018

Anything further I can do that'd be useful in getting this merged? :) The build is green! 💚

@stale stale bot removed the ⌛ stale Will soon be closed by stalebot unless there is activity label Jan 7, 2018
Copy link
Contributor

@olleolleolle olleolleolle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@olleolleolle olleolleolle merged commit 89d5d93 into cucumber:master Jan 8, 2018
@aslakhellesoy
Copy link
Contributor

Hi @pat,

Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾

In return for this generous offer we hope you will:

  • ✅ Continue to use branches and pull requests. When someone on the core team approves a pull request (yours or someone else's), you're welcome to merge it yourself.
  • 💚 Commit to setting a good example by following and upholding our code of conduct in your interactions with other collaborators and users.
  • 💬 Join the community Slack channel to meet the rest of the team and make yourself at home.
  • ℹ️ Don't feel obliged to help, just do what you can if you have the time and the energy.
  • 🙋 Ask if you need anything. We're looking for feedback about how to make the project more welcoming, so please tell us!

On behalf of the Cucumber core team,
Aslak Hellesøy
Creator of Cucumber

@mattwynne
Copy link
Member

Welcome @pat!

@lock
Copy link

lock bot commented Jan 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants