-
Notifications
You must be signed in to change notification settings - Fork 137
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
Merge 1.1 into master (redux) #262
base: master
Are you sure you want to change the base?
Conversation
... (this is relevant since Bundler >= 1.10.1)
* '1.1-stable' of github.com:jruby/jruby-rack: [fix] Don't let getSession cause an infinite loop if it throws IllegalStateException (jruby#216)
Old version still uses the removed rubygems.org v1 dependencies API, which breaks the build.
Update to latest mavengem
This fixes jruby#247 without introducing a dependency on the new catWithCodeRange in JRuby 9.4. It does depend on a now-deprecated method cat19 that will go away in the next year or so.
Coderange cat for 9.3
cb383b3
to
ebeafd2
Compare
…merge-1.1.x-changes # Conflicts: # .travis.yml # Appraisals # Gemfile # Gemfile.lock # gemfiles/rails30.gemfile.lock # gemfiles/rails31.gemfile.lock # gemfiles/rails32.gemfile # gemfiles/rails32.gemfile.lock # gemfiles/rails40.gemfile # gemfiles/rails40.gemfile.lock # gemfiles/rails41.gemfile # gemfiles/rails41.gemfile.lock # gemfiles/rails42.gemfile # gemfiles/rails42.gemfile.lock # gemfiles/railsNG.gemfile.lock # pom.xml # src/main/java/org/jruby/rack/RackInput.java # src/main/ruby/jruby/rack/booter.rb # src/main/ruby/jruby/rack/error_app.rb # src/main/ruby/jruby/rack/error_app/show_status.rb # src/main/ruby/jruby/rack/response.rb # src/main/ruby/jruby/rack/version.rb # src/spec/ruby/jruby/rack/booter_spec.rb # src/spec/ruby/jruby/rack/rails_booter_spec.rb # src/spec/ruby/rack/application_spec.rb
Not really sure these are correct, but they at least seem to match the intend logger changes and cant see how they were passing earlier given the changes.
ebeafd2
to
6abde22
Compare
💯 Chad, this is looking great 💚 anyways, I am very glad to see the work you did here. maybe some of it is redundant but there are a lot of important fixes that are otherwise missing from master, thus 👍 from me... |
Thanks @kares, nice to see you! I think the main thing I could use some input on was the intent of the earlier changes to the way the loggers work across the branches, and whether they are still relevant these days. I wasn't really sure what the main philosophy was for For example, in 6abde22 I made the tests pass, but I'm not sure if I am merging something which should only apply to 1.1 and has no role in 1.2 and why I needed to do this. 😅 Given the divergence of the branches, there is a risk of (accidentally) reinstating some historical complexity from 1.1 that was intended to be removed/ignored on 1.2. Other than that, my intention before un-drafting the PR was
I note that the old travis setup seemed to run the appraisals, so at some point they passed, but right now they are not included in the GHA CI which makes me a little nervous. Even if many of those rails versions do not now need to be supported/appraised, it'd probably be good to run at least Rails But ya, I also got a bit busy in personal life. Will have some more time/space back soon. |
That looks okay, in terms of the intent of the Logger implementation defaults changing in 1.2.0. Unfortunately, I am not fully up to speed and do not have an app to test it, but seems the default is not setup to be 100% usable (at least with recent Rails), these days: #260 (comment) Not sure what is really missing but indeed the idea was that since we JRuby-Rack supports redirecting logging to a Java backend to fully support that, with plain old Ruby |
@kares @headius so now that we got approval for this what is needed now? Land and release? Should we have some smoketest set up? I feel like this project has languished due to lack of knowing if it is safe to release. A question I would like answered is how do we QA this? At this point even if we don't answer this I feel like we should release just to get feedback on what else is still broken (forward progress even if wrong probably is right for now). That said, I feel like the lack of confidence is paralyzing our ability to move forward. |
Interested in your questions also, but give me a week or so to sanity check this? I'm not blocked here, just been very busy moving house so haven't had time to make progress 🙏 I'll have a go at the appraisals but since they are not running on master right now either this doesn't make things "worse" for 1.2 so probably can be decoupled 😅 |
I usually had a dummy sample Rails (as well as Sinatra) app that I would deploy to Tomcat as a .war and see how it's doing. Unless of course there were fixes which targeted other servers than I would deploy to multiple ones (e.g. if there was a Jetty related bug report) as needed... |
@kares I don't doubt there could be a lot of deploys to test all the things supported but even a golden path deploy I think would help improve confidence. At one point I think @mkristian had a bunch of CI tests on jruby/jruby doing some tests with web containers. |
👍 definitely, I recall those test from the main jruby repo. |
guees they disappeared because they were hard to debug but quite helpful to get JRuby work and ensure to work in different servlet contexts - classloader it was if I remember right |
I finally dug back to this in my inbox and could help land it... what needs to be done at this point? |
@headius At the moment I think it's on me to sanity check this in a real environment, plus look at the appraisals. I did an initial sanity test with GoCD and #259 is definitely fixed. However right now I am having a weird problem with expected session cookies not being set by browser on some Rack-managed routes leading to duplicate Jetty session creation on some routes (which then causes Jetty failures) which I am trying to solve. I need to verify it is related to changes made on |
Ok give me a shout if there's any way I can help! |
The problem above with my sanity test is unrelated to this change - there is some Firefox Total Cookie Protection change causing an issue with a same site iframe on http://localhost that doesn't happen in a real environment. Sigh :) All seems to be working fine with jruby-rack so far with GoCD locally. Will move on to see what I can do with the appraisals. |
Todo