-
Notifications
You must be signed in to change notification settings - Fork 5
Make CI pass #3671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make CI pass #3671
Conversation
e1859ea
to
3f3efb9
Compare
Let me take care of the stuff related to Upd.: I guess, this is an example
This is so weird, since the CI of medvedi passed on 1.26.4 🤔 |
@@ -1,5 +1,5 @@ | |||
[build-system] | |||
requires = ["setuptools==75.3.0", "wheel", "Cython==3.0.12", "numpy==1.26.4"] | |||
requires = ["setuptools==75.3.0", "wheel", "Cython==3.0.12", "numpy==1.23.5"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd try hard to avoid this, since the latest wheels of medvedi build with 1.26.4, so we will lose the ablity to upgrade to Python 3.12.
3f3efb9
to
c9226fd
Compare
Hey there! That would be much appreciated! This is an example: https://github.com/athenianco/athenian-api/blob/master/server/tests/internal/features/github/test_deployment_metrics.py#L51 The tests were failing on initializing this. I replicated it on Ipython:
If you strongly think that it's better to not downgrade numpy it would be great if you can check it out, for the test still relying on pandas since it's just a test dependency I think it's not that much of a big deal. Both me and @lwsanty are trying to do the minimum necessary to keep things afloat. 😅 If you change medvedi to make it transparent to the API that would be cool! |
7e4c93f
to
41d62a2
Compare
@vmarkovtsev all tests seem fine now! 🥳 The "Custom check" I think/hope that will be fixed once "packaging" is upgraded as well together with pip and setuptools, but since it's a change in the yaml definition cannot be tested in this PR. I tested it on an ubuntu server and worked. We're also starting to really need this as a customer is experiencing some issues that we'd need to investigate. Is the concern around numpy only about not being able to upgrade to python3.12? or it may cause issues with medvedi that are not caught by the tests? |
584693e
to
a4c7519
Compare
Signed-off-by: Lou Marvin Caraig <[email protected]>
Signed-off-by: Lou Marvin Caraig <[email protected]>
Signed-off-by: Lou Marvin Caraig <[email protected]>
…ange Signed-off-by: Lou Marvin Caraig <[email protected]>
Signed-off-by: Lou Marvin Caraig <[email protected]>
Signed-off-by: Lou Marvin Caraig <[email protected]>
Signed-off-by: Lou Marvin Caraig <[email protected]>
5493f72
to
9f3980e
Compare
Signed-off-by: Lou Marvin Caraig <[email protected]>
Signed-off-by: Lou Marvin Caraig <[email protected]>
9f3980e
to
21f8d5f
Compare
Merging this PR as we deployed it on prod on March 28 and everything worked fine. 🥳 |
An update in the
yarl
package brokeaiohttp
aiohttp
relies on theyarl
library for URL parsing and building. When running the tests, the majority of them fail due to a version ofyarl
that is incompatible withaiohttp
.The
yarl
requirement inaiohttp==3.8.4
(current version we have in our requirements) is very loose: https://github.com/aio-libs/aiohttp/blob/v3.8.4/setup.cfg#L56Indeed when inspecting the Docker container we can check using
pip freeze
that the version ofyarl
installed is1.18.3
. This is the output ofpipdeptree
:But after version
1.13
yarl
changed how URLs are parsed in a way that port number cannot be part anymore of thehost
param when usingURL.build(...host=host)
, but needs to be used asURL.build(...authority=host)
: aio-libs/aiohttp#9307This has been fixed in this PR: aio-libs/aiohttp#9309
and has been shipped in version
3.10.7
which is the one being used in this PR.numpy>=1.24
's expired deprecations affect the way we initialize DataframesCurrently we're using
numpy==1.26.4
. This is the release notes fornumpy>=1.24
: https://numpy.org/doc/2.2/release/1.24.0-notes.html#expired-deprecationsIn particular:
This is the PR: numpy/numpy#22004
We'd need to update how we use
md.DataFrame
everywhere and includedtype=object
or makemedvedi
handle it. For now, to minimize the changes I'm downgrading to the latest1.23
version.A test is still using
pandas
instead ofmedvedi
I don't know exactly the chronology of how this happens, but we have a test (
tests/internal/miners/github/test_check_run_benchmark.py
) that still relies onpandas
.With the same philosophy of trying to just make things work as they used to, I just added
pandas
as a test requirement and convert thepd.DataFrame
to amd.DataFrame
to reuse the downstream functions that have been already ported to be used withmedvedi
.This change is