faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 276 seconds]
feepbot has joined #amber
<FromGitter> <eliasjpr> 👋
<FromGitter> <drujensen> > @drujensen https://github.com/amberframework/amber/releases/tag/v0.9.0 has been mistagged crediting commiters instead of authors, would be nice to have it fixed
<FromGitter> <drujensen> @Sija ^^^ will do
<FromGitter> <Thellior> @drujensen You are not working on the failing tests of https://github.com/amberframework/granite/pull/270
<FromGitter> <Thellior> Else we are working on the same stuff :p
<FromGitter> <drujensen> I fixed it
<FromGitter> <Thellior> Nope
<FromGitter> <drujensen> nope?
<FromGitter> <Thellior> Latests Travis CI are all red
<FromGitter> <drujensen> hhmm, that hsould have done it
<FromGitter> <drujensen> ok, are you looking at it?
<FromGitter> <Thellior> I will take over from you
<FromGitter> <drujensen> ok, thx
<FromGitter> <Thellior> Thanks for the review :)
<FromGitter> <drujensen> Thanks for all the work. This is so much better
<FromGitter> <Thellior> O btw
<FromGitter> <Thellior> Now i speak to you
<FromGitter> <Thellior> https://hub.docker.com/_/postgres/
<FromGitter> <Thellior> Which versions do you like to see to be tested
<FromGitter> <Thellior> I know mysql 8 is breaking on Granite though
<FromGitter> <Thellior> But didn't look into it yet
<FromGitter> <Thellior> https://hub.docker.com/_/postgres/
<FromGitter> <Thellior> https://hub.docker.com/_/mysql/
<FromGitter> <drujensen> latest 9 and 10 on pg
<FromGitter> <drujensen> I usually say the latest and the one before that
<FromGitter> <drujensen> but with mysql, the 8.0 is a big jump
<FromGitter> <Thellior> 1) 5 / 10.4 /9.6 /9.5?
<FromGitter> <Thellior> Or 10 and 9
<FromGitter> <drujensen> probably 5.6, 5.7?
<FromGitter> <Thellior> 1) 7 -> 8.0(5.8)
<FromGitter> <eliasjpr> @drujensen what did we decided with the connections?
<FromGitter> <drujensen> i am going to release after we fix the travis failure
<FromGitter> <drujensen> > 10.5 / 10.4 /9.6 /9.5?
<FromGitter> <drujensen> good question
<FromGitter> <drujensen> Can we do all 4?
<FromGitter> <drujensen> probably just 9.6 and 10.5
<FromGitter> <drujensen> would be fine, right?
<FromGitter> <Thellior> We can do all versions
<FromGitter> <drujensen> @Sija @kolyaio @noahlh @robacarp @ZeroPointEnergy @shobhitic @eliasjpr I have fixed the credits for v0.9.0 release (https://github.com/amberframework/amber/releases/tag/v0.9.0). Sorry for not catching this and thanks for your contributions!
<FromGitter> <Thellior> Travis will run them parallel anyways
<FromGitter> <drujensen> awesome!
<FromGitter> <Thellior> But's it's more like what do we support and fix if there are issues
<FromGitter> <drujensen> I usually go with current and previous as a rule of thumb
<FromGitter> <kolyaio> Awesome ! 😊
<FromGitter> <Thellior> @drujensen Ok will do that
<FromGitter> <drujensen> 👍
<FromGitter> <eliasjpr> https://github.com/amberframework/amber/releases/tag/v0.9.0 this is crystal 0.26.1?
<FromGitter> <drujensen> well, 0.26, yes
<FromGitter> <drujensen> if we use symantic versioning correctly, patches shouldn’t have breaking changes
<FromGitter> <eliasjpr> ok
<FromGitter> <eliasjpr> should it be 0.9.1?
<FromGitter> <eliasjpr> the tag?
<FromGitter> <drujensen> Well the previous was 0.8.0 and we had breaking changes with Crystal 0.26
<FromGitter> <drujensen> so we should update the minor number at leas to 0.9.0
<FromGitter> <eliasjpr> I thought we already released 0.9.0
<FromGitter> <drujensen> oh, we did. I was fixing the credits
<FromGitter> <eliasjpr> I thought it was a new release
<FromGitter> <drujensen> I put the person that merged it instead of the person that fixed it.
<FromGitter> <drujensen> nope
<FromGitter> <eliasjpr> kk
<FromGitter> <eliasjpr> Did we fix the db connection issue? https://github.com/amberframework/granite/commit/8d8eadc5d1f4da649afd31cfb4b94b81636578d4
<FromGitter> <drujensen> @Thellior took it over. Basically, we changed to test each db separately in its own travis process
<FromGitter> <drujensen> but now that we maintain one connection per adapter, when we register the other db, it fails
<FromGitter> <drujensen> A fix would be to lazy load the connection, meaning we connect on first attempt instead of at instantiation of the adapter
<FromGitter> <drujensen> once we fix that, I will release a patch to address the connection leak issue
<FromGitter> <Thellior> @drujensen What i noticed on the tests is that if you create the adapter it immediately connects to the database. That's why the travis branch is failing. Each seperate docker container only test one database so it will instance either mysql image or pg image or the ubuntu sqlite. When running the sqlite container it will try to connect to a PG database that does not exist so it will raise a error. I'm changing the
<FromGitter> ... tests now so we can handle that
<FromGitter> <Thellior> Don't know if it was intended that the database was loaded on Adapter initializing
<FromGitter> <drujensen> right. We can lazy load it instead
<FromGitter> <drujensen> can you fix it?
<FromGitter> <Thellior> If you do that the travis branch should run properly
<FromGitter> <Thellior> I was fixing the test to check which database is running and creating only the adapter corresponding to that
<FromGitter> <Thellior> Don't know how you want to lazy load the database
<FromGitter> <drujensen> ok. I will work on that
<FromGitter> <Thellior> Ok, are you fixing it in the travis branch
<FromGitter> <Thellior> Or are you going to make a sperate branch
<FromGitter> <drujensen> separate branch
<FromGitter> <eliasjpr> I think we should just have one DB.open per granite instance since the CrystalDB shard handle the connection pool. no need to assign a connection per model
<FromGitter> <eliasjpr> IMO
<FromGitter> <drujensen> right
<FromGitter> <drujensen> that is the fix
<FromGitter> <eliasjpr> ahh
<FromGitter> <eliasjpr> ok
<FromGitter> <drujensen> we had it that way and it was rolled back
<FromGitter> <drujensen> when the new Adapter pattern was added
<FromGitter> <Thellior> Which i removed again :D
<FromGitter> <eliasjpr> kk
<FromGitter> <Thellior> ```code paste, see link``` ⏎ ⏎ Im getting mysql aborted connection messages when running the test suite. I don't know if we should look into those [https://gitter.im/amberframework/amber?at=5b86d312f012380179a49f82]
<FromGitter> <eliasjpr> Can you post the error message
<FromGitter> <eliasjpr> I think this might have to do with the max allowed connections
<FromGitter> <eliasjpr> for MySQL
<FromGitter> <eliasjpr> @Thellior this work is great I think we can now do load testing as well
<FromGitter> <Thellior> I think it's super usefull
<FromGitter> <Thellior> When everything is released im going to check mysql8
<FromGitter> <Thellior> Check if it's our code or the crystaldb one
<FromGitter> <eliasjpr> 👍
<FromGitter> <Thellior> It's the crystal-lang one :P\
<FromGitter> <eliasjpr> ahh
<FromGitter> <eliasjpr> gotcha
<FromGitter> <drujensen> that is above my paygrade
<FromGitter> <Thellior> To fix it inside the crystal-mysql you mean?
<FromGitter> <drujensen> yeah, lol
<FromGitter> <Thellior> hehe
<FromGitter> <drujensen> ` packet 254 not implemented (Exception)`
<FromGitter> <eliasjpr> I have been givin thought ot create a Crystal PG Wrapper for the C implementation of the PG driver
<FromGitter> <eliasjpr> and see how that will improve performance
<FromGitter> <Thellior> I don't know how it works with packets so i'm not capable to fix that issue(in this knowledge state)
<FromGitter> <Thellior> And not really intrested in learning that kind of stuff
<FromGitter> <Thellior> @eliasjpr Is the crystal-pg slow?
<FromGitter> <eliasjpr> I know that DB do not perform well in general
<FromGitter> <eliasjpr> all frameworks are slow when it comes to DB
<FromGitter> <Thellior> o oki
<FromGitter> <drujensen> I think there is something blocking the calls and they end up single threaded even though they have pooling
<FromGitter> <drujensen> based on the benchmarks, all crystal frameworks are using these drivers and all have the same performance issue
<FromGitter> <drujensen> fixing that would be huge for the community
<FromGitter> <eliasjpr> yes
<FromGitter> <eliasjpr> I know the C version of PG is fast
<FromGitter> <eliasjpr> and battled tested
<FromGitter> <drujensen> 👍
<FromGitter> <drujensen> @Thellior @eliasjpr can you review? https://github.com/amberframework/granite/pull/277
<FromGitter> <Thellior> ofcourse
<FromGitter> <Thellior> Done
<FromGitter> <drujensen> thx
<FromGitter> <Thellior> @drujensen Could you merge master into my pull request
<FromGitter> <drujensen> yes
<FromGitter> <Thellior> Thanks
<FromGitter> <drujensen> @robacarp thanks for the quick approval
<FromGitter> <drujensen> For granite, the three big changes needed are enhancing the `has_many` relationship, supporting inheritance (although there is now debates if this is an anti-pattern) and finishing up the dsl for querying. Is there anything else we should put on the roadmap?
<FromGitter> <Thellior> @drujensen Currently im working on validators
<FromGitter> <drujensen> 👍
<FromGitter> <Thellior> So i'm checking which validators are inside ActiveRecord(rails) and try to implement those who are usefull
<FromGitter> <Thellior> @drujensen 🍻 on the green test branch now
<FromGitter> <Thellior> Thanks for the support
<FromGitter> <drujensen> sweet. okk, i will release this. Thanks @Thellior
<FromGitter> <drujensen> @Thellior @winhackua @zaidakram @Hansterdam Released granite v0.13.1 with your contributions. Thank you!
<FromGitter> <Thellior> :shipit:
<FromGitter> <eliasjpr> I left a comment
<FromGitter> <eliasjpr> jusst suggestions
<FromGitter> <drujensen> k
<robacarp> @drujensen, thanks for addressing the connection issue on such short notice :D
<FromGitter> <Sija> @drujensen gr8 :)
<FromGitter> <Sija> @drujensen I’d remove commit sha’s too since they add lil’ value a and a lot of noise
<FromGitter> <drujensen> > @drujensen I’d remove commit sha’s too since they add lil’ value a and a lot of noise ⏎ @Sija fixed
<FromGitter> <Sija> @drujensen 👍
<FromGitter> <Sija> @drujensen Any chances on being added to gh org as a member?
hightower6 has joined #amber
hightower5 has quit [Ping timeout: 252 seconds]