Skip to content

ci: submit sbt dependency graph for Dependabot alerts - #6163

Merged
bobbai00 merged 1 commit into
apache:mainfrom
Yicong-Huang:ci/sbt-dependency-graph
Jul 5, 2026
Merged

bobbai00 merged 1 commit into
apache:mainfrom
Yicong-Huang:ci/sbt-dependency-graph

Conversation

@Yicong-Huang

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Add .github/workflows/dependency-graph.yml: on every push to main, resolve the sbt build and submit the full dependency graph (all modules, transitive dependencies included) to GitHub via the Dependency Submission API, using scalacenter/sbt-dependency-submission.

GitHub cannot parse build.sbt, so today Dependabot alerts cover only the npm/pip manifests and Scala dependencies are invisible — the jackson-databind CVE batch fixed in #6152 never appeared in the security tab and was caught by hand. With the graph submitted, Scala dependencies (Jackson, Pekko, …) get Dependabot alerts like npm/pip. Alerts only — no automatic PRs (Dependabot security updates do not support sbt).

Notes for review:

  • The third-party actions are pinned to full commit SHAs per the ASF GitHub Actions policy; sbt/setup-sbt and coursier/cache-action reuse the exact pins already used elsewhere in this repo. The same submission action (same SHA) is used by apache/pekko and 7 other ASF repos.
  • configs-ignore drops test/provided/optional/tooling scopes so alerts reflect what ships.
  • The job is guarded with if: github.repository == 'apache/texera' and only triggers on push to main, so it never runs on forks or PRs.

Any related issues, documentation, discussions?

Closes #6162

How was this PR tested?

The workflow itself only runs post-merge on apache/texera main (see guard above), so it cannot be exercised by PR CI. Verified locally by running the underlying sbt plugin against this build:

sbt --addPluginSbtFile=<plugin.sbt> \
  'githubGenerateSnapshot {"ignoredConfigs":["provided","optional","test","compile-internal","runtime-internal","scala-tool","scala-doc-tool"]}'

completes with [success] and writes a snapshot containing 577 resolved packages across all modules, including com.fasterxml.jackson.core:jackson-databind:2.18.8 and org.apache.pekko:pekko-actor_2.13:1.6.0. (It also surfaces a stale transitive jackson-databind:2.12.3 in the tree — exactly the kind of finding this graph will make visible as an alert.)

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5)

GitHub cannot parse build.sbt, so Scala dependencies never reach the
dependency graph and get no Dependabot alerts (the jackson-databind
CVE batch fixed in apache#6152 never surfaced in the security tab). Run
scalacenter/sbt-dependency-submission on pushes to main to submit the
resolved graph of all sbt modules via the Dependency Submission API.

Closes apache#6162

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions github-actions Bot added the ci changes related to CI label Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

@codecov-commenter

codecov-commenter commented Jul 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.89%. Comparing base (6fdfe19) to head (f0294de).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6163      +/-   ##
============================================
- Coverage     59.94%   59.89%   -0.05%     
+ Complexity     3311     3306       -5     
============================================
  Files          1131     1131              
  Lines         43805    43805              
  Branches       4745     4745              
============================================
- Hits          26258    26238      -20     
- Misses        16125    16142      +17     
- Partials       1422     1425       +3     
Flag Coverage Δ
access-control-service 70.00% <ø> (ø)
agent-service 44.59% <ø> (ø)
amber 65.11% <ø> (-0.04%) ⬇️
computing-unit-managing-service 0.00% <ø> (ø)
config-service 52.30% <ø> (ø)
file-service 62.81% <ø> (ø)
frontend 51.42% <ø> (-0.07%) ⬇️
notebook-migration-service 78.57% <ø> (ø)
pyamber 91.18% <ø> (ø)
workflow-compiling-service 55.14% <ø> (ø)

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 0 better · 🔴 4 worse · ⚪ 11 noise (<±5%) · 0 without baseline

Compared against main 6fdfe19 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 382 0.233 26,091/33,875/33,875 us 🔴 -7.2% / 🔴 +123.7%
🔴 bs=100 sw=10 sl=64 816 0.498 121,273/145,836/145,836 us 🔴 +8.6% / 🔴 +35.1%
⚪ bs=1000 sw=10 sl=64 927 0.566 1,081,226/1,154,928/1,154,928 us ⚪ within ±5% / 🔴 +12.3%
Baseline details

Latest main 6fdfe19 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 382 tuples/sec 411 tuples/sec 776.36 tuples/sec -7.1% -50.8%
bs=10 sw=10 sl=64 MB/s 0.233 MB/s 0.251 MB/s 0.474 MB/s -7.2% -50.8%
bs=10 sw=10 sl=64 p50 26,091 us 25,493 us 12,636 us +2.3% +106.5%
bs=10 sw=10 sl=64 p95 33,875 us 32,319 us 15,143 us +4.8% +123.7%
bs=10 sw=10 sl=64 p99 33,875 us 32,319 us 18,954 us +4.8% +78.7%
bs=100 sw=10 sl=64 throughput 816 tuples/sec 843 tuples/sec 985.33 tuples/sec -3.2% -17.2%
bs=100 sw=10 sl=64 MB/s 0.498 MB/s 0.514 MB/s 0.601 MB/s -3.1% -17.2%
bs=100 sw=10 sl=64 p50 121,273 us 116,854 us 101,671 us +3.8% +19.3%
bs=100 sw=10 sl=64 p95 145,836 us 134,239 us 107,939 us +8.6% +35.1%
bs=100 sw=10 sl=64 p99 145,836 us 134,239 us 113,798 us +8.6% +28.2%
bs=1000 sw=10 sl=64 throughput 927 tuples/sec 928 tuples/sec 1,016 tuples/sec -0.1% -8.8%
bs=1000 sw=10 sl=64 MB/s 0.566 MB/s 0.566 MB/s 0.62 MB/s 0.0% -8.8%
bs=1000 sw=10 sl=64 p50 1,081,226 us 1,072,102 us 989,693 us +0.9% +9.2%
bs=1000 sw=10 sl=64 p95 1,154,928 us 1,120,228 us 1,028,327 us +3.1% +12.3%
bs=1000 sw=10 sl=64 p99 1,154,928 us 1,120,228 us 1,059,969 us +3.1% +9.0%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,523.51,200,128000,382,0.233,26090.99,33875.19,33875.19
1,100,10,64,20,2451.31,2000,1280000,816,0.498,121273.25,145836.25,145836.25
2,1000,10,64,20,21583.95,20000,12800000,927,0.566,1081226.21,1154927.87,1154927.87

@bobbai00
bobbai00 added this pull request to the merge queue Jul 5, 2026
Merged via the queue into apache:main with commit 42ea49f Jul 5, 2026
32 checks passed
sshiv012 pushed a commit to sshiv012/texera that referenced this pull request Jul 6, 2026
### What changes were proposed in this PR?

Add `.github/dependabot.yml` to enable weekly Dependabot **version
updates** — the complementary half of apache#6163 (which feeds security
*alerts*): alerts flag vulnerable dependencies, version updates keep
dependencies current so alerts rarely fire.

| Ecosystem | Directory | Notes |
| --- | --- | --- |
| `sbt` | `/` (root build, all modules) | New Dependabot ecosystem
(beta, 2026-05); first use in the ASF org |
| `npm` | `/frontend`, `/pyright-language-service` | Angular majors
ignored — they need a guided `ng update` migration with framework/CLI
lines moving together (see apache#6155) |
| `bun` | `/agent-service` | agent-service is a Bun project (`bun.lock`)
|
| `npm` | `/bin/y-websocket-server` | Single-dependency utility, no
lockfile |
| `pip` | `/amber` | Covers `pyproject.toml` and all
`*requirements*.txt` in the directory (`requirements`,
`operator-requirements`, `dev-requirements`) — same detection the
dependency graph already uses for alerts |
| `github-actions` | `/` | Commit prefix `ci` per repo convention |

Noise control: **weekly** schedule, **patch bumps grouped into a single
PR per ecosystem** (bug-fix only, low risk); **minor and major bumps
come as individual PRs** — a failed group PR cannot be bisected by the
bot, so anything that can carry behavior changes passes or fails CI on
its own. ≤5 open PRs per ecosystem bounds the volume. (github-actions
stays fully grouped: SHA/tag bumps, ci-only blast radius.)

Commit/PR-title prefixes are split by dependency semantics (and
AGENTS.md is updated to record the convention): runtime/production bumps
get `fix(deps, <module>)` — they ship to users — while dev/toolchain
bumps get `chore(deps, <module>)` via `prefix-development` (npm
devDependencies, pip `dev-requirements.txt`, bun devDependencies), with
the module as second scope per the repo convention (`pyamber`,
`frontend`, `agent-service`, …; the cross-module sbt entry stays plain
`fix(deps)`); GitHub Actions bumps use `ci`. All types pass the PR title
check. 267 ASF repos already use `dependabot.yml`.

Notes for review:

- Local schema validation passes except the `sbt` enum value —
schemastore still lags the 2026-05 beta; GitHub's changelog ([Dependabot
version updates now support the sbt
ecosystem](https://github.blog/changelog/2026-05-26-dependabot-version-updates-now-support-the-sbt-ecosystem/))
is authoritative for the key. After merge, any config error would
surface under Insights → Dependency graph → Dependabot.
- The sbt ecosystem is beta: it may not follow every `build.sbt` pattern
(e.g. version `val`s), so missed sbt updates are expected at first, not
misconfiguration.
- `.asf.yaml`'s `dependabot_updates` (automatic security-*fix* PRs) is
deliberately left `false` to avoid a burst of bot PRs for the existing
alert backlog while apache#6152/apache#6155 are in flight; it can be flipped
separately later.

### Any related issues, documentation, discussions?

Closes apache#6164. Related: apache#6162 / apache#6163 (sbt dependency graph for alerts).

### How was this PR tested?

Config-only change; Dependabot runs server-side after merge, so it
cannot be exercised by PR CI. Validated locally:

- `yaml.safe_load` parses the file.
- `check-jsonschema --builtin-schema vendor.dependabot` passes for all
entries except the not-yet-in-schema `sbt` ecosystem value (see note
above).

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Fable 5)

---------

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci changes related to CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Submit sbt dependency graph to GitHub so Dependabot alerts cover Scala dependencies

3 participants