Skip to content

Change pre-commit propety(v1) - #53636

Merged
potiuk merged 1 commit into
apache:mainfrom
kyungjunleeme:fix/ci_static_check_align
Jul 24, 2025
Merged

Change pre-commit propety(v1)#53636
potiuk merged 1 commit into
apache:mainfrom
kyungjunleeme:fix/ci_static_check_align

Conversation

@kyungjunleeme

@kyungjunleemekyungjunleeme commented Jul 22, 2025

Copy link
Copy Markdown
Contributor
  • pre-commit hook only include v1.yaml

it solve ci error in github.
related #53597

It cause error. refer to below image.

image

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@potiuk

Copy link
Copy Markdown
Member

What problem does it solve really ?

@kyungjunleeme

Copy link
Copy Markdown
ContributorAuthor

I realized that while I updated the API, I missed the corresponding frontend changes. Unfortunately, I wasn't able to reproduce the issue on my side, but I should have been more careful before submitting the PR. I sincerely apologize for the oversight. I’ll make the necessary adjustments and prepare an updated version for review soon. I also want to acknowledge that I didn’t fully consider how valuable your time as a reviewer is—I'm truly sorry for that.

@kyungjunleeme
kyungjunleeme marked this pull request as draft July 23, 2025 10:38
@potiuk

Copy link
Copy Markdown
Member

I realized that while I updated the API, I missed the corresponding frontend changes. Unfortunately, I wasn't able to reproduce the issue on my side, but I should have been more careful before submitting the PR. I sincerely apologize for the oversight. I’ll make the necessary adjustments and prepare an updated version for review soon. I also want to acknowledge that I didn’t fully consider how valuable your time as a reviewer is—I'm truly sorry for that.

No worries - I was just wondering what's wrong there :)

@kyungjunleeme

kyungjunleeme commented Jul 24, 2025

Copy link
Copy Markdown
ContributorAuthor

What problem does it solve really ?

The current files pattern only matches:

^airflow-core/src/airflow/api_fastapi/auth/managers/simple/openapi/v1.*\.yaml$

so it doesn't catch changes like v2-simple-auth-manager-generated.yaml.
I'm planning to update the regex to:

^airflow-core/src/airflow/api_fastapi/auth/managers/simple/openapi/.*\.yaml$

to ensure all OpenAPI changes under the simple/openapi/ directory are properly detected by pre-commit.

There is an issue with the pre-commit scope, which is causing the following failure:

https://github.com/apache/airflow/actions/runs/16489362751/job/46620971120

@kyungjunleeme
kyungjunleemeforce-pushed the fix/ci_static_check_align branch from b5890a3 to 69a1dafCompareJuly 24, 2025 07:16
@kyungjunleeme
kyungjunleeme marked this pull request as ready for review July 24, 2025 07:17
@kyungjunleeme
kyungjunleemeforce-pushed the fix/ci_static_check_align branch from 69a1daf to 7712f5cCompareJuly 24, 2025 07:17
@kyungjunleemekyungjunleeme changed the title Align Ci static CheckChange pre-commit propety(v1)Jul 24, 2025
@kyungjunleeme
kyungjunleemeforce-pushed the fix/ci_static_check_align branch from 7712f5c to 5774ab6CompareJuly 24, 2025 10:26
@potiuk
potiuk merged commit 9d9924e into apache:mainJul 24, 2025
56 checks passed
@potiuk

Copy link
Copy Markdown
Member

Cool

@potiuk

Copy link
Copy Markdown
Member

Now it makes sense :)

github-actionsBot pushed a commit that referenced this pull request Jul 24, 2025
(cherry picked from commit 9d9924e)
Co-authored-by: Kyungjun Lee <kyungjunlee.me@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-0-test

StatusBranchResult
v3-0-testPR Link

potiuk pushed a commit that referenced this pull request Jul 24, 2025
(cherry picked from commit 9d9924e)
Co-authored-by: Kyungjun Lee <kyungjunlee.me@gmail.com>
shahar1 added a commit to shahar1/airflow that referenced this pull request Jul 29, 2026
apache#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (apache#51725), a
month after the spec was renamed v1 to v2 (apache#50705), so it has never matched
a file - apache#53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
pierrejeambrun pushed a commit that referenced this pull request Jul 29, 2026
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
potiuk pushed a commit that referenced this pull request Jul 30, 2026
…nges (#70643)
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
(cherry picked from commit b43a87e)
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
…nges (#70643)
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
(cherry picked from commit b43a87e)
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
potiuk pushed a commit that referenced this pull request Aug 7, 2026
…nges (#70643)
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
(cherry picked from commit b43a87e)
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
vatsrahul1001 pushed a commit that referenced this pull request Aug 13, 2026
…nges (#70643)
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
(cherry picked from commit b43a87e)
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
dabla pushed a commit to dabla/airflow that referenced this pull request Aug 14, 2026
…#70643)
apache#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (apache#51725), a
month after the spec was renamed v1 to v2 (apache#50705), so it has never matched
a file - apache#53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
potiuk pushed a commit that referenced this pull request Aug 17, 2026
…nges (#70643)
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
(cherry picked from commit b43a87e)
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
potiuk pushed a commit that referenced this pull request Aug 17, 2026
…nges (#70643) (#70672)
#68919 changed _private_ui.yaml without regenerating the TypeScript client
and CI stayed green: selective checks decide whether to skip the
ts-compile-lint-* hooks from file groups that do not cover the UI codegen
input specs, while the hooks themselves trigger on any yaml under the
openapi directories. The stale client then masked a type error that broke
main for every PR running full static checks. The same gap applied to
v2-simple-auth-manager-generated.yaml, so a spec-only change also skipped
the simple auth manager UI hook. Track the codegen-input specs in their own
file group so spec-only changes run the UI hooks without forcing the full
test matrix, and drop the main UI hook trigger for the simple auth manager
spec: that pattern was copied in when the hook was created (#51725), a
month after the spec was renamed v1 to v2 (#50705), so it has never matched
a file - #53636 fixed the sibling hook's copy but missed this one. The main
UI codegen does not consume that spec either.
(cherry picked from commit b43a87e)
Co-authored-by: Shahar Epstein <60007259+shahar1@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@kyungjunleeme@potiuk