Skip to content

Commit 8f4d23f

Browse files
iscai-msftCopilot
andcommitted
fix: pin http-specs versions in Python CI workflow
Use the pinned npm versions of @typespec/http-specs and @azure-tools/azure-http-specs from http-client-python's package.json instead of rebuilding from typespec-azure main source. This prevents CI from breaking when new specs are added upstream. - Build step: copy pinned dist over workspace-built dist before upload - Test step: skip source rebuild, use downloaded pinned artifacts Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 694bb79 commit 8f4d23f

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/python-integration.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ jobs:
6767
- name: Build
6868
run: pnpm turbo run --filter "@azure-tools/typespec-python..." build
6969

70+
- name: Use pinned http-specs versions
71+
run: |
72+
cp -r core/packages/http-client-python/node_modules/@typespec/http-specs/dist core/packages/http-specs/dist
73+
cp -r core/packages/http-client-python/node_modules/@azure-tools/azure-http-specs/dist packages/azure-http-specs/dist
74+
7075
- name: Prepare Python environment
7176
run: pnpm run prepare
7277
working-directory: packages/typespec-python
@@ -127,11 +132,8 @@ jobs:
127132
- name: Install dependencies
128133
run: pnpm install --no-frozen-lockfile
129134

130-
- name: Build spector and specs
131-
run: |
132-
pnpm turbo run --filter "@typespec/spector..." build
133-
pnpm --filter "@typespec/http-specs" exec tsc -p ./tsconfig.build.json
134-
pnpm --filter "@azure-tools/azure-http-specs" exec tsc -p ./tsconfig.build.json
135+
- name: Build spector
136+
run: pnpm turbo run --filter "@typespec/spector..." build
135137

136138
- name: Prepare Python environment
137139
run: pnpm run prepare

0 commit comments

Comments
 (0)