nimble install calls), that are fast to build and test (to avoid adding too much stress on travis/appveyor), and that are not broken on devel#head should be preferred to make sure we're current; Note: that revision can itself depend on non-head dependencies, that's fine)looks like support is already there; just not being run in CI:
Nim/tests/testament/categories.nim:
of "nimble-core":
testNimblePackages(r, cat, pfCoreOnly)
of "nimble-extra":
testNimblePackages(r, cat, pfExtraOnly)
of "nimble-all":
testNimblePackages(r, cat, pfAll)
(also, on OSX, ./koch tests cat nimble-core ran into https://github.com/dom96/choosenim/issues/80)
This could (and probably should) be done in a separate repo/CI.
possibly, but then how would one run CI automatically for each PR ?
another option is to run a cron-job regularly (eg every x hours or every day); that would probably be more economical than after each PR update.
what would u recommend for running this kind of kron-job?
another option is to run a cron-job regularly (eg every x hours or every day); that would probably be more economical than after each PR update.
Indeed. Travis can do this.
@timotheecour The package regression testing was already being performed by https://github.com/FedericoCeratto/nim-ci but at the time it attracted little interest. The tool was monitoring the Nim repos and triggering rebuilds.
I have been proposing this since forever, really hope this takes off!
@FedericoCeratto was nim-ci actually building anything? Last time I remembered it was just doing nimble install, which in most cases just does nothing. It really should have been calling nimble test or (even better) letting users register packages and specify how to test them
I'll be happy to help with this. I am already doing a small subset with nimgen and nimterop which test over 30 wrapper packages daily with devel, stable and stable - 1 and have found and reported issues in the past.
Please let me know how I can contribute.
I would patch "nightlies" to do the stress testing. One question then is how to integrate this with CIs.
@genotrance might be worth starting from (a fork of) https://github.com/FedericoCeratto/nim-ci instead of from scratch /cc @FedericoCeratto
This has been implemented. Add your packages to important_packages.nim please.
Most helpful comment
I'll be happy to help with this. I am already doing a small subset with nimgen and nimterop which test over 30 wrapper packages daily with devel, stable and stable - 1 and have found and reported issues in the past.
Please let me know how I can contribute.