Commit bf20ab1
## Summary
The `install-ogx-client` composite action resolved the Python client two
ways that both cloned the now-retired
`github.com/ogx-ai/ogx-client-python` repo:
- **release branches** → `git ls-remote`/`pip install
git+…/ogx-client-python@<branch>`
- **`client-version: latest`** → `…@main`
Now that the client SDK is generated in-repo from `client-sdks/openapi`
(and `pypi.yml` already publishes `ogx-client` this way via `type:
openapi-sdk`), the external repo is gone. On release branches this made
**every build job fail** in the *Install dependencies* step:
```
##[error]Branch release-1.2.x not found in ogx-client-python repository
```
## Change
For the release-branch and `latest` paths, generate the client from the
current checkout instead of cloning:
- Set up Java 11 + Node 20 + `@openapitools/openapi-generator-cli`
(SHA-pinned actions), then run `make sdk OPEN=0` in
`client-sdks/openapi` — the same toolchain `pypi.yml` already uses to
build the published client.
- Return the generated `client-sdks/openapi/sdks/python` path as
`install-source`; the two consumers (`setup-runner`, `pre-commit.yml`)
already `uv pip install --upgrade` it after `uv sync`, so they need no
change.
- `published` (PyPI via `uv sync`) and `sdk_install_url` paths are
unchanged. TypeScript continues to use its external repo.
The generation steps only run when generation is needed (guarded on a
`generate` output), so `published` runs pay no extra cost.
## Test plan
- `make sdk OPEN=0` verified locally to drive the generation pipeline
(spec merge → hierarchy → generate). Full generation uses the pinned
generator `7.19.0` via npm, matching CI.
- pre-commit run on the changed files passes, including the
SHA-pinned-actions check.
- CI on this PR exercises the `latest` path end-to-end.
Fixes the build-job failures seen on the `release-1.2.x` backport
(#6293); intended to be backported to `release-1.2.x` after
merge.
🤖 Generated with [Claude Code](https://claude.com/claude-code)<hr>This
is an automatic backport of pull request #6297 done by
[Mergify](https://mergify.com).
Signed-off-by: Charlie Doern <cdoern@redhat.com>
Co-authored-by: Charlie Doern <cdoern@redhat.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 0ab9550 commit bf20ab1
2 files changed
Lines changed: 48 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 60 | + | |
| 61 | + | |
66 | 62 | | |
67 | | - | |
| 63 | + | |
68 | 64 | | |
69 | | - | |
| 65 | + | |
| 66 | + | |
70 | 67 | | |
71 | | - | |
| 68 | + | |
72 | 69 | | |
73 | 70 | | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
78 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments