-
Notifications
You must be signed in to change notification settings - Fork 161
Fix double-slash URL path bug across 74 GetRequest methods #804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
1232ee7
63ca5ee
b095e1b
b757984
b2946f9
12564ae
4d41120
03e0d30
2c8ba03
cda2d77
6270bd3
05e054c
45043cb
1c7b648
9044eb5
fcb774f
8a66080
3d858f4
73a2095
69aab5f
7de34c6
a215d61
178811d
c2a9cb4
eeae4ad
45ddc8c
c16b983
04c9621
e6c0dea
da4879c
043b013
49826e8
bc70ad2
57d7c32
eb6addd
7408981
20c08eb
5774331
3b8c794
65e535d
2a78f1f
fd2a42f
760badd
f45b1a7
3abc1b7
df28738
de9e514
ee124af
88630f5
3764d04
243d9db
fee1096
199bb59
736e9e3
5462692
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Check generated code | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| check-gen: | ||
| name: Generated code up to date | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to keep |
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/setup-go@v6 | ||
| with: { go-version-file: 'go.mod' } | ||
| - name: Fetch OpenAPI spec | ||
| run: make fetch-opensearch-spec | ||
| - name: Regenerate code from spec | ||
| run: make -j gen | ||
| - name: Check for diff | ||
| run: | | ||
| if ! git diff --exit-code internal/path/builders_gen.go internal/path/builders_gen_test.go v5preview/opensearchapi/; then | ||
| echo "::warning::Generated code is out of date. Run 'make gen' and commit the result." | ||
| exit 1 | ||
| fi | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continue-on-error: truemakes this job advisory — it will never block a PR merge even when generated code is stale. Remove this line so the check enforces.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentionally advisory while the generator is still maturing. The purpose is to notify maintainers about spec/generated-code drift without blocking PRs during active codegen iteration. Once the template stabilizes (likely after this review cycle addresses the bugs you've identified), we can remove the flag and make it enforcing.