-
Couldn't load subscription status.
- Fork 10
Attempting to fix workflows and unit tests #42
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
Conversation
|
@rsnodgrass I got the dependencies fixed up and tests running, but a variety of them fail. Looking into it, it looks to me like tests aren't isolated and are interfering with each other. For example, this test (from sets that interval to 10, which does update the backoff class and what do ya know, the value is still I'm not a python guy by any means, but I'm guessing it's one of:
|
|
These tests seemed to largely be generated by CodiumAI last year, they may not be accurate and making assumptions during testing that may not be true as the code evolves. AFAIK, the tests should be isolated. Perhaps @rlippmann knows more. |
|
Maybe a requirement that poetry has isn't in requirements.txt? |
|
Try rebasing... I refactored to use uv and the workflows are updated. Tests are still failing but I'm curious to see if the same issues occur? |
This reverts commit 6356099.
Updated, tests still seem to be failing the same way. |
|
@rsnodgrass were these failing tests ever known good? or were they added and just never worked? is there a reason to keep them? |
This package isn't doing anyone any good at all right now, so IMO we're better off getting rid of them than continuing as-is. I get fewer test failures if I add pytest-isolate, I'm pushing that change now for you to take a look. @EVWorth I've just removed all of the tests that were failing, I did not fix anything here. I remove the codium files entirely, they were full of failures, then just commented out the 7 remaining failing tests. We could merge this and give it a shot. |
|
thanks @HeroesDieYoung! a couple of questions and thoughts:
can you speak to those dependency changes, uv remove [name] the dev packages you added to the main group and re-add them using uv add --dev [name]?
|
|
@EVWorth full disclosure, I have no idea what I'm doing with Python - definitely not my language here. I've never used As far as the devcontainers file, that's this feature of VSCode. I run within a Docker container that has exactly the environment I need for the project. That way I don't pollute my host with different versions of python, nodejs, global packages, etc etc. I've added it to |
|
So I think** in your devcontainer env, before you removed it ( 😃 ), I noticed you were running uv venv, uv run requirements.txt all of that can be replaced completely with uv sync uv sync will build a venv with the python version specified in pyproject.toml, and then install all dependencies configured in the uv.lock file. I think** that should work in your devcontainer as well. try replacing that line with just uv sync and let me know what happens (just curious) Otherwise, commits look good and I see passing tests! woot! thanks for the contribution! |
Updated as you said, and bingo it does indeed behave exactly as you described. TIL a tiny bit about |
|
@HeroesDieYoung also, I feel like I'm in the same boat. no idea what I'm doing and taking a lot of research to get things working. slowly learning more every day.. to two 😃 |
Uh oh!
There was an error while loading. Please reload this page.