Skip to content

fix(http-client-python): Fix CI#10686

Merged
msyyc merged 2 commits into
mainfrom
msyyc/fix-ci-readme-regeneration
May 14, 2026
Merged

fix(http-client-python): Fix CI#10686
msyyc merged 2 commits into
mainfrom
msyyc/fix-ci-readme-regeneration

Conversation

@msyyc
Copy link
Copy Markdown
Contributor

@msyyc msyyc commented May 14, 2026

Fix CI after Azure/azure-sdk-for-python#46881 merged.

Description

Fix CI on main branch.

The baseline reset step in regenerate-common.ts was leaving stale (or missing) README.md files in generated SDK packages. Since the generator only writes README.md when none exists on disk (write-once), unbranded packages ended up without a README at all, and azure packages kept stale ones.

Changes

  • eng/scripts/ci/regenerate-common.ts: After resetting the baseline, delete every README.md under tests/generated/ so regeneration recreates them from the current template. Also refactored the cleanup block behind a shared deleteIfExists helper.
  • tests/mock_api/shared/unittests/test_readme.py: New unit test asserting that every generated SDK package folder (both azure and unbranded flavors) contains a README.md.
  • package.json: Bump required Node engine to >=22.

Delete README.md files during baseline reset so regeneration recreates them for both azure and unbranded flavors. Extend unit test to assert README.md exists for every generated SDK package.
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label May 14, 2026
@msyyc msyyc changed the title fix(http-client-python): regenerate README.md during baseline reset fix(http-client-python): Fix CI May 14, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10686

commit: 0efb8fc

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

Fix CI on main by deleting README.md files during baseline reset so regeneration recreates them; extend unit test to assert README.md exists for every generated SDK package (azure & unbranded).

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented May 14, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@msyyc msyyc enabled auto-merge May 14, 2026 09:18
@msyyc msyyc added this pull request to the merge queue May 14, 2026
Merged via the queue into main with commit 1f144e1 May 14, 2026
41 checks passed
@msyyc msyyc deleted the msyyc/fix-ci-readme-regeneration branch May 14, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants