You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we can remove following workflows in general:
lint (but we keep lint-files-changed)
check_styling
air-formatter
test-coverage (not working anyway?)
We should update:
check-all-examples: this should not error on warnings (like https://github.com/easystats/insight/actions/runs/41021206613/job/123948701925?pr=1305), because sometimes, warnings are "intentional" and I don't want to wrap examples with an ugly suppressWarnings(). It is still useful to have this check in case other packages deprecate arguments - we don't want to miss these cases
On main, we should only run selected workflows, like win/linux devel, check-readme, and pkgdown (to update the GitHub websites). We don't need lint for main, or other CIs.
In insight, we have these strange brms compiling errors (https://github.com/easystats/insight/actions/runs/40964839273/job/123766571028). Not sure if this can be fixed? But currently, we have these "false positives" for win-devel and linux-devel checks, making the checks actually "useless", because I don't want to look up the error logs each time if there are "real" issues, or the compiling errors again.
Here's what I found (though I'm still learning these workflows):
The brms compile errors that make the win-devel checks fail in insight only happen on Windows; Linux compiles the same models fine. They started in September, when a new StanHeaders came out on CRAN that the CRAN version of rstan doesn't work with. bayestestR, performance, modelbased, and report have the same failures. The Stan team says the rstan on their r-universe works in the meantime (CRAN C++ issues during vignette rebuilding stan-dev/rstan#1197), so we could install rstan from there on Windows in our shared workflows. That would fix it for all packages at once.
There's a second reason the checks keep failing in the other packages, and I think it's what you saw in Strange failures #88. Since testthat 3.3.0, a snapshot test fails on CI when there's no saved snapshot to compare against. Most of our packages leave tests/testthat/_snaps out of the build in .Rbuildignore, so during R CMD check every snapshot looks new and fails. insight only escapes this because its snapshot tests skip on CI. We can't just ship the snapshots, since see's are over 30 MB, but the workflow could drop that .Rbuildignore line in the CI copy only, before the check runs. CRAN releases wouldn't change. The snapshot tests would then really run, so we might find a few genuine differences to fix.
You're right that test-coverage doesn't work right now. It runs on Windows, so it fails along with the brms errors, and when the tests do pass, Codecov rejects the upload because we don't send an upload token. Moving it to Ubuntu and adding a token as an org secret would fix that, but we could also just remove it if you prefer.
We could remove lint (keeping lint-changed-files), check-styling, and the air formatter, as you suggested.
For check-all-examples, we could stop turning warnings into errors, so examples that warn on purpose (like the is_converged() one that failed in insight) no longer fail the check. The warnings would still show up as notes on the checks page, so we'd still see deprecations from other packages. Do you want deprecation warnings to still fail the check, or are notes enough?
You suggested running only win/linux devel, check-readme, and pkgdown on main. insight, bayestestR, parameters, performance, and modelbased are already close to that once the workflows above are gone. datawizard, correlation, report, see, and effectsize still run everything on main, so we could trim those too. If we keep test-coverage, it would also need to run on main so Codecov has something to compare PRs against.
The fixes in this repo (1, 2, 3, and 5) would come first, then one cleanup PR per package for 4 and 6. The old workflow files here would go last, so that no package is left calling a file that no longer exists.
I'm happy to do some or all of this whenever it makes sense, for example after the current round of bug fixes is on CRAN. Just let me know how you want to proceed.
Just checking back on this one. The Windows brms errors from point 1 are still around (insight's weekly check this morning failed 10 tests on them), so I'd like to start there if you're OK with it: have the shared R-CMD-check workflow install rstan from the Stan r-universe on Windows.
Also, #125 takes on the Codecov upload from point 3, so that part may get settled there.
For the rest, let me know which points you want, and whether deprecation warnings should still fail check-all-examples (point 5).
Sounds good! regarding warnings that fail checks: I'm not sure if it possible to distinguish warnings? Deprecation warnings would be nice to catch, other warnings are sometime intentional (e.g., in is_converged()), so these should not fail checks.
It looks like they can be told apart. Deprecation warnings from base R's .Deprecated() and from the lifecycle package (which tidyverse and lots of other packages use) have their own condition classes, deprecatedWarning and lifecycle_warning_deprecated, so the check can catch those by class.
Our own deprecation warnings (e.g. in parameters and performance) go through insight::format_warning(), so they're plain warnings. We can only catch those by their text, which says "deprecated".
So here's what I'd propose: check-all-examples fails on a warning that has one of those deprecation classes or whose message says "deprecated". Every other warning, like the one from is_converged(), shows up as an annotation on the checks page and doesn't fail the check.
I'll start with the rstan fix and then do this one.
Something else I've noticed in the R CMD check runs on main: the Ubuntu R-devel job spends about 80 minutes just installing packages before the check starts. In today's runs on main, that took 76 minutes for performance and 85 minutes for modelbased (R-CMD-check-main), and it happens on every run.
There aren't any prebuilt binaries for R-devel on Ubuntu, so every package (about 315 for performance) gets compiled from source. rstanarm alone takes about 16 minutes. The package cache should make that a one-time cost, but r-lib/actions/setup-r-dependencies with its default cache: true only saves the cache when the whole job succeeds. Our check jobs fail whenever a test fails, so the cache never gets saved and every run starts from scratch.
I'd propose setting cache: always on setup-r-dependencies in R-CMD-check.yaml, R-CMD-check-main.yaml and R-CMD-check-no-oldrel.yaml. Here's what the r-lib docs say about that option: "If "always" is provided, the package cache will be saved even if the workflow fails." The first run after the change would still take the full time. After that, runs would restore the cache and only rebuild packages that changed on CRAN.
I'd open the PR once #126 or #127 is merged, so I don't have too many open at once. Are you OK with this change?
I'm starting on removing lint and style from CI now. There'll be one PR per package that drops the lint, check-styling and format-suggest callers, plus any callers left for workflows that were already deleted here (like revdepcheck). lint-changed-files stays. insight is first: easystats/insight#1319. Once they're all merged, I'll delete the three workflow files here.
@mattansb, flagging this in case you'd like any package handled differently.
Nah, it's probably best that all packages use the same workflows (if effectsize or bayestestR are doing something else that's probably my fault and should be amended 😇)
I went to line the packages up and found they don't share one setup. There are two:
insight, modelbased, parameters and performance run R-CMD-check-no-oldrel (devel and release, Windows and Ubuntu) on PRs and R-CMD-check-main on pushes to main. Most other checks run only on PRs.
correlation, datawizard, effectsize, report and see run every workflow on both pushes and PRs, and use the full R-CMD-check matrix, which adds macOS and oldrel-1 to oldrel-4.
So effectsize already matches four other packages. bayestestR follows the first setup, except that its PR check uses the full R-CMD-check and test-coverage doesn't run on pushes to main.
One practical difference is that the second group tests old R versions and the first never does. That's why the oldrel jobs on main failed this week in correlation and effectsize: some dependencies need R ≥ 4.5 (energy through gsl, and afex through Deriv).
Which setup should all the packages use? Once you decide, I'll open the PRs.
Sounds good, I'll set all the packages up that way and drop oldrel everywhere. I'm reading "examples-warnings" as check-all-examples.
For release on PRs, a middle option would be to keep it on Ubuntu and drop it on Windows. On Windows, release and devel haven't disagreed once in the last 52 PR runs. On Ubuntu, release is quick (binaries) and still gives a result when devel breaks, like now, when rstanarm and blavaan don't compile on Ubuntu devel.
Your list doesn't include check-random-test-order, check-test-warnings, check-vignette-warnings, check-readme, html-5-check, pkgdown-no-suggests, test-coverage-examples or lint-changed-files. Should those stay on PRs, or go?
Activity
jmgirard commentedon Oct 30, 2026
Sure, I can take a look tonight. Been playing with CI workflows more this year.
jmgirard commentedon Oct 30, 2026
Here's what I found (though I'm still learning these workflows):
The brms compile errors that make the win-devel checks fail in insight only happen on Windows; Linux compiles the same models fine. They started in September, when a new StanHeaders came out on CRAN that the CRAN version of rstan doesn't work with. bayestestR, performance, modelbased, and report have the same failures. The Stan team says the rstan on their r-universe works in the meantime (CRAN C++ issues during vignette rebuilding stan-dev/rstan#1197), so we could install rstan from there on Windows in our shared workflows. That would fix it for all packages at once.
There's a second reason the checks keep failing in the other packages, and I think it's what you saw in Strange failures #88. Since testthat 3.3.0, a snapshot test fails on CI when there's no saved snapshot to compare against. Most of our packages leave tests/testthat/_snaps out of the build in .Rbuildignore, so during R CMD check every snapshot looks new and fails. insight only escapes this because its snapshot tests skip on CI. We can't just ship the snapshots, since see's are over 30 MB, but the workflow could drop that .Rbuildignore line in the CI copy only, before the check runs. CRAN releases wouldn't change. The snapshot tests would then really run, so we might find a few genuine differences to fix.
You're right that test-coverage doesn't work right now. It runs on Windows, so it fails along with the brms errors, and when the tests do pass, Codecov rejects the upload because we don't send an upload token. Moving it to Ubuntu and adding a token as an org secret would fix that, but we could also just remove it if you prefer.
We could remove lint (keeping lint-changed-files), check-styling, and the air formatter, as you suggested.
For check-all-examples, we could stop turning warnings into errors, so examples that warn on purpose (like the is_converged() one that failed in insight) no longer fail the check. The warnings would still show up as notes on the checks page, so we'd still see deprecations from other packages. Do you want deprecation warnings to still fail the check, or are notes enough?
You suggested running only win/linux devel, check-readme, and pkgdown on main. insight, bayestestR, parameters, performance, and modelbased are already close to that once the workflows above are gone. datawizard, correlation, report, see, and effectsize still run everything on main, so we could trim those too. If we keep test-coverage, it would also need to run on main so Codecov has something to compare PRs against.
The fixes in this repo (1, 2, 3, and 5) would come first, then one cleanup PR per package for 4 and 6. The old workflow files here would go last, so that no package is left calling a file that no longer exists.
I'm happy to do some or all of this whenever it makes sense, for example after the current round of bug fixes is on CRAN. Just let me know how you want to proceed.
jmgirard commentedon Nov 29, 2026
Just checking back on this one. The Windows brms errors from point 1 are still around (insight's weekly check this morning failed 10 tests on them), so I'd like to start there if you're OK with it: have the shared R-CMD-check workflow install rstan from the Stan r-universe on Windows.
Also, #125 takes on the Codecov upload from point 3, so that part may get settled there.
For the rest, let me know which points you want, and whether deprecation warnings should still fail check-all-examples (point 5).
strengejacke commentedon Nov 30, 2026
Sounds good! regarding warnings that fail checks: I'm not sure if it possible to distinguish warnings? Deprecation warnings would be nice to catch, other warnings are sometime intentional (e.g., in
is_converged()), so these should not fail checks.jmgirard commentedon Nov 30, 2026
It looks like they can be told apart. Deprecation warnings from base R's
.Deprecated()and from the lifecycle package (which tidyverse and lots of other packages use) have their own condition classes,deprecatedWarningandlifecycle_warning_deprecated, so the check can catch those by class.Our own deprecation warnings (e.g. in parameters and performance) go through
insight::format_warning(), so they're plain warnings. We can only catch those by their text, which says "deprecated".So here's what I'd propose: check-all-examples fails on a warning that has one of those deprecation classes or whose message says "deprecated". Every other warning, like the one from
is_converged(), shows up as an annotation on the checks page and doesn't fail the check.I'll start with the rstan fix and then do this one.
jmgirard commentedon Dec 1, 2026
Something else I've noticed in the R CMD check runs on main: the Ubuntu R-devel job spends about 80 minutes just installing packages before the check starts. In today's runs on main, that took 76 minutes for performance and 85 minutes for modelbased (R-CMD-check-main), and it happens on every run.
There aren't any prebuilt binaries for R-devel on Ubuntu, so every package (about 315 for performance) gets compiled from source. rstanarm alone takes about 16 minutes. The package cache should make that a one-time cost, but
r-lib/actions/setup-r-dependencieswith its defaultcache: trueonly saves the cache when the whole job succeeds. Our check jobs fail whenever a test fails, so the cache never gets saved and every run starts from scratch.I'd propose setting
cache: alwaysonsetup-r-dependenciesinR-CMD-check.yaml,R-CMD-check-main.yamlandR-CMD-check-no-oldrel.yaml. Here's what the r-lib docs say about that option: "If"always"is provided, the package cache will be saved even if the workflow fails." The first run after the change would still take the full time. After that, runs would restore the cache and only rebuild packages that changed on CRAN.I'd open the PR once #126 or #127 is merged, so I don't have too many open at once. Are you OK with this change?
Install rstan from the Stan r-universe on Windows (#126)
Fail check-all-examples on deprecation warnings only (#127)
jmgirard commentedon Dec 2, 2026
I'm starting on removing lint and style from CI now. There'll be one PR per package that drops the
lint,check-stylingandformat-suggestcallers, plus any callers left for workflows that were already deleted here (likerevdepcheck).lint-changed-filesstays. insight is first: easystats/insight#1319. Once they're all merged, I'll delete the three workflow files here.@mattansb, flagging this in case you'd like any package handled differently.
mattansb commentedon Dec 2, 2026
Nah, it's probably best that all packages use the same workflows (if
effectsizeorbayestestRare doing something else that's probably my fault and should be amended 😇)Remove the lint and check-styling workflow callers (#1319)
Remove the lint and check-styling workflow callers (#491)
Remove the lint and check-styling workflow callers (#506)
jmgirard commentedon Dec 4, 2026
I went to line the packages up and found they don't share one setup. There are two:
R-CMD-check-no-oldrel(devel and release, Windows and Ubuntu) on PRs andR-CMD-check-mainon pushes to main. Most other checks run only on PRs.R-CMD-checkmatrix, which adds macOS and oldrel-1 to oldrel-4.So effectsize already matches four other packages. bayestestR follows the first setup, except that its PR check uses the full
R-CMD-checkandtest-coveragedoesn't run on pushes to main.One practical difference is that the second group tests old R versions and the first never does. That's why the oldrel jobs on main failed this week in correlation and effectsize: some dependencies need R ≥ 4.5 (energy through gsl, and afex through Deriv).
Which setup should all the packages use? Once you decide, I'll open the PRs.
strengejacke commentedon Dec 4, 2026
Main should only run minimal, win/lin devel and pkgdown (to build website)
PR can run win/Lin devel (and release?), pkgdown, check-hard, examples-warnings, spelling, link-rot, code-cov if it works
If code cov works and we can use the button on the readme page, I would also add code cov to main, if that's a prerequisite for updating the button
strengejacke commentedon Dec 4, 2026
We should entirely skip oldrel, I'd say, to save some resources
jmgirard commentedon Dec 4, 2026
Sounds good, I'll set all the packages up that way and drop oldrel everywhere. I'm reading "examples-warnings" as
check-all-examples.For release on PRs, a middle option would be to keep it on Ubuntu and drop it on Windows. On Windows, release and devel haven't disagreed once in the last 52 PR runs. On Ubuntu, release is quick (binaries) and still gives a result when devel breaks, like now, when rstanarm and blavaan don't compile on Ubuntu devel.
Your list doesn't include check-random-test-order, check-test-warnings, check-vignette-warnings, check-readme, html-5-check, pkgdown-no-suggests, test-coverage-examples or lint-changed-files. Should those stay on PRs, or go?