-
Notifications
You must be signed in to change notification settings - Fork 3
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
Migrate from micromamba to pixi #230
Conversation
@@ -2,17 +2,14 @@ version: 2 | |||
build: | |||
os: ubuntu-20.04 | |||
tools: | |||
python: mambaforge-4.10 | |||
python: mambaforge-latest | |||
commands: |
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.
@pavelzw This example seems to be structured a little differently:
https://github.com/prefix-dev/pixi/blob/main/examples/readthedocs-extend/docs/.readthedocs.yaml
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 took https://github.com/prefix-dev/pixi/tree/main/examples/readthedocs-override as inspiration. but maybe the readthedocs-extend is a better fit for sphinx ...
Hi @pavelzw ! Any idea about the origin of this failure? https://github.com/Quantco/datajudge/actions/runs/9613959735/job/26517778652?pr=230 |
we commented this env out because it took too long to solve on windows... i think this is an issue with pixi. for now, let's deactivate it. i'll file an issue |
pixi.toml
Outdated
db2-py38 = ["db2", "py38", "test"] | ||
db2-py39 = ["db2", "py39", "test"] | ||
db2-py310 = ["db2", "py310", "test"] | ||
# db2-py311 = ["db2", "py311", "test"] |
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.
Not sure why you have some environments commented out.
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.
these are not solvable but might be in the future. no strong opinions on whether we should keep them commented out or remove the lines
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 don't care if they're commented. I just wondered because this is the reason a PR merging into this branch is failing and wanted to understand why. I'd say leave them commented out for now.
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 removed the comment for now
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
- latest | ||
- 11 | ||
env: | ||
- postgres-py38 |
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.
This doesn't look complete. We should have the cross product of python, postgres and sqlalchemy versions. Here it looks like python and sqlalchemy are decoupled now.
This observation applies to the others too.
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 think testing against the border of the cross product matrix should be fine as well, otherwise this can easily explode. i also don't think we would catch significantly more errors that way 🤔
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.
We're aware it can explode. That's why in the obscure databases we covered a few combinations.
We can discuss how we effectively do integration tests. Doing the borders of the testing phase space is fine by me.
.github/workflows/ci.yaml
Outdated
- db2-py311 | ||
- db2-py312 | ||
- db2-sa1 | ||
- db2-sa2 |
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.
We werent testing db2 with sqlalchemy 2 before.
.github/workflows/ci.yaml
Outdated
- snowflake-py311 | ||
- snowflake-py312 | ||
- snowflake-sa1 | ||
- snowflake-sa2 |
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.
We werent testing sqlalchemy 2. Although It might be interesting to give it a second try.
Furthermore, we weren't testing all python versions for these more "esoteric" databases to reduce time, and costs.
always_run: true | ||
require_serial: true | ||
pass_filenames: false | ||
- id: black |
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.
The target versions for black and pyupgrade are gone from here. Are they implicitly using the value for requires-python
in pyproject.toml
?
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.
probably. but we want to move to ruff anyway in a separate PR (which definitely uses requires-python
)
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #230 +/- ##
==========================================
- Coverage 92.49% 92.14% -0.36%
==========================================
Files 18 18
Lines 1973 1973
==========================================
- Hits 1825 1818 -7
- Misses 148 155 +7 ☔ View full report in Codecov by Sentry. |
@ivergara any idea why the BigQuery authentication is failing? |
Not really. Nothing seems to have changed in this PR. My suggestion for now is to skip this integration test and deal with it separately. |
@pavelzw I compared the readthedocs pages manually; the version number/PR number is the only difference I came across |
* Draft usage of pixi. * Adapt more integration tests. * Adapt bigquery integration test task. * Migrate docs deployment to pixi. * Update build and publish. * Run postinstall for readthedocs. * Adapt liniting to rely on pixi. * Add pytest as dependency. * Adapt readthedocs configuration. * Update development instructions. * Switch to pixi in helper script. * Adapt development.rst. * Comment out impala run for debugging. * Move flit to host-dependencies. * Remove redundant dependency. * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Add color to ci tests. * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Remove configurations which were erroneously added. * Remove configurations which were erroneously added. * Consistently use ubuntu-latest. * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Also run unit tests on macos and windows. * Fix impala test syntax. * Downgrade sqlalchemy version for impala tests. * Disable BigQuery tests for now. --------- Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
* Draft usage of pixi. * Adapt more integration tests. * Adapt bigquery integration test task. * Migrate docs deployment to pixi. * Update build and publish. * Run postinstall for readthedocs. * Adapt liniting to rely on pixi. * Add pytest as dependency. * Adapt readthedocs configuration. * Update development instructions. * Switch to pixi in helper script. * Adapt development.rst. * Comment out impala run for debugging. * Move flit to host-dependencies. * Remove redundant dependency. * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Add color to ci tests. * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Remove configurations which were erroneously added. * Remove configurations which were erroneously added. * Consistently use ubuntu-latest. * Update .github/workflows/ci.yaml Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com> * Also run unit tests on macos and windows. * Fix impala test syntax. * Downgrade sqlalchemy version for impala tests. * Disable BigQuery tests for now. --------- Co-authored-by: Pavel Zwerschke <pavel.zwerschke@quantco.com>
No description provided.