Skip to content

Commit ced2f79

Browse files
committed
docs: require backporting test-environment updates to the stable branch
v1.10 smoke CI broke on a stale renv.lock hitting rstudio/renv#2327, while main had already moved past it. Patch releases should test against the same R/Python/Julia/package versions users install, and identical lock files let stable-branch CI reuse main's dependency cache.
1 parent 3d32aed commit ced2f79

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎dev-docs/configuring-test-deps.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@
7979
using Pkg
8080
Pkg.add("DataFrames")
8181
```
82+
83+
# Updating test dependencies
84+
85+
- When `main` updates the test environment (`tests/renv.lock`, `tests/uv.lock`, `tests/Manifest.toml`, or the R / Python / Julia versions in `.github/workflows/test-smokes.yml`), backport the update to the current stable branch (e.g. `v1.10`) while it still receives patch releases, as its own PR (see `checklist-backport-a-pr.md`).
86+
- Patch releases are then tested against the same current R, Python, Julia and package versions users install.
87+
- CI caches are shared: the R cache key is built from the OS, the R version and the `tests/renv.lock` hash, and any branch can read caches saved on `main`. A stable branch with identical lock files gets cache hits; a diverged one does a slow cold restore on each PR.

0 commit comments

Comments
 (0)