Repository navigation
Use prek hook script to refresh Java SDK metadata - #76714
Merged
Merged
Conversation
The "Java SDK refresh verification metadata" workflow used a plain Gradle command, which only adds entries to the file, so the versions a Dependabot bump replaced stayed in it, failing static checks. The workflow now runs the prek hook's script instead. It also runs the Dokka, source tarball, and publishToMavenLocal tasks the hook covers, so the refreshed file is what the static check expects. If the script fails, it puts the committed file back and the job fails before the commit step.
uranusjr
requested review from
amoghrajesh,
ashb,
bugraoz93,
gopidesupavan,
jason810496,
jscheffl and
potiuk
as code owners
November 8, 2026 23:53
shahar1
approved these changes
Nov 8, 2026
Contributor
|
I'll be happy if you could take a look at #76666 (runs automatically on Dependabot PRs) |
Member
Author
|
Merging this first so dependabot prs can be merged (more easily). |
Contributor
Backport successfully created: v3-4-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
1 task done
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 27, 2026
The "Java SDK refresh verification metadata" workflow used a plain Gradle command, which only adds entries to the file, so the versions a Dependabot bump replaced stayed in it, failing static checks. The workflow now runs the prek hook's script instead. It also runs the Dokka, source tarball, and publishToMavenLocal tasks the hook covers, so the refreshed file is what the static check expects. If the script fails, it puts the committed file back and the job fails before the commit step. (cherry picked from commit e42b5a9) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 27, 2026
The "Java SDK refresh verification metadata" workflow used a plain Gradle command, which only adds entries to the file, so the versions a Dependabot bump replaced stayed in it, failing static checks. The workflow now runs the prek hook's script instead. It also runs the Dokka, source tarball, and publishToMavenLocal tasks the hook covers, so the refreshed file is what the static check expects. If the script fails, it puts the committed file back and the job fails before the commit step. (cherry picked from commit e42b5a9) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
vatsrahul1001
pushed a commit
that referenced
this pull request
Nov 27, 2026
#76923) The "Java SDK refresh verification metadata" workflow used a plain Gradle command, which only adds entries to the file, so the versions a Dependabot bump replaced stayed in it, failing static checks. The workflow now runs the prek hook's script instead. It also runs the Dokka, source tarball, and publishToMavenLocal tasks the hook covers, so the refreshed file is what the static check expects. If the script fails, it puts the committed file back and the job fails before the commit step. (cherry picked from commit e42b5a9) Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "Java SDK refresh verification metadata" workflow used a plain Gradle command, which only adds entries to the file, so the versions a Dependabot bump replaced stayed in it, failing static checks.
The workflow now runs the prek hook's script instead. It also runs the Dokka, source tarball, and publishToMavenLocal tasks the hook covers, so the refreshed file is what the static check expects. If the script fails, it puts the committed file back and the job fails before the commit step.
Example where the existing workflow is not working:
#76616
https://github.com/apache/airflow/actions/runs/42323376094