Skip to content

chore: refresh dependency manifest for Log4j 2.25.5 - #763

Open
skrcode wants to merge 1 commit into
apache:dependabot/maven/org.apache.logging.log4j-log4j-api-2.25.5from
skrcode:jaipilot/log4j-2.25.5-dependency-manifest
Open

chore: refresh dependency manifest for Log4j 2.25.5#763
skrcode wants to merge 1 commit into
apache:dependabot/maven/org.apache.logging.log4j-log4j-api-2.25.5from
skrcode:jaipilot/log4j-2.25.5-dependency-manifest

Conversation

@skrcode

@skrcode skrcode commented Aug 30, 2026

Copy link
Copy Markdown

Purpose of the PR

Completes #757 by refreshing the checked-in dependency allowlist after its Log4j 2.25.5 upgrade. #757 is the older canonical Dependabot proposal; #762 carries the same dependency change in a narrower path.

Main Changes

  • replace the three Log4j 2.18.0 artifacts with 2.25.5 in the generated allowlist
  • add the slf4j-api 1.7.36 transitive dependency introduced by the upgraded graph
  • leave build and runtime dependency declarations unchanged beyond the source upgrade

Verifying these changes

  • Already covered by the repository dependency-manifest gate.
  • JDK 17 / Maven 3.9.16: mvn -ntp -pl hugegraph-hubble/hubble-be -am install -DskipTests=true — all five reactor modules passed, including Checkstyle and EditorConfig (94s)
  • bash hugegraph-dist/scripts/dependency/regenerate_known_dependencies.sh current-dependencies.txt — passed twice
  • both generated manifests were byte-identical to each other and to known-dependencies.txt (SHA-256 68bdf81caefe0d4c9fe49bfbbaa01b790fd002eb84fd35654bd04c4100ab57d2)
  • bash hugegraph-dist/scripts/dependency/check_dependencies.sh current-dependencies.txtAll third dependencies is known!
  • git diff --check — passed

Does this PR potentially affect the following parts?

  • Nope
  • Dependencies (add/update license info)
  • Modify configurations
  • The public API
  • Other affects

Documentation Status

  • Doc - TODO
  • Doc - Done
  • Doc - No Need

AI assistance

Built and verified with JAIPilot.

  • Skills: jaipilot-maintainer-intent, jaipilot-fast-execution, jaipilot-remote-java, and jaipilot-review-diff
  • Model: gpt-5.6-sol
  • Reasoning: xhigh
  • Service mode: fast; final verification ran locally because JAIPilot Remote was unavailable

@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. dependencies Pull requests that update a dependency file labels Aug 30, 2026
@codecov

codecov Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (dependabot/maven/hugegraph-spark-connector/org.apache.logging.log4j-log4j-api-2.25.5@305d727). Learn more about missing BASE report.

Additional details and impacted files
@@                                                   Coverage Diff                                                   @@
##             dependabot/maven/hugegraph-spark-connector/org.apache.logging.log4j-log4j-api-2.25.5     #763   +/-   ##
=======================================================================================================================
  Coverage                                                                                        ?   45.90%           
  Complexity                                                                                      ?     4374           
=======================================================================================================================
  Files                                                                                           ?      602           
  Lines                                                                                           ?    29342           
  Branches                                                                                        ?     3427           
=======================================================================================================================
  Hits                                                                                            ?    13470           
  Misses                                                                                          ?    14552           
  Partials                                                                                        ?     1320           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@skrcode
skrcode force-pushed the jaipilot/log4j-2.25.5-dependency-manifest branch from 22ee390 to 45b858d Compare August 31, 2026 04:06
@skrcode
skrcode changed the base branch from dependabot/maven/hugegraph-spark-connector/org.apache.logging.log4j-log4j-api-2.25.5 to dependabot/maven/org.apache.logging.log4j-log4j-api-2.25.5 August 31, 2026 04:07

@bitflicker64 bitflicker64 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking: no. Summary: the four manifest lines are exactly right, but the PR is based on the Dependabot branch instead of master, so the fix does not reach the branch where the gate is failing. Evidence: the check-dependency-license job on #757 (run 31735150807, job 94564869017) fails and prints precisely this PR's four-line diff; #762 fails the same job; mvn dependency:tree at 45b858d on JDK 11 resolves log4j-api, log4j-core and log4j-slf4j-impl to 2.25.5 in every module with no 2.18.0 left, and log4j-slf4j-impl 2.25.5 declares slf4j-api 1.7.36 in its POM.

log4j-api-2.18.0.jar
log4j-core-2.18.0.jar
log4j-slf4j-impl-2.18.0.jar
log4j-api-2.25.5.jar

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ This PR is based on dependabot/maven/org.apache.logging.log4j-log4j-api-2.25.5 (the head branch of #757) rather than master, so merging it lands the fix on a Dependabot branch and not where it is actually needed.

#757's own check-dependency-license job already fails (run 31735150807, job 94564869017), and the diff it prints is exactly the four lines this PR applies:

@@ -385,3 +385,3 @@
-log4j-api-2.18.0.jar
-log4j-core-2.18.0.jar
-log4j-slf4j-impl-2.18.0.jar
+log4j-api-2.25.5.jar
+log4j-core-2.25.5.jar
+log4j-slf4j-impl-2.25.5.jar
@@ -469,0 +470 @@
+slf4j-api-1.7.36.jar

#762 fails the same job. Both target master and change only the two poms, so merging either one alone leaves master with log4j2.version 2.25.5 and this manifest still listing the 2.18.0 jars.

Two further consequences of the base ref: GitHub closes a PR when its base branch is deleted, so this one closes the moment #757 is merged or closed, and a Dependabot rebase force-pushes that base branch, shifting the merge base under this PR.

Please retarget this PR to master. 45b858d already has bf72e64 in its ancestry, so the diff against master carries the two pom bumps together with this manifest refresh and turns that failing job green in one change.

slf4j-api-1.7.25.jar
slf4j-api-1.7.28.jar
slf4j-api-1.7.30.jar
slf4j-api-1.7.36.jar

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 hugegraph-dist/release-docs/LICENSE is copied verbatim into the release tarball (hugegraph-dist/pom.xml, package phase: cp -r -v $root_path/hugegraph-dist/release-docs/* ${final.name}/), and at this head it still records org.apache.logging.log4j:log4j-api:2.18.0 (line 284), log4j-core:2.18.0 (285) and log4j-slf4j-impl:2.18.0 (287), with no org.slf4j:slf4j-api:1.7.36 entry at all (its SLF4J block stops at 1.7.30, lines 593 to 595).

To be fair, that drift is pre-existing and wider than these four entries: 27 group:artifact:version entries in that LICENSE have no matching jar in known-dependencies.txt, including log4j-jul:2.11.2, lombok:1.18.8 (manifest has 1.18.32) and curator-client:2.13.0 (manifest has 4.2.0). No CI job checks the file, and the version bump itself is in the parent commit rather than in this diff.

Still worth refreshing the four log4j and slf4j entries alongside the manifest here, or opening a follow-up to regenerate the file as a whole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants