Skip to content

Use prek hook script to refresh Java SDK metadata - #76714

Merged
uranusjr merged 1 commit into
apache:mainfrom
astronomer:java-sdk-dependency-action-fix
Nov 11, 2026
Merged

uranusjr merged 1 commit into
apache:mainfrom
astronomer:java-sdk-dependency-action-fix

Conversation

@uranusjr

@uranusjr uranusjr commented Nov 8, 2026

Copy link
Copy Markdown
Member

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

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.
@shahar1

shahar1 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

I'll be happy if you could take a look at #76666 (runs automatically on Dependabot PRs)

@uranusjr

Copy link
Copy Markdown
Member Author

Merging this first so dependabot prs can be merged (more easily).

@uranusjr
uranusjr merged commit e42b5a9 into apache:main Nov 11, 2026
154 checks passed
@uranusjr
uranusjr deleted the java-sdk-dependency-action-fix branch November 11, 2026 15:37
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-4-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-4-test PR Link

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants