Skip to content

Commit fde573e

Browse files
committed
Trim readme a bit
1 parent 4934943 commit fde573e

1 file changed

Lines changed: 11 additions & 46 deletions

File tree

README.md

Lines changed: 11 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# recheck
22

3-
Tools to run a reverse dependency check similar to CRAN.
4-
3+
Run a reverse dependency check similar to CRAN.
54

65
## How to use with GitHub Actions
76

8-
To use this on GitHub Actions you can simply call the [reusable workflow](https://docs.github.com/en/actions/using-workflows/reusing-workflows). To do this, create a new workflow in your package git repo named `.github/workflows/recheck.yml` which contains the following:
7+
We prepared a [reusable workflow](https://docs.github.com/en/actions/using-workflows/reusing-workflows) that you can easily run for free on GitHub Actions. To do this, create a new workflow file in your package git repo named `.github/workflows/recheck.yml` which contains the following:
98

109
```yml
1110
on:
@@ -26,14 +25,16 @@ jobs:
2625
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
2726
with:
2827
which: ${{ inputs.which }}
29-
subdirectory: '' #if your package is in a git subdir
28+
subdirectory: '' # set if your R package is in a subdir of the git repo
29+
repo: '' # set to recheck an R package from another git repo
30+
ref: '' # set to recheck a custom tag/branch from another repo
3031
```
3132
32-
Then trigger it manually using the 'run workflow' button under the actions tab. Note that you can pick a branch to test, so you can perform reverse dependency checks on a feature branch before merging into main.
33+
After committing this file, you can trigger it using the 'run workflow' button under the actions tab. Note that you can pick a target branch in this UI, so you can perform the reverse dependency checks on a feature branch.
3334
3435
A summary of the results can be seen in the GHA webUI. Upon completion, the full install/check logs for all packages are available in the 'artifacts' section.
3536
36-
See [Advanced Usage](#advanced-usage) for information on additional workflow arguments recheck supports.
37+
The `repo` and `ref` parameters are only needed if you want to recheck a package from another git repository than the one that has the workflow.
3738

3839
## Real world example
3940

@@ -45,9 +46,9 @@ See here for an example using the V8 package: https://github.com/jeroen/V8/actio
4546

4647
## Recheck goals and limitations
4748

48-
A reverse dependency check can be a useful diagnostic tool to identify potential regressions that may need further investigation. However it is often impractical to use as a red/green CI test: checks from other packages that depend on yours can be influenced by all sorts of factors specific to the platform, hardware, network, system setup, or just random failures.
49+
A reverse dependency check can be a helpful diagnostic tool to identify potential regressions that may need investigation. However it is typically too volatile to use as an automatic pass/fail CI test: checks results from other packages can be influenced by all sorts of factors specific to the platform, hardware, network, system setup, or just random failures.
4950

50-
The goal of this repo is to provide a simple tool that can run on free infrastructure to discover potential problems with reverse dependencies of your package. However it is still up to you to interpret the results, and possibly investigate them to identify problems. We try to create a setup similar to CRAN, but we need to make trade offs to keep this practical (see below).
51+
The goal of this repo is to provide a simple tool that can run on free infrastructure to discover potential problems with reverse dependencies of your package. It is still up to you to interpret the results. We try to create a setup similar to CRAN, but we need to make trade offs to keep this practical (see below).
5152

5253
## Important caveats
5354

@@ -57,45 +58,9 @@ Hence even if your package only has a handful of dependents, you may need to ins
5758

5859
CRAN runs revdep checks on `r-devel` on a server with `debian:testing` but there are currently no R binary packages available for this platform. Instead our containers are based on `ubuntu:latest` and run `r-release`, for which public binary packages are available via https://p3m.dev and https://r-universe.dev. This is one reason results might be slighlty different from what CRAN would show, though in practice it is usually irrelevant.
5960

61+
It is also not the goal of this repo to support every possible flag in `CMD check`
62+
6063
## On rcheckserver
6164

6265
On GitHub actions we run the check inside the [rcheckserver](https://github.com/r-devel/rcheckserver)
6366
container. This container has the same system libraries installed as the CRAN Debian server.
64-
65-
## Advanced Usage
66-
67-
By default, recheck runs against the package in the current repository.
68-
For some use cases, it may be useful to run recheck against a repository other than the current one and/or against a branch other than the default.
69-
70-
This can be achieved through a combination of the `repo` and `ref` parameters:
71-
72-
- `repo`: Repository to checkout (as `owner/repo`)
73-
- `ref`: The branch, tag or SHA to checkout
74-
75-
See the following example to get an idea of what this can look like:
76-
77-
```yml
78-
on:
79-
workflow_dispatch:
80-
inputs:
81-
which:
82-
type: choice
83-
description: Which dependents to check
84-
options:
85-
- strong
86-
- most
87-
88-
name: Reverse dependency check
89-
90-
jobs:
91-
revdep_check:
92-
name: Reverse check ${{ inputs.which }} dependents
93-
uses: r-devel/recheck/.github/workflows/recheck.yml@v1
94-
with:
95-
which: ${{ inputs.which }}
96-
subdirectory: 'r'
97-
repo: user/package_name
98-
ref: my_branch
99-
```
100-
101-
The above workflow runs recheck on the `my_branch` branch of a clone of https://github.com/user/package_name.

0 commit comments

Comments
 (0)