Skip to content

Ignore provided-scope (Spark) dependencies in Dependabot (#1289)#1351

Open
Chandanydv1234 wants to merge 2 commits into
zinggAI:mainfrom
Chandanydv1234:fix/1289-ignore-provided-scope-dependabot
Open

Ignore provided-scope (Spark) dependencies in Dependabot (#1289)#1351
Chandanydv1234 wants to merge 2 commits into
zinggAI:mainfrom
Chandanydv1234:fix/1289-ignore-provided-scope-dependabot

Conversation

@Chandanydv1234

@Chandanydv1234 Chandanydv1234 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Fixes #1289.

Zingg runs on top of a Spark cluster, so Spark, Scala, and the Jackson libraries Spark ships are declared provided in the poms — we compile against them but don't package them into the Zingg jar. The runtime (Databricks/EMR/etc.) supplies and patches them, and we can't control which versions run, so Dependabot alerts on these are just noise. Until now we'd been silencing them one at a time with manual pom edits.

This scopes .github/dependabot.yml to Maven — the old * value was actually invalid, so Dependabot had been rejecting the whole file — and ignores the provided-scope groups: org.apache.spark:*, org.scala-lang:*, jackson-core, and jackson-databind. jackson-annotations is deliberately left in: it's compile scope and actually shipped, so its alerts are real.

Tested on a fork — the config went from rejected to valid, and Dependabot now runs Maven jobs with the new settings applied.

One caveat: this covers the directly-declared provided deps. Transitive libraries pulled in through Spark (netty, lz4, guava, …) surface under their own names, so they stay covered by the pom <exclusions> rather than this ignore list.

Spark, Scala, and Spark's Jackson libs are declared `provided` in the
poms — compiled against but not packaged into the Zingg jar. The Spark
runtime (Databricks/EMR/etc.) supplies and patches them, so Dependabot
PRs/alerts on these are noise. Ignore them; keep jackson-annotations
(compile scope, shipped) since its alerts are real.
@Chandanydv1234
Chandanydv1234 force-pushed the fix/1289-ignore-provided-scope-dependabot branch from f491c42 to 14b10c8 Compare July 24, 2026 11:11
Removed unnecessary comments and clarified configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dependabot alerts

2 participants