Replies: 1 comment
-
Some more comments on the updated/new Pre-commits mypyduckdb-python/.pre-commit-config.yaml Line 37 in df7789c
I suggest removing the -v, otherwise the output is flooded with LOG messages. post-checkout-submodulesThe pre-commit now calls This is an odd and problematic thing to do in a pre-commit for a few reasons:
Could this be changed to merely a WARNING? Doesn't seem like feature PRs should bump the submodule, nor that it should be changed as the last step of a pre-commit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Questions and comments after spending far more time on CI than expected.
I can open various PRs, but don't know if there's some good reasons here.
ccache installation
Why is ccache installed in the runners? The cache file isn't persistent, so it seems like an unnecessary step.
See the
[tool.cibuildwheel.*]
sections of pyproject.toml.* The Windows runners already have strawberry ccache installed anyway, so it's not needed there.
sccache w/ GH Action Cache
One neat optimization is to use sccache w/ the GH Action Cache. The GHA Cache is limited to 10GB.
I have a workflow using sccache for my primary dev builds, but 10GB isn't enough for the entire matrix. You could use it to speed up the most common smoke test builds.
Ninja on Windows
Why isn't Ninja enabled for Windows builds? Significantly speeds up the Windows builds. There's a couple of settings involved here, happy to open a PR... but not sure if there's some reason.
jemalloc on Windows
Any particular reason jemalloc is enabled on Windows debug builds?
On Windows, jemalloc is disabled for Windows Release, but enabled for Windows Debug builds. This fails locally for me, so I modified my local duckdb_loader.cmake to exclude when
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
.Noisy "uv export"
Would suggest adding "--quiet" to the uv export step in packaging_wheels. The uv lock output is very noisy.
Local Builds
A few tips I found for getting local builds running:
-vv
touv sync --no-build-isolation -vv
step. This shows the build steps.--reinstall
helped for rebuilds. My rebuild is usually:uv sync --active --no-build-isolation -vv --reinstall
.Pytest Plugins
Some suggested plugins:
-n auto
on my workflow... cuts test time significantly.Beta Was this translation helpful? Give feedback.
All reactions