Skip to content

Make BiocCheck optional with enable_bioccheck (default true) - #43

Merged
LiNk-NY merged 2 commits into
mainfrom
optional-bioccheck
Dec 4, 2026
Merged

LiNk-NY merged 2 commits into
mainfrom
optional-bioccheck

Conversation

@lwaldron

@lwaldron lwaldron commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Some callers want only R CMD check: packages not headed for Bioconductor, or accepted packages whose maintainers don't act on BiocCheck advice. bioccheck_error_on: never keeps the job green but still installs and runs BiocCheck and prints the report.

This PR adds a boolean input, enable_bioccheck (default true). When false, BiocCheck is neither installed nor run and bioccheck_error_on is ignored. R CMD check, coverage, cyclocomp and pkgdown are unchanged.

Not a breaking change: the input is optional, the default keeps current behaviour, and cache keys are unchanged, so no caller PRs are needed.

The template ci.yml, the Workflow Generator (a "Run BiocCheck" checkbox that greys out the BiocCheck failure policy when unticked), the usage guide, README and technical notes are updated. ADR 0015 (Accepted) amends ADR 0013, which now links back to it.

Linted with actionlint; generator JS syntax-checked; reviewed by a local review agent, whose fixes are included. Not yet run in CI on a real package.

Drafted with Claude Code.

Adds ADR 0015 (Accepted), amending ADR 0013.

Co-authored-by: Claude Code <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active findings remain: the cache key prevents BiocCheck from being persisted after enabling it, and ADR 0010 contradicts the new conditional-installation decision.

2 open issues
What changed in this PR

Adds optional BiocCheck execution via enable_biocheck, defaulting to enabled while preserving existing behavior.

Changes:

  • Adds conditional BiocCheck installation and execution.
  • Updates the workflow generator, template, documentation, and ADRs.
File Description
technical_notes.md Updates canary workflow documentation for optional BiocCheck execution.
README.md Documents the option to customize BiocCheck execution.
docs/​index.html Adds the BiocCheck enablement control and failure-policy handling to the workflow generator.
docs/​adr/​README.md Indexes ADR 0015.
docs/​adr/​0015-optional-bioccheck.md Updated as part of this pull request.
docs/​adr/​0013-separate-bioccheck-failure-policy.md Updated as part of this pull request.
ci.yml Enables BiocCheck explicitly in the CI template.
bioccheck_usage.md Documents the enable_biocheck input and its behavior.
.github/​workflows/​bioccheck.yml Updated as part of this pull request.

Review effort: Lite

Comment thread .github/workflows/bioccheck.yml Resolved
Comment thread docs/adr/0015-optional-bioccheck.md Resolved
Addresses Copilot review on #43. Runs with enable_bioccheck: false add
-no-bioccheck to the cache key, so a cache saved without BiocCheck is
not reused once it is turned back on. The default key is unchanged.
ADR 0010 is now marked as amended by ADR 0015.

Co-authored-by: Claude Code <noreply@anthropic.com>
@LiNk-NY
LiNk-NY merged commit a52684e into main Dec 4, 2026
2 checks passed
@LiNk-NY
LiNk-NY deleted the optional-bioccheck branch December 4, 2026 15:06
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.

3 participants