orchestracities / ngsi-timeseries-api

QuantumLeap: a FIWARE Generic Enabler to support the usage of NGSIv2 (and NGSI-LD experimentally) data in time-series databases
https://quantumleap.rtfd.io/
MIT License
37 stars 49 forks source link

Remedy bit rot #737

Closed c0c0n3 closed 11 months ago

c0c0n3 commented 11 months ago

Proposed changes

This PR upgrades most of the Python deps to fix security vulnerabilities, makes the Docker image build again and restores a working dev env on Apple silicon.

In detail, we've found a combination of Python dependencies that fixed all the security vulnerabilities reported by #736 as well as the ones below reported by Dependabot

The implemented combination of deps along with some Docker file fixes make the Docker image build succeed again, which works out the issues reported by #735.

Finally, we've chosen Python deps that make it possible to set up a Python dev env on Apple silicon. The Apple dev env used to work last year, but now it was broken both on M1 and M2. This PR fixes #734 and provides a minimal Nix dev env you can use both on x86 and aarch64.

Types of changes

What types of changes does your code introduce to the project?

Checklist

Further comments

github-actions[bot] commented 11 months ago

CLA Assistant Lite bot All contributors have signed the CLA ✍️

c0c0n3 commented 11 months ago

There are two geo-coding tests that have failed:

But those failures are actually unrelated to this PR. In fact, the coords of the points we expect have changed in the OpenStreetMap DB (51.12... vs 51.23...) This kind of thing crops up every now and then, you could blame it on whoever updates the OpenStreetMap DB, but I'd rather blame it on ourselves not being able to write proper tests that are independent of the actual coords---what we need to check is not how accurate OSM is, but rather that we're able to parse the response.