Repository navigation
Conversation
The URL check of the `soft` job prints to the log only when it finds a problem, and writes its all-clear only to the job summary, so the 3.54.1 release run showed no URL output at all, and a release session cannot reach the documentation hosts to run the check itself. The new `urls` job runs urlchecker::url_check() on the checkout, prints the result to the log, lists every broken or redirected URL with file and line, status, and replacement in the job summary, and fails on any of them. Like `docs`, it reports without holding up a release, and its status appears in the release-gate comment on the release pull request. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
…the job only reports Server messages could carry HTML, and URLs could carry backticks that end the code span early. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
urlchecker stops when the vignette builder is not installed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
❌ Release gate: failureRun #7 (attempt 1, workflow_dispatch) on
The run's summary page has the details. Later runs of this workflow update this comment. |
|
The red "Hard gates" job in the release-gate runs dispatched on this branch is expected and not this PR's: the branch is based on Generated by Claude Code |
|
The run on c64c0fb shows the new job working: Generated by Claude Code |
| if: github.repository == 'r-dbi/RSQLite' | ||
|
|
There was a problem hiding this comment.
Why only here? Will be copied to all repos later.
There was a problem hiding this comment.
Agreed, the guard should not name the repository. 99cd6b6 replaces github.repository == 'r-dbi/RSQLite' with !github.event.repository.fork in every job of all four release workflows (release-gate, cran-submission, cran-release, winbuilder), so they copy into another package without edits to the guards. One caveat, stated in cran-release.yaml's header: a scheduled run's payload has no repository, so the guard lets it through; GitHub runs no workflow in a fork until its owner enables Actions there. The action tests pass (cran-release 53, cran-submit 64, cran-tag 94, release-report 27), actionlint reports nothing new, and the release gate runs again on 99cd6b6 from this branch.
The header comments still name RSQLite in examples (gh workflow run ... --repo r-dbi/RSQLite, the CRAN check page, the NEWS heading); those are documentation and read naturally per package, so I left them.
Generated by Claude Code
Every release job checked `github.repository` against r-dbi/RSQLite, so a copy into another package had to edit each guard. The jobs now check `github.event.repository.fork`, which needs no edit. A scheduled run carries no fork flag, which the header of cran-release.yaml states. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
…ts a run through Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
Accepted limitationsThe clean review of the fork guard (99cd6b6) found no High issue; its wording point is fixed in 89d0c62, which no longer claims that a scheduled run's payload lacks the fork flag. The "Hard gates" failure on 99cd6b6 is the same expected one as before (development version on
Generated by Claude Code |
|
We don't need to gate forks in workflows that we only dispatch. In some cases, the parent org doesn't have full access for the Claude app, and the release will happen from a fork, with subsequent cleanup. |
A release can run from a fork when the repository itself is out of reach, so release-gate, cran-submission and winbuilder no longer skip their jobs there. cran-release keeps its guard, because it also runs on a schedule. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
|
Done in c4e04e4 and 3f071e4:
Generated by Claude Code |
|
Closing as superseded by #908, which replaced the four release workflows edited here with thin callers of krlmlr/r-release-actions. Its release gate already reports every URL urlchecker flags, with its answer, in its comment on the release pull request, and a fork guard that skips release jobs in every fork would stop packages that release from their fork. Generated by Claude Code |
The release gate's
softjob runsurlchecker::url_check()throughBristolMyersSquibb/blockr.ci's release-soft action, but in the release of RSQLite 3.54.1 (#893) its log showed no URL output at all. The action did run the check; it prints to the log only when it finds problems, and its "all URLs resolve" line goes to the step summary only, which the release-gate comment on the release pull request does not carry. The release session also cannot reach the documentation hosts through its proxy, so a reviewer had no visible evidence either way. This PR adds a job of its own for the URL check.The new
urlsjob in.github/workflows/release-gate.yamlinstalls only urlchecker, knitr and rmarkdown (urlchecker refuses to read the vignettes without their builder) plus pandoc, runsurlchecker::url_check(".", fail = FALSE)on the checkout, prints the result to the log, and writes a table to the job summary with the file and line, the URL, the status and message, and the suggested replacement, with HTML, pipes and backticks escaped. It goes red on any broken URL, any redirect (CRAN asks for a 301 to be replaced by its target) and any non-canonical CRAN URL. Likedocs, it only reports: it runs withcontinue-on-errorand hands its own status to thereportjob, so the release-gate comment showsurls: <status> (reports only)and a redurlsjob does not fail the gate, since a third-party host can be down for a moment. The header comment describes the job, and thesoftjob keeps its own URL check.The PR also makes the release workflows copyable into other packages without editing their guards: every job of release-gate, cran-submission, cran-release and winbuilder now skips in a fork by checking
!github.event.repository.forkinstead ofgithub.repository == 'r-dbi/RSQLite'. A scheduled run's payload has no repository, so the guard lets it through; GitHub runs no workflow in a fork until its owner enables Actions there, as cran-release.yaml's header now says. The action tests pass (cran-release 53, cran-submit 64, cran-tag 94, release-report 27).Validation: the workflow parses as YAML, and actionlint reports nothing new compared with main. The release-report tests pass (27 of 27). The R step ran locally on a fake result with a 301, a 404, a non-canonical CRAN URL, and a
|, a backtick and HTML in the values. On GitHub, on c64c0fb,urlssucceeded with "All URLs are correct!";gatefails there only becausemaincarries a development version. A clean review found nothing above Low after the escaping fix.Once merged, the release branch of #893 merges
mainand the release gate runs there.https://claude.ai/code/session_01Hr1rd6znpbaJUu6TJLjgQC
Generated by Claude Code