Skip to content

Fix CI: ignore W3C heading-level-skip errors and handle failed CSL downloads#1521

Merged
yihui merged 7 commits into
mainfrom
copilot/fix-ci-failure-on-ubuntu
Apr 9, 2026
Merged

Fix CI: ignore W3C heading-level-skip errors and handle failed CSL downloads#1521
yihui merged 7 commits into
mainfrom
copilot/fix-ci-failure-on-ubuntu

Conversation

Copilot AI commented Apr 9, 2026

Copy link
Copy Markdown
Contributor
  • Set up W3C validator Docker container locally
  • Reproduced CI failure: test-rmd.R fails due to validator using Unicode curly quotes in error messages instead of ASCII double quotes — setdiff() no longer matches expected_errors
  • Fix helper-validate_html.R: replace exact-string expected_errors + setdiff() with regex ignore_patterns + grepl() for all known expected errors
  • Rebuild package with Rd2roxygen::rab('.')
  • R CMD check passes with W3C_MARKUP_VALIDATOR_BASEURL set (Status: OK)
  • Run parallel validation

Copilot AI and others added 4 commits April 9, 2026 05:12
Agent-Logs-Url: https://github.com/rstudio/bookdown/sessions/ff2c6eac-3ee3-4f93-a148-c81e20776e1a

Co-authored-by: yihui <163582+yihui@users.noreply.github.com>
…CSL file

- Add regex pattern to helper-validate_html.R to ignore W3C validator's new
  heading-level-skip errors; these are expected when testing non-sequential
  headings and not a bookdown bug
- Fix skeleton_get_csl() to detect empty/failed CSL downloads and remove the
  csl: reference from index.Rmd to prevent pandoc from failing when the
  Zotero CSL file cannot be downloaded
- Bump version to 0.46.3
- Add bookdown.Rcheck/ to .gitignore

Agent-Logs-Url: https://github.com/rstudio/bookdown/sessions/ff2c6eac-3ee3-4f93-a148-c81e20776e1a

Co-authored-by: yihui <163582+yihui@users.noreply.github.com>
@CLAassistant

CLAassistant commented Apr 9, 2026

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ yihui
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@yihui yihui marked this pull request as ready for review April 9, 2026 14:58
…with regex patterns

The W3C validator now uses Unicode curly quotes in error messages instead of
ASCII double quotes, breaking the setdiff()-based expected_errors matching.
Replace expected_errors + setdiff() with regex-based ignore_patterns + grepl()
for all known expected errors (CSS IE hacks, custom 'number' attribute on div,
and heading level skips). Verified with running Docker validator.

Agent-Logs-Url: https://github.com/rstudio/bookdown/sessions/5eb030f0-9464-40f2-934b-6fda34ef3859

Co-authored-by: yihui <163582+yihui@users.noreply.github.com>
Copilot finished work on behalf of yihui April 9, 2026 15:30
Copilot AI requested a review from yihui April 9, 2026 15:30
@yihui yihui merged commit 6824cd3 into main Apr 9, 2026
10 of 11 checks passed
@yihui yihui deleted the copilot/fix-ci-failure-on-ubuntu branch April 9, 2026 15:57
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