Bump to 7.2.0
Closes #403 Closes #395
Hey @BuonOmo! Thanks for the great work you've done so far on support for Rails 7.2!
I've tried switching to this branch and upgrading to Rails 7.2.
Here's the error I'm getting when I try to load my ActiveAdmin dashboard page, I don't know how to take it from here. I hope it's useful to you:
Thanks!
@vfonic I think your issue is not related to this adapter. To make sur of this you can replace the activerecord adapter with postgresql and see if you still have the failure.
If it is related though could you open an issue with a reproducible example ? Or at least a stack trace and a gemfile.lock so I could investigate?
Thanks @BuonOmo, I'll have a look.
What do you mean by
replace the activerecord adapter with postgresql and see if you still have the failure.
?
Thanks!
@vfonic in your codebase, stop using active-record-postgis-adapter, and in your database configuration file (likely database.yml) set postgres instead of postgis. And check if this error still occurs.
I'm not sure I can have the test suite fixed tonigh as I spent already all my afternoon on it, so here are some notes for someone (might be me, later) that want to pick that up.
The test suite gets corrupted at some point. Some setup change (likely the spatial_factory_store) and it is not properly reset. The whole challenge is to find which test is the culprit, fix it. The second step would be to avoid a potential reproduction of this issue (I left a TODO addressing this in the code, only useful if my assumptions were right).
If I were to continue on this, I would replace the teardown block added with something more precise that directly detects the state corruption.
Can you store the identity of the object (object_id) of the model (go Ruby!) on spinup and compare it on teardown as a quick way to check if it has changed?
@mjy it does change actually, we reinstanciate a new factory pretty often ! So the object id is not enough unfortunately :/
Made some attempts focusing on test:postgis, the flakiness seems related to order the tests run. I am not sure if the same SEED param will make the results deterministic across architectures, but these are these are some repeatable results I got by fixing the seed param.
$ SEED=170 ARCONN=postgis bundle exec rake test:postgis
66 runs, 223 assertions, 0 failures, 0 errors, 0 skips
$ SEED=1 ARCONN=postgis bundle exec rake test:postgis
66 runs, 206 assertions, 3 failures, 1 errors, 0 skips
$ SEED=2 ARCONN=postgis bundle exec rake test:postgis
66 runs, 218 assertions, 4 failures, 0 errors, 0 skips
I've got to something more specific:
BasicTest#test_save_and_load_point fails when it runs after BasicTest#test_spatial_factory_attrs_parsing.
Please have a look at #412 . Existing tests are passing, now.
@seuros I'm not sure I get you. Yes we should keep the files I added, they correspond to failing tests! And let's track them in the related issue #378.
About these ignore files: are they working as temporary to reduce the noise while this work is done (like a skip), are they mostly definitive like for unnecessary tests or tests that do not apply in the context of PostGIS or are they a mix of both?
I am asking because I've made a few adjustments to make the ignored test appear as skipped to have an idea of the size of the problem and I wouldn't mind sharing that if it appears useful to get over of what is missing.
@formigarafa I think they would be a mix of both. I haven't checked them individually besides just seeing that they were failing.
I am asking because I've made a few adjustments to make the ignored test appear as skipped to have an idea of the size of the problem and I wouldn't mind sharing that if it appears useful to get over of what is missing.
This looks like a change for the gem responsible of ignoring tests ? Anyway, feel free to submit this!
@keithdoggett lets go! Thank you :)
I'll take a look at the new PR #415 soon, but I guess we could already push this, and have a patch release for rake task fix
v10.0.0 is released. 9.0-stable branch also up if anyone wants to build directly from git for AR7.1. Thanks everyone!