Repository navigation
ci: submit sbt dependency graph for Dependabot alerts - #6163
Merged
Merged
Conversation
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]>
Contributor
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
|
| 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
approved these changes
Jul 5, 2026
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]>
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.
What changes were proposed in this PR?
Add
.github/workflows/dependency-graph.yml: on every push tomain, 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:
sbt/setup-sbtandcoursier/cache-actionreuse 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-ignoredrops test/provided/optional/tooling scopes so alerts reflect what ships.if: github.repository == 'apache/texera'and only triggers on push tomain, 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/texeramain(see guard above), so it cannot be exercised by PR CI. Verified locally by running the underlying sbt plugin against this build:completes with
[success]and writes a snapshot containing 577 resolved packages across all modules, includingcom.fasterxml.jackson.core:jackson-databind:2.18.8andorg.apache.pekko:pekko-actor_2.13:1.6.0. (It also surfaces a stale transitivejackson-databind:2.12.3in 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)