Skip to content

Testing#4

Draft
l0lawrence wants to merge 18 commits into
l0lawrence/python-regen-html-difffrom
testing
Draft

Testing#4
l0lawrence wants to merge 18 commits into
l0lawrence/python-regen-html-difffrom
testing

Conversation

@l0lawrence

Copy link
Copy Markdown
Owner

No description provided.

@l0lawrence l0lawrence closed this Jun 23, 2026
@l0lawrence l0lawrence reopened this Jun 23, 2026
@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

🐍 Python emitter — generated test diff

195 files changed · +195 / -0

👉 View the rendered HTML diff

👇 This PR changes generated output — update the baseline

Review the rendered diff above. If the changes are expected, refresh the
baseline and pin the new tag so it ships with this PR:

cd packages/http-client-python
npm run regenerate            # produce fresh generated output
npm run regenerate:push-assets  # publish baseline + bump assets.json

Then commit the updated packages/http-client-python/assets.json (its
Tag now points at the new baseline). Pushing it makes this check pass
with 0 differences.

Baseline tag: `python/tests_481763e148` · updated for the latest commit. Re-runs of CI refresh this preview.

github-actions Bot added a commit that referenced this pull request Jun 23, 2026
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
l0lawrence and others added 3 commits June 23, 2026 13:14
# Conflicts:
#	packages/http-client-python/eng/scripts/ci/regenerate-common.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
git diff --no-index prefixes each path with baseline/ vs current/, so
diff2html mistook every file for a rename ({baseline -> current}). Strip
those temp-dir prefixes from the per-file chunk header so old == new path
and it renders as a normal modification.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jun 23, 2026
l0lawrence and others added 4 commits June 23, 2026 15:47
Add a --open flag that prints a clickable file:// URL and opens the
rendered diff in the default browser, plus two npm scripts:
  - regenerate:diff     render the diff and open it
  - regenerate:review   regenerate then render+open
so contributors get the same grouped HTML diff locally, no PR/CI needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
tests/**/generated is git-ignored, so the regenerated output never shows
in VS Code Source Control. Add a --vscode mode that restores the
assets-tag baseline, persists both normalized trees to temp/diff-trees,
and opens a native 'code --diff' editor per changed file (capped via
--max). New regenerate:vscode-diff script.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Extract the Python-specific regen-diff baseline + HTML-diff PR-preview
system into a self-contained, language-agnostic tool under
eng/common/scripts/regen-diff (render + push-assets CLI driven by a
per-package regen-diff.config.json). Convert the Python emitter to use it
as the reference adopter and generalize the publish/cleanup workflows so a
single pair serves every emitter language (slug-namespaced gh-pages
previews, sticky comment, and regen-diff/<slug> commit status). Adds an
onboarding README.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the diff2html dependency with a small built-in renderer that emits
a line-numbered, colorized unified diff per file, so the shared tool has no
runtime rendering dependency (only picocolors remains). Rename the emitted
stylesheet diff2html.css -> styles.css and update the publish allowlist.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant