Skip to content

CI: install zeehio/BiocStyle@my-fixes consistently (pandoc + pkgdown fixes) - #83

Merged
zeehio merged 2 commits into
develfrom
claude/biocstyle-my-fixes-pkgdown
Jul 12, 2026
Merged

CI: install zeehio/BiocStyle@my-fixes consistently (pandoc + pkgdown fixes)#83
zeehio merged 2 commits into
develfrom
claude/biocstyle-my-fixes-pkgdown

Conversation

@zeehio

@zeehio zeehio commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

zeehio/BiocStyle@my-fixes now carries two critical fixes not yet merged upstream: the pandoc >=3.8.1 uncaptioned-table counter fix (already used in this workflow since #73) and a pkgdown-compatibility fix.

What was wrong

check-bioc.yml already installed zeehio/BiocStyle@my-fixes early in the job (the "Install BiocStyle fork" step). But the later "Install pkgdown" step (only run for devel pushes) re-installed BiocStyle from a different, stale branch:

remotes::install_github("zeehio/BiocStyle@fix-biocstyle-with-pkgdown")

That overwrote the earlier my-fixes install — including the pandoc fix — with a build that doesn't carry it, right before the pkgdown site build step runs later in the same job. Historically these were two separate fork branches, each fixing a different problem, hence two install steps.

Fix

Both fixes now live on the single my-fixes branch, so install it once, unconditionally, in the early "Install BiocStyle fork" step — which also means non-devel/non-pkgdown CI runs (PRs, other branches) get the pandoc fix too, not just devel pushes.

I initially pushed a version that installed the fork a second time in the "Install pkgdown" step "defensively," reasoning that the later "Install dependencies pass 2" step (remotes::install_local(..., upgrade = TRUE)) might overwrite it with the official Bioconductor release. I verified that empirically instead of leaving it as a guess: I installed the fork locally, then ran the exact same install_local(dependencies = TRUE, repos = gha_repos, upgrade = TRUE, force = TRUE) call against this repo and checked packageDescription("BiocStyle") afterward — RemoteType stayed "local", unchanged. remotes's upgrade = TRUE logic compares version numbers, not install provenance, and since the fork's DESCRIPTION version already satisfies the requirement, it's left alone. So the second install wasn't defending against anything and was removed.

Testing

Verified locally (see above) that a remotes::install_local(upgrade = TRUE) pass does not clobber an already-installed dependency whose version is already satisfied, regardless of source. Also validated the YAML parses correctly. No local run of the full workflow is possible (this only affects devel-branch and PR CI runs), but this repo's existing CI will exercise it once merged.

claude added 2 commits July 12, 2026 14:21
The "Install pkgdown" step reinstalled BiocStyle from the stale
fix-biocstyle-with-pkgdown branch, overwriting the my-fixes install
done earlier in the same job (which carries the pandoc >=3.8.1
uncaptioned-table counter fix) with a build lacking it. Both fixes
(pandoc and pkgdown compatibility) now live on my-fixes, so install
that branch in both places.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXge48MtnR7KNWzCh34uAn
Verified empirically (simulating the "Install dependencies pass 2"
step's remotes::install_local(upgrade = TRUE) against an already
fork-installed BiocStyle) that it leaves an already-installed
dependency alone once its version satisfies the requirement,
regardless of source -- so the "defensive re-install" the previous
commit added to the "Install pkgdown" step doesn't actually protect
against anything. A single install, once, is sufficient; keep it in
the unconditional "Install BiocStyle fork" step so it also covers
non-devel/non-pkgdown CI runs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXge48MtnR7KNWzCh34uAn
@zeehio
zeehio merged commit d691411 into devel Jul 12, 2026
2 checks passed
@zeehio
zeehio deleted the claude/biocstyle-my-fixes-pkgdown branch July 12, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants