jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Puffball has quit [Remote host closed the connection]
<kares> enebo: hey! checking - thanks
<kares> enebo: you're right I forgot to push - got distracted by merge conflicts
<kares> which I seem to always get while merging to master ... which is mesmerizing since I always tried to keep it clean and to work on 50-stable first
enebo has quit [Ping timeout: 265 seconds]
enebo has joined #jruby
<kares> enebo: and thanks for the change Result refactoring - guess it wasn't as hard to revert to a reasonable state as I thought :)
<kares> BTW> as I check the Rails suite before-and-after your change its :
<kares> 5280 runs, 14472 assertions, 20 failures, 16 errors, 31 skips (BEFORE)
<kares> 5280 runs, 14471 assertions, 17 failures, 16 errors, 31 skips (AFTER)
<kares> ... and esp. those are utc time failures are gone - so I am not crazy after-all since as I was looking at it I was quite sure this has been working
<kares> guess the price for not checking CI enough as we do changes
<kares> only BC date/time issues left but those are low priority and maybe even working on JRuby master
claudiuinberlin has joined #jruby
olle has joined #jruby
<GitHub26> [jruby] perlun opened issue #5128: eval in Rack::Builder prints "warning: `frozen_string_literal' is ignored after any tokens" https://git.io/vx1oE
<kares> hmm ... AR logging once again broken with PS under PG (got [["name", nil], ...]) ... have dealt with this before as well
m4rCsi_ has joined #jruby
desnudop1nguino has joined #jruby
xardion_ has joined #jruby
ChrisBr_ has joined #jruby
lanceball_ has joined #jruby
m4rCsi has quit [*.net *.split]
desnudopenguino has quit [*.net *.split]
xardion has quit [*.net *.split]
ChrisBr has quit [*.net *.split]
lanceball has quit [*.net *.split]
ChrisBr_ is now known as ChrisBr
cremes77 has joined #jruby
kith has joined #jruby
<enebo> kares: so I have a question about ColumnInfo
<enebo> kares: I see you transitioning toward String from RubyString
<kares> enebo: hey! am I :) ?
<enebo> kares: oh maybe not then :)
<kares> havent touched the JdbcResult stuff much myself
<kares> that column code was pbly done by rdubya ... exclusively
<enebo> kares: I think it was from your large merge
<kares> which one?
<kares> I mean which code
<enebo> I am talking about RubyJdbcConnection.ColumnData
<kares> ah sorry yes that existed for a long
<enebo> the way it is written today it depends on a static field which holds RubyString
<enebo> I made a changeset which reduced this back to RubyString name, and int type and it removed that issue
<enebo> but pushed responsibility on caller to make sure it was cached (which I think was only done in 2 places)
<kares> you mean the StringCache
<enebo> In truth I like the notion of how it is done in JdbcResult because it eliminates n boxes for 2 primitive arrays but with my latest change if you are making AR::Result that second primitive array is source to the column data
<enebo> yeah stringcache
<kares> yep I somehow put it up globally so that it leaves past the connection lifecycle
<kares> there was one place where it lived
<enebo> I see
<kares> never liked it but I thought what-the-heck instead of putting it as some internal data on a Ruby piece
<enebo> basically the idea is over a long running process which makes lots of connection instances we will not need to create new strings
<kares> yeah
<kares> esp. since the first thing each coll does is query the model meta-data -> lots of strings
<kares> * each conn
<enebo> we can probably leverage dedup strings at this point since I think we require 9k
<enebo> I am not sure if column strings are frozen in rails 5 though
<kares> yep we definitely do
<kares> I think they might be not
<kares> but I recall frozing them and all was fine :)
<enebo> heh well that makes it funny we share the same one though
<enebo> I was talking to tenderlove and he was thinking they should be frozen but our conversation trailed off
<enebo> I could see no evidence they are
<enebo> if they are each native adapter does it
<enebo> (RubyString) RubyString.newUnicodeString(context.runtime, bytes).freeze(context);
<enebo> doh I should look
edmz has quit [Read error: Connection reset by peer]
edmz_ has joined #jruby
<enebo> yeah I am thinking we can maybe just call into JRuby and not have this
<enebo> I just haven't looked to see how public that is in core
edmz_ is now known as edmz
<enebo> Ruby.freezeAndDedupString()
<kares> yeah that one makes sense
<kares> if its there in 9.1 at least
<kares> which it pbly is and 9.0 is way old?
<enebo> seemingly on 9.1 and master
<enebo> kares: yeah 9.0 is EOL and I am not sure if 50 would run on 2.1
jrafanie has joined #jruby
<enebo> actually I should look it up but I have told one person in the last week 9.0 has been EOL for 2 years
<kares> enebo: :)))
<kares> well if you told so
<kares> there's no way back ...
<enebo> Rails 5 requires Ruby 2.2.2 or newer.
<enebo> accoding to edgeguides
<kares> good - thought so
<kares> so 9.1 at min
<kares> that helps ...
<enebo> heh I don't recall what 9.0.6 was
<enebo> compatible with Ruby 2.2.x
<enebo> heheh
<enebo> well it is not supported
<enebo> I cannot imagine that 9.0.5.0 would even boot rails 5 and if it did it had enough memory leaks it would be unusable
<enebo> ah that doesn't work
<enebo> you need to make a RubyString first
<enebo> kares: I am going to make 51-stable off of master and master will be for 52 work
<enebo> rdubya: ^
<kares> noo this soon :)
<kares> double merge everything
<kares> enebo: you'll be looking into 5.2?
<enebo> kares: so how long do we wait to start working on 5.2
<kares> not sure till CI is green-ish ?
<kares> I do not mind but those merges are already demotivating since they do not go clean
<enebo> kares: ok a compromise will be to make a rails-5.2 branch which will still need merging
<kares> ah that would be good
<enebo> kares: so is master and 50-stable much different?
<kares> at least till we push the current stuff - a first release
<enebo> so here is another question then, what does releasable state mean for these two?
<kares> enebo: not sure I wasn't pushing master away - that is why I got surprised about having to do conflicts every time
<kares> maybe smt you or rdubya did?
<enebo> kares: I would not think you would see conflicts if we merge regularly
<enebo> perhaps that was our issue
<enebo> I have been looking at merging stable-50 -> master -> ...
<kares> maybe its due some work going master first and than being 'back-ported' in different order?
<enebo> but if we do this routinely the deltas should be reasonably small and we are not prolifically committing
<enebo> kares: yeah if there is a 5.1 specific fix which should not be on 5.0 that would be a conflict
<kares> doing it every time I feel I have done smt - but 2 last ended up in conflicts ;(
<enebo> kares: so let's talk about this perhaps 50 -> master is ultimately the wrong way?
<kares> is it?
<enebo> kares: I don't know. I am asking
<kares> I think its the good way
<enebo> kares: ok that was my original thought as well
<kares> maybe we should not land on master which is meant for 50 as well
<enebo> kares: yeah I am wondering how much stuff that would be at this point
<kares> which I guess a few things ended up ... rdubya should know better (seems so to me)
<enebo> kares: we don't really have tons of issues left in test failures
<enebo> kares: so logically we will have conflicts for n+1 behavioral changes potentially
<kares> yeah I am going thru a few of those as we speak
<enebo> not always but it is inevitable it will happen on occasion
<kares> okay
<kares> no biggie than but we shall follow the 50-stable first
<enebo> but for new point releases how many of these are serious
<kares> otherwise the double merges will nail us down
<enebo> yeah I think we should 50-stable -> 51-stable (when it exists) -> master
<kares> if there's a 51+master branch
<kares> agreed
<enebo> I don't think it should have tons of fallout over time because once 50 is mostly correct test wise it will be reported issues
<enebo> I somewhat feel those issues will tend to ripple through all releases but time will tell
<enebo> I will merge my work last night to master
<enebo> I was half waiting for you to comment on it
<enebo> heh conflict!
<enebo> I think that is fine though
<enebo> let's see how bad
<enebo> A single import statement overlap
<kares> sounds doable
<enebo> ultimately I see most conflicts being highly localized as well. Unless it is some big refactoring or a new feature which changes something internal
<enebo> we should probably make it a point on each logical/temporal set of commits to say we should merge right after landing those commits
<enebo> Then the person who made the changes will have to deal with the conflicts
<enebo> If it ends up being something they cannot resolve then they will need to talk to someone
<kares> +1
<kares> ^^ // cc rdubya
<rdubya> so we're always supposed to work on 50-stable first? Or just make sure to merge things as close to committing them as possible?
<enebo> rdubya: on for anything which is across both versions
<enebo> rdubya: if it is specifically 5.1 fix you do it on that branch
<rdubya> ok
<kares> rdubya: guess if you land on master and than pick on 50-stable a big piece you should merge back
<kares> so the next person doing its merge does not get conflicts he does not know that much about ...
<enebo> so if you only change on a newer branch you cannot really merge back to master or can you?
<enebo> if you could that would simplify this process and make it so your commit to the new release did not trip up next person
<kares> enebo: you mean the mess-up I left you with today?
<enebo> kares: did you? :P
<enebo> kares: oh forgetting to push
<kares> well I push-ed a master merge but not 50-stable :)
<enebo> that ended up being more your issue than mine
<kares> that is definitely quite wrong
<enebo> it happens
<enebo> I tend to do it more than I care to admit
<enebo> but a process of always merging through assuming one can is probably a worth the extra noise just so others don't need to say, hmm I wonder if I should include that
<enebo> I guess I don't know. If I see rdubya commit to master I assume he is making a 5.1 change and it is not meant for 5.0
<enebo> so that merge would not be hard for me
olle has quit [Quit: olle]
<rdubya> makes sense
<enebo> I think we all know the rules now so I don't see an issue...merge forward on any change you make
<enebo> courtesy merge :)
shellac has joined #jruby
<enebo> I did not test that merge :P only a single import statement was conflict and it was meant to be zero sum so we shall see
claudiuinberlin has quit [Ping timeout: 255 seconds]
cremes77 has quit [Quit: cremes77]
cremes77 has joined #jruby
<headius> lopex: I don't remember how to request the Nth character with jcodings
<headius> the onig naming always confuses me
<lopex> headius: not in jcodings
<lopex> headius: StringSupport.nth
<headius> ok, I'm fixing ByteList to honor toString and CharSequence properly
<headius> I'll copy that logic over for now
<headius> seems like it should live in jcodings
<lopex> yes
<lopex> long story
lanceball_ is now known as lanceball
lanceball has quit [Changing host]
lanceball has joined #jruby
<headius> heheh
<headius> no problem
<lopex> we talked about moving lots of string support to jcodings
<lopex> long time ago :P
<lopex> but it was easier to evolve at that time
<headius> yeah, these changes will rev bytelist to 2.0.0
<headius> I'm mostly attempting this now to see how much will break if we want to do it in 9.2
<headius> we need to fix it to use non-CharSequence methods in any case
<headius> e.g. realSize instead of length when we want byte length
<nirvdrum> I think you guys might want to break away from MRI and add variants that are code range aware.
<nirvdrum> StringSupport.nth on a CR_VALID UTF-8 string can byte hop, for instance.
<lopex> nirvdrum: encoding and cr is a good candidate for multimethods :P
<lopex> though through specializations you get something similar
cremes77 has quit [Quit: cremes77]
<enebo> kares: you happen to know why this happens on master for rails builds? https://travis-ci.org/jruby/activerecord-jdbc-adapter/jobs/361266708#L631
<headius> Java's always big-endian for char surrogates right?
<headius> pretty sure that's right
<lopex> i'd think so
<lopex> well wrt no utf-8 ?
<lopex> *non
<headius> wrt char[]
<headius> and supplementary codepoints
<headius> charAt needs to return the high surrogate if it's a supplementary codepoint
<headius> oh there's probably an accessor
<headius> ahh shoot...Java 1.7
<headius> bytelist require 1.7?
<headius> it's a 2.0 after all
<headius> looks like it was emitting 1.7 in build anyway
<enebo> headius: yeah 1.7 is fine
<enebo> headius: we are not supporting jruby 1.7.x any more either and it is a major version
<enebo> we also have been inching up to 1.7 in joni/jcodings somewhat recently
<enebo> lopex wanted to use a String switch
<lopex> enebo: already moved joni and jcodins
cremes77 has joined #jruby
<headius> cool
<headius> no worries then
cremes77 has quit [Client Quit]
cremes77 has joined #jruby
<lopex> nirvdrum: btw, that nonreflective jcodings is released
<headius> lopex: did you bump jruby master to use it too?
cremes77 has quit [Quit: cremes77]
<headius> in case anyone feels like writing some tests
<lopex> headius: there's much more tests now in jcodings
<headius> very cool
<lopex> headius: no, I didnt
<nirvdrum> lopex: Thanks. I saw but haven't had a chance to check it out yet.
<lopex> headius: whole encodings :P
cremes77 has joined #jruby
<headius> lopex: woohoo!
<lopex> headius: sad thing is almost all iso have varying implementations of case map
<lopex> hard to abstract efficiently
cremes77 has quit [Client Quit]
<lopex> we're up to 5 afaik
<lopex> wrt impls
<headius> ugh that's a bummer
<headius> lopex: any chance we'll see you in Krakow?
<lopex> most boring thing
<lopex> when ?
<headius> GeeCON is 9-11 May, we'll be there a day or two before and after
<headius> happy to buy you beers :-)
xardion_ has quit [Remote host closed the connection]
<headius> bleah I don't remember my sonatype pw
xardion has joined #jruby
<headius> enebo: my sonatype config is all messed up, can you deploy bytelist master for me?
<enebo> for a snapshot?
<enebo> headius: supposedly done
<headius> ok
<enebo> kares: ignore my online comment we do have a pom....not sure why we needed an .iml
<enebo> kares: but while I am asking how do I change our Rake/build env if I want to target 5.2?
<enebo> and good news...activerecord stopped shipping their test directory in the gem
<headius> enebo: how did you deploy that?
<enebo> mvn deploy
<enebo> I asked if you wanted a snapshot and it appears to have pushed one
<headius> oh I see, you bumped jcodings
<headius> yup ok
<enebo> headius: I did like 2 weeks ago
<enebo> headius: I just forgot to push it
<headius> hmm
<headius> ok
<enebo> headius: although we should be on latest now anyways
<headius> could you deploy again for me quick? I'm done now
<headius> forgot to add toByteString
<headius> enebo: ^
<enebo> did you add isEmpty()?
<enebo> headius: The 0 number of bytes check was in quite a few places
<headius> I did not
<headius> I'll add it now quick
shellac has quit [Quit: Leaving]
<headius> I guess we don't have ByteList hooked up to this channel
<headius> enebo: it's there
<headius> I am hovering over my enter key to push a JRuby branch that tries this stuff
<enebo> deploying!
<enebo> never coming back
<headius> yeah I think maven would have made a lot of people happier if they were non-verbose output by default
<headius> it's all that damn noise people make fun of
<headius> well, that and XML
<enebo> looks like sonatype is shitting itself
<headius> not working now?
<enebo> that file is still not downloaded yet
<headius> I have 2915ft until I can't push
<enebo> haha
<enebo> yeah oss is down as far as I can tell
<headius> 1900
<headius> bleah
<enebo> I cannot reach it in the browser either
<headius> well I'll push this and if you can get it to deploy later restart the build on this branch
<headius> it won't compile as is
<enebo> you do not really need this deployed to use it either
<enebo> not locally anyways
<headius> not locally
<headius> but travis will
<headius> ttfn!
<enebo> yep
<enebo> cya
<headius> branch is pushed
<GitHub11> [jruby] headius created bytelist_charsequence (+1 new commit): https://git.io/vxMPU
<GitHub11> jruby/bytelist_charsequence 3a08ac3 Charles Oliver Nutter: Attempt to use ByteList 2.0 with proper CharSequence logic....
<kares> enebo: regarding AR upgrade - hopefully you just need to do the usual thingy
<kares> which would be in gemspec update active_record version
<enebo> kares: as it turns out 5.2 will be ugly since they removed test subdir from gem
<kares> then you pbly still need to manually set some in travis-ci.yml but that would be pretty much it
<kares> enebo: that does not matter we do not use the gem but a git source
<enebo> but travis has not been running rails tests on master because it cannot parse those conditionals in the config.yml file
<kares> at least on CI
<enebo> (5.0 can though)
claudiuinberlin has joined #jruby
<enebo> so two issues to figure out I guess
<kares> enebo: yeah regarding that I do not know - it fails for all adapters
<kares> thought we had that working but obviously we did not ...
<enebo> yeah they must be parsing config.yml differently than 5.0
<kares> it must be some weirdness I assumed its a Rails thing
<enebo> yeah no doubt it is since our files are identical
<kares> but than I also tried pointing to 5.1-stable and its the same ;(
<enebo> we may need to simplify our config or at least change it to not have full code in there
<enebo> like prepared_statements: can be made to be either true or false vs omitting it
<enebo> I think we can easily tweak some of that
kith has quit [Ping timeout: 265 seconds]
<enebo> I will be playing with it after lunch
<kares> well rails has a similar config - using embed erb I actually wanted to add into it - not to lower entropy :)
<enebo> kares: yeah I am just saying rails is not parsing it since 5.1
<kares> enebo: know but take a look at theirs config.yml - similar and parsing fine
<kares> maybe they setup erubis differently
<enebo> I see no multi-line <%= if or anything like it
<enebo> I see inline ones
<enebo> database: <%= FIXTURES_ROOT %>/fixture_database.sqlite3
<enebo> stuff like that
<kares> you mean <% -%> ?
<kares> none there?
<enebo> nothing but single line expansions
<enebo> I am looking at 5.2.0rc2 but I think it is like this in 5.1
<enebo> unless I am looking at the wrong config.yml
<enebo> test/config.yml in ar
edmz has quit [Ping timeout: 260 seconds]
<kares> hmm, why would they do that - database.yml is pbly parsing similar and these conditional <% used to work there, since ... forever
<enebo> but for that matter 5.0 does not have multi-line stuff either
<enebo> but it works
<enebo> :)
<kares> but than its rails ...
<enebo> yeah good question
edmz has joined #jruby
<kares> enebo: if they do it complicates testing for us right? we need to set a lot of stuff to get it to shape e.g. driver specifics
<enebo> kares: well I only see the thing at the top of our file being problematic
<kares> the method def?
<kares> that is recent - it wasn't there 2 weeks back
<enebo> yeah although the syntax error is the mariadb check
<kares> ... it was failing before
<kares> pretty sure its not that
<enebo> It is like it is seeing the semicolons in the yml file afterwards
<kares> (although it might add up - but there has to be smt else as well)
<enebo> kares: yeah something started making some part of that unhappy but none it should be makingstrings
<enebo> kares: almost like some templating engine change
<kares> there's erubis on 5.0 as well
<enebo> hahah ok so not as of 5.2 but as of 5.1 they stopped including tests into their gem releases
<enebo> SyntaxError: (erb):71: syntax error, unexpected ';'
<enebo> ; if ENV.key?('INSERT_RETURNING') -; _erbout.concat "\n insert_returning: "
<kares> no biggie
<kares> so its the conditional - try removing '-' from the end in closing -%>
<enebo> kares: yeah I think that is it
<enebo> I only did one but I will try rest now
<kares> but than it might leave in white space -> empty line. which might not be good
<enebo> yep mission accomplished
<kares> did it blow-up completely :) ?
<enebo> so for non-travis the second problem is solved for me by depending only on RAILS env point to a rail co
<enebo> the yaml problem is totally fixed by removing the '-'
<kares> najs
<enebo> so we will have travis results once we can deal with not loading them from a gem in travis
<kares> enebo: told you thatis of noworry
<kares> we do not use the gem
<enebo> kares: ok but the rakelib apparently does
<kares> we checkout from git and rely on test folder being there
<enebo> for rails test rake task
<kares> yeah it might - but if you set a export RAILS=...
<kares> to point to your Rails checkout it will work
<enebo> if I do it still seems to
<kares> hmm
<enebo> admittedly I just hacked around it
<kares> heh - its actually pbly for the better
<enebo> kares: so on travis if I leave that as RAILS will it just find our clone?
<kares> rails/rails clone there's no our clone
<enebo> ok I did not parse that but I will accept ENV['RAILS'] as being enough
<kares> for CI you need to adjust the ci.yml
<kares> set RAILS=... variable for v5.1.x to smt 5.2-ish
<kares> a tag or a commit/branch
subbu is now known as subbu|lunch
<enebo> kares: so did I break ci completely? :P
subbu|lunch is now known as subbu
<enebo> kares: so you mean .travisci.yaml? and I don't see where RAILS is being cloned
desnudop1nguino has quit [Quit: leaving]
desnudopenguino has joined #jruby
rdubya has quit [Quit: Leaving.]
<enebo> I think I can build this around AR_VERSION since we set that and then use bundle info to see where the rails repo is
<enebo> ok I have something I will commit soon
rdubya has joined #jruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
akp has joined #jruby
Puffball has joined #jruby
rdubya has quit [Read error: Connection reset by peer]
rdubya has joined #jruby
jrafanie_ has joined #jruby
jrafanie has quit [Ping timeout: 240 seconds]
akp has quit [Remote host closed the connection]
lanceball is now known as lance|afk
chrisseaton has joined #jruby
<chrisseaton> Does JRuby have a special exception for internal errors?
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]