Page 1 of 2 | Next »
[17:34:22] mordocai: Anyone have a project they know of with lots of rspec tests I can run? I'm looking for a quick test trying to narrow down why our rspec tests are super slow on one machine and not on others (and yes, i've checked the obvious things. It doesn't appear to be CPU, disk, or memory bottlenecks so...)
[15:02:18] mordocai: Anyone know of any actually good open source reporting services stuff? Something similar in feature set to Jaspersoft/Microsoft SQL Reporting Services. Rails integration a plus.
[21:05:05] mordocai: Where can I put a rails app that I want to ask questions about? It is just for this question so I don't really want to make a git repo (though I could)
[21:07:52] mordocai: P4Titan: True I suppose, I just wanted to be able to get all the questions out of the way like "what do your migrations look like, what version of rails, etc etc"
[21:14:24] mordocai: Per http://guides.rubyonrails.org/association_basics.html a has_many association will validate all associated objects on save. On https://gitlab.com/mordocai/rails-validate-test if I create a TestModel and add a TestAssociation(ignoring validation there, because it will fail then) I can then modify and save TestModel all I want without the TestAssociation validation ever being called. Why is this? Am I misunderstanding or is the
[21:18:48] mordocai: Found this https://github.com/rails/rails/issues/24532. Sounds like the docs are completely wrong
[21:24:02] mordocai: Docs are fixed for rails 5 at least, but the main site docs still describe the behavior completely incorrectly
[21:31:03] mordocai: tubbo: Yeah, just super frustrating that the docs on that just completely don't match reality at all
[21:32:09] mordocai: Where would pull requests for guides go? Are they generated from the comments here https://github.com/tomash/rails/commit/19d5f21274784d48a017cf1a8bed27acbe051d77?
[21:56:26] mordocai: I couldn't figure out how exactly I wanted to say it so opened https://github.com/rails/rails/issues/25060 instead of a pull request for now
[22:04:54] mordocai: tubbo: From what I understand, what actually is happening is whenever you add a new object to the association list for this object then the new association object will be validated.
[22:07:01] mordocai: smathy: I'm not having a problem with the mechanics, i'm having a problem figuring out what the docs should say (since currently they are wrong/misleading).
[22:11:07] mordocai: tubbo: I think the validate description describes validates_associated better than validate currently personally (though it'd be wrong there too).
[20:04:44] mordocai: I just attempted to use rspec --bisect on our rails project and it managed to eat 16G of my physical memory and 5G of swap causing it to be killed by the kernel. Does anyone know if there is a way to limit the number of processes rspec bisect runs at once?
[18:01:06] mordocai: I'm looking at using https://github.com/thoughtbot/scenic for work, but I thought back a few months ago I might have heard something about rails 5 bringing native database view support? Am I mis-remembering?
[18:13:33] mordocai: We've been using no pattern for our db views for years and it makes me sad. But we'll be moving to the scenic gem, so we have that.
[18:13:58] mordocai: I had mentioned such a pattern a few times in passing since I started a few months ago but never went as far as implementing it
[22:15:32] mordocai: So my gemfile with rails '~> 4.2.0' suddenly started matching 4.2.0 rather than 4.2.4 like previously (obviously should be 4.2.5 now but I hadn't run bundle update in a bit). If I replace with rails '4.2.5' everything works fine. Anyone know of anything that would cause this?
[22:16:55] mordocai: Radar: Yeah, the weird part is the behavior seems to have magically changed without bundler nor gemfile changes. And specifying 4.2.5 works with no conflicts.
[22:19:55] mordocai: Radar: Yeah, I imagine it's something weird with the other gems' dependency specs. Don't see anything in the Gemfile.lock though. Oh well, i'd have to ask permission to post it up for inspection and I can just manually update rails point releases so not a huge issue.
[22:24:08] mordocai: Radar: I'll work on it. Base case (Gemfile with just rails '~> 4.2.0') does not reproduce issue
[23:19:03] mordocai: So this https://www.refheap.com/112496 shows my issue. I can't figure out why capistrano-chef is causing rails ~> 4.2.0 to evaluate to 4.2.0 instead of 4.2.5 AND nothing complains if you use rails '4.2.5' instead.
[23:23:16] mordocai: wkoszek: Unless you are on an absolute bare minimum budget where literally every dollar per a month counts the difference in cost is going to be pretty negligible.
[23:23:34] mordocai: We've hit DB performance problems WAY faster than rails performance problems so far.
[23:28:01] mordocai: wkoszek: We run rails with unicorn with a relatively busy database heavy site and every performance issue we've had so far ended up being us making stupid database queries rather than rails. Just an anecdote, but we've had 0 issues with rails performance in > 3 years AFAIK (i've only been here for 1 year)
[23:34:00] mordocai: wkoszek: We're actually working on pulling that data from elasticsearch now but just a quick look shows that during quiet time (aka now) we only have around 5 requests a second but we get up to 2-3k per a second during peak times. A lot of these requests are going to be super simple though and not require much/be cached. That doesn't filter out our monitoring requests either.
[19:47:07] mordocai: Hey, i'm getting this when installing ruby 2.2.2/2.2.3 with ruby-build on debian testing. Is this a library version issue? Anyone know? Worked fine a few months ago http://paste.lisp.org/display/163730.
[19:48:00] mordocai: Debian testing is also using gcc 5 which could cause issues I imagine. Trying to narrow down the issue.
[19:54:14] mordocai: Found answer to my problem here if anyone else runs into it https://github.com/rbenv/ruby-build/wiki#openssl-sslv3_method-undeclared-error
[18:43:40] mordocai: Anyone have a good idea for calculating how many calendar days intersect a time range? I found this http://goo.gl/3cO6AY but I don't particularly like the presented solutions.
[18:44:08] mordocai: If that's too confusing I can write up the real world problem i'm trying to solve.
[18:54:31] mordocai: Anyone using any business rules engines in production successfully? I see https://github.com/ulfurinn/wongi-engine but it is version 0.2.0 and seems like development is slow.
[16:18:14] mordocai: So I had a 500 error in production due to devise but I can't quite figure out why. Backtrace here: https://www.refheap.com/110809 error is "NoMethodError: undefined method 'ago' for nil:NilClass". Obviously the core issue is that self.confirm_within was nil, but we have confirm_within set in our config. Is this a devise bug or something we are doing wrong? Can't show code due to being proprietary, but we aren't really doing anything
[16:18:15] mordocai: special with devise. I also notice that most other places in that code are checking for confirm_within being truthy before using it.
[16:19:34] mordocai: Wanted to ask here before filing a bug in case it is something stupid we are doing.
[16:26:51] mordocai: tubbo: And... i'm dumb. Yay for asking for help. We are doing something special with an "AuthenticationPolicy" so we aren't doing things the normal devise way. Sigh. Yeah, so that value is correctly nil. Not sure if that counts as a bug though.
[22:30:34] mordocai: eam: I'm young enough, but i've been on IRC since middle school and I like it damnit
[21:17:11] mordocai: Hey everyone! Anyone know of any maintained generative/property based testing frameworks for ruby? The only one I have so far been able to find was https://github.com/arronmabrey/generative which doesn't look actively maintained and doesn't have narrowing.
[21:23:34] mordocai: Ox0dea: Ah cool. yeah, that looks like it is in a transition to be more actively developed. Thanks! I'll try it out
[18:17:46] mordocai: float12129: I think it is more of a garbage collection leak than a literal memory leak, hence the quotes.
[18:18:50] mordocai: gambl0re: http://edgeguides.rubyonrails.org/active_record_migrations.html#creating-a-migration
[18:20:34] mordocai: I believe so. Can't say I've worked a ton with it though. Most of my valgrind was with pure C projects with no garbage collection.
[18:23:21] mordocai: float12129: I'm reading through that blog post. I hadn't used the technique your sentence suggests, might be worth a try. Doesn't sound as much fun as an actual tool though :P
[18:23:40] mordocai: gambl0re: Sure can. If you already migrated with it you'll have an entry in your DB for it though. Shouldn't hurt much.