Skip to content

Floor doc-tools at ^5.3.1 - #1870

Merged
JakeSCahill merged 1 commit into
mainfrom
chore/doc-tools-floor-5.3.1
Aug 3, 2026
Merged

Floor doc-tools at ^5.3.1#1870
JakeSCahill merged 1 commit into
mainfrom
chore/doc-tools-floor-5.3.1

Conversation

@JakeSCahill

Copy link
Copy Markdown
Contributor

Hardening follow-up from the first production rpk ai dispatch (micheleRP's finding): the run failed because npm ci installed doc-tools from the lockfile at 5.2.5, predating --plugin. The dependency-bump PR fixed the instance, but package.json still floored at ^5.1.2, so any future lockfile regeneration could legally resolve below the features the rpk workflows depend on. This raises the floor to ^5.3.1, the oldest version carrying --plugin, flag extraction, and the What's-new handling the workflows assume.

The alternative she suggested (installing doc-tools explicitly in the workflow) is already the pattern in the newer workflows (npx -p @redpanda-data/docs-extensions-and-macros@^5.3.0 in the plugin receiver); this PR closes the gap for the older update-rpk-docs.yml path that uses the repo install.

Related PRs (rpk docs automation train)

Follow-up to the #1868/#1869 production run.

The first manual rpk ai plugin dispatch failed because npm ci installed
doc-tools from the lockfile, which still pinned 5.2.5 while --plugin
shipped in 5.3.0. The dependency bump fixed that instance, but the
package.json floor stayed at ^5.1.2, so any future lockfile
regeneration could legally resolve below the features the rpk
workflows depend on. The floor now matches the oldest version the
automation requires.
@JakeSCahill
JakeSCahill requested a review from a team as a code owner August 1, 2026 06:05
@netlify

netlify Bot commented Aug 1, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 25cad58
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6a6d8cb6db2e2a00086eafa4
😎 Deploy Preview https://deploy-preview-1870--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0bcf8b39-48a3-4b7f-9ad6-f0152831eb32

📥 Commits

Reviewing files that changed from the base of the PR and between 6d9b7c2 and 25cad58.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

📝 Walkthrough

Walkthrough

The pull request updates @redpanda-data/docs-extensions-and-macros in package.json from ^5.1.2 to ^5.3.1.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: feediver1

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the dependency change and rationale but omits the required Jira link, review deadline, page previews, and checks sections. Add the required Jira link, review deadline, page previews, and checks section from the repository template.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the dependency floor increase to version ^5.3.1.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/doc-tools-floor-5.3.1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@micheleRP micheleRP 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.

Approving. I verified the premise against the actual failure rather than the description.

The run that broke is 30682273251, and the error is exactly what you say:

2026-08-01T03:35:56 error: unknown option '--plugin'
##[error]Process completed with exit code 1

And the range on main is the reason it was allowed to happen: ^5.1.2 legally admits 5.1.2 through 5.2.x, none of which carry --plugin. Flooring at ^5.3.1 turns an implicit assumption ("the lockfile happens to be new enough") into a machine-enforced one, which is the right shape for something the workflows hard-depend on.

I also checked the lockfile churn, since +25/-1075 is a lot of diff to attach to a one-line semantic change. All 88 removed package blocks are under the appium-chromium-driver subtree: 86 carry extraneous: true, and the other two (wbuf, which) are dev/optional entries that npm deduped when it re-resolved. Nothing production-facing. Then I confirmed it actually installs, on a clean clone of this branch:

npm ci  ->  exit 0
locked  ->  5.3.1
installed CLI has --plugin

One scope suggestion, not blocking: v/26.1 also carries update-rpk-docs.yml, reachable by workflow_dispatch, and is still at ^5.1.2. A full regeneration fired there would run without #226's platform detection and without the What's-new rpk ai exclusion from #238, so the same class of silently-wrong output applies even though --plugin is not involved. Worth either flooring that branch too or confirming it no longer regenerates rpk docs.

@JakeSCahill
JakeSCahill merged commit e294b6a into main Aug 3, 2026
8 checks passed
@JakeSCahill
JakeSCahill deleted the chore/doc-tools-floor-5.3.1 branch August 3, 2026 06:38
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