Skip to content

docs: deduplicate the boilerplate bpftime intro across tutorials 5/15/16/30 - #231

Closed
yunwei37 wants to merge 1 commit into
mainfrom
docs/dedup-bpftime-intro
Closed

yunwei37 wants to merge 1 commit into
mainfrom
docs/dedup-bpftime-intro

Conversation

@yunwei37

Copy link
Copy Markdown
Member

Fixes #230.

The three-sentence bpftime background paragraph was copy-pasted into the tails of the uprobe/USDT sections of tutorials 5, 15, 16, and 30, so anyone reading several tutorials in a row reads the exact same product pitch every time (reported in #230 for the zh pages of 15-javagc and 16-memleak; the same paragraph is present in the EN pages and in 30-sslsniff and 5-uprobe-bashreadline).

This change keeps the full paragraph only in tutorials 5 (5-uprobe-bashreadline) — the first uprobe tutorial in reading order — and condenses the identical tail in 15-javagc, 16-memleak, and 30-sslsniff (both README.md and README.zh.md, 6 files) to a one-sentence pointer linking to tutorial 5, so the background stays one hop away in every page.

Validation:

  • python3 scripts/check_internal_links.py — all relative Markdown links resolve.
  • scripts/generate_toc.py / generate_compatibility.py regeneration produces no diff (generated indexes unaffected).
  • Focused self-review of the full diff: paragraph-level patch per file, all pre-existing content preserved, only the duplicated boilerplate tail condensed; bilingual (EN/zh) parity kept.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 06:43

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@yunwei37 yunwei37 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Reviewed the head a1917b60. Six files, one line each: deduplicating a repeated
bpftime intro paragraph across tutorials 5/15/16/30 (English and Chinese
pairs kept in step).

Small and safe; the only thing to verify is that the removed paragraph really
is boilerplate in every location and not the only place a given command was
explained — if one of those pages relied on it for the run instructions, the
page now starts mid-step. Checks green.

AI-generated response; a maintainer will review and follow up later

@yunwei37

Copy link
Copy Markdown
Member Author

Verdict: ready to merge

Head a1917b60 carries a patrol review of its change (see the review above/below on this pull request), and every check on this head is green. Nothing in the change is left for the patrol to fix.

Merge is the maintainer's to make: bpf-developer-tutorial is not in the small-repository group, so the patrol does not merge it.

AI patrol review

@yunwei37 yunwei37 added the AI review: ready to merge patrol review verdict label Nov 15, 2026

@yunwei37 yunwei37 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Verdict: ready to merge

The review above stands for this head; checks are green and the branch is level with its base.

AI patrol review

…/16/30

Keep the full uprove/bpftime background paragraph in tutorial 5 (the first
uprobe tutorial in reading order) and condense the identical 3-sentence
tail in tutorials 15, 16, 30 (both EN and zh) to a one-sentence pointer
linking to it.

Fixes the duplication reported in #230.
@yunwei37
yunwei37 force-pushed the docs/dedup-bpftime-intro branch from a1917b6 to 8160a78 Compare November 20, 2026 14:42

@yunwei37 yunwei37 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Verdict: ready to merge once CI is green

Rebased onto the current main; the branch's own commits are unchanged and the diff against the base is identical in content to the previously reviewed head. The standing verdict holds; checks rerun on the new head.

AI patrol review

@yunwei37 yunwei37 left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Verdict: ready to merge — every check on 8160a787 passed

The deduplication is unchanged: the three bpftime intro paragraphs (15-javagc, 16-memleak, 30-sslsniff, English and Chinese) now say the same thing in fewer words, one line removed where it repeated the previous paragraph. All 7 checks are green on this head, mergeable, no open thread.

Nothing here changes instructions a reader follows — the removed sentence only repeated the sentence before it — so the change is safe to merge as documentation.

AI patrol review

@yunwei37 yunwei37 added AI review: ready to merge patrol review verdict and removed AI review: ready to merge patrol review verdict labels Nov 21, 2026
@yunwei37 yunwei37 closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]中文重复

2 participants