Coder Social home page Coder Social logo

Comments (10)

adrien-berchet avatar adrien-berchet commented on July 28, 2024

Hi @EdwardBetts

Thanks for your report!

May I ask why you have to run these tests? Also, did they pass with a previous version of GeoAlchemy2?

Anyway, the tests were indeed never meant to run on any platform, especially the big-endian ones. This is because GeoAlchemy2 is mainly a wrapper, so the main point of the tests is to check that the proper functions are called in the DB. So I don't think we need to test on big-endian platforms (and as we can see in the report you posted, the tests only fail when we compare the raw values where endian matters, so it seems to confirm that the proper functions are called, it's just that they don't return the same values as the expected ones but, from a GeoAlchemy2 point of view, it does not really matter). Of course it would be possible to make the tests pass with big-endians but it would be quite long (too much for me at the moment, but any PR to improve this is welcome 😊 ).

from geoalchemy2.

EdwardBetts avatar EdwardBetts commented on July 28, 2024

When a Python module is packaged for Debian the tests are run as part of the build process to ensure the package isn't broken in some way.

The tests are also run whenever one of the package dependencies are modified. This is to catch breakages caused by a change to a dependency.

We run the tests on all available architectures to catch architecture specific bugs.

I don't think this is a regression. I don't think the tests were passing with an older version of GeoAlchemy2.

I'm going to modify the Debian package so it doesn't run the failing tests on big-endian architectures.

from geoalchemy2.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

Ok, I see, thanks for the explanation.
So yeah I think that just skipping the tests on big-endian architectures is the best option. And it should still be safe since you keep the tests on all other architectures.

Just out of curiosity, do you know which package pulled the GeoAlchemy2 dependency?

from geoalchemy2.

EdwardBetts avatar EdwardBetts commented on July 28, 2024

The tests were run on the s390x architecture to check the package worked there. The test run wasn't trigged by another package that depends on GeoAlchemy2.

I checked, there are no packages in Debian that depend on GeoAlchemy2. The dependencies of GeoAlchemy2 are python3-packaging, python3-sqlalchemy and python3.

from geoalchemy2.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

Ok.
I'm a bit surprised that GeoAlchemy2 is packaged in Debian just for its own, not because it's pulled by another package as a dependency. But I'm glad to know :-)

from geoalchemy2.

EdwardBetts avatar EdwardBetts commented on July 28, 2024

I've built a web-based tool for matching objects with coordinates in OpenStreetMap and Wikidata. The tool is built using GeoAlchemy2. Deploying the tool is easier for me if the dependencies are part of Debian, that's why I packaged GeoAlchemy2.

The tool is here: https://osm.wikidata.link/

from geoalchemy2.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

Ah ok ok.
Nice tool btw! I didn't know it.

from geoalchemy2.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

Can we consider this issue as solved and close it? Or is there still anything we can do?

from geoalchemy2.

EdwardBetts avatar EdwardBetts commented on July 28, 2024

Yes, let's close it.

from geoalchemy2.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

Ok, thanks.
See you around!

from geoalchemy2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.