Skip to content

core/blockstm: remove old UpdateDeps DAG algorithm#2168

Merged
kamuikatsurgi merged 1 commit into
developfrom
kamui/blockstm-remove-old-dag-algo
Mar 27, 2026
Merged

core/blockstm: remove old UpdateDeps DAG algorithm#2168
kamuikatsurgi merged 1 commit into
developfrom
kamui/blockstm-remove-old-dag-algo

Conversation

@kamuikatsurgi

Copy link
Copy Markdown
Member

Description

The DepsBuilder algorithm introduced in #2094 replaced UpdateDeps/GetDep in the hot path. Removed the now-dead TxDep, depsHelper, UpdateDeps, and GetDep functions, replaced the profiling-path GetDep call in executor.go with DepsBuilder, and dropped the equivalence test and UpdateDeps benchmark.

Copilot AI review requested due to automatic review settings March 27, 2026 08:04

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI 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.

Pull request overview

Removes the legacy BlockSTM dependency-DAG construction path (UpdateDeps/GetDep) now that DepsBuilder is the active algorithm, and updates the profiling/metadata path to use DepsBuilder as well.

Changes:

  • Replace profiling-path GetDep(*pe.lastTxIO) usage with incremental DepsBuilder construction.
  • Delete the now-dead TxDep, depsHelper, UpdateDeps, and GetDep code.
  • Remove the old equivalence test and UpdateDeps benchmark, keeping DepsBuilder benchmark coverage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
core/blockstm/executor.go Switch profiling dependency-graph generation to DepsBuilder.
core/blockstm/dag.go Remove obsolete dependency-building types/functions tied to the old algorithm.
core/blockstm/dag_test.go Drop tests/benchmarks that depended on the removed old algorithm.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/blockstm/executor.go
@claude

claude Bot commented Mar 27, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@codecov

codecov Bot commented Mar 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.87%. Comparing base (d1cf761) to head (f17d2a7).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2168      +/-   ##
===========================================
- Coverage    51.90%   51.87%   -0.03%     
===========================================
  Files          884      884              
  Lines       155357   155324      -33     
===========================================
- Hits         80631    80579      -52     
- Misses       69518    69533      +15     
- Partials      5208     5212       +4     
Files with missing lines Coverage Δ
core/blockstm/dag.go 66.20% <ø> (-4.83%) ⬇️
core/blockstm/executor.go 87.46% <100.00%> (+0.09%) ⬆️

... and 15 files with indirect coverage changes

Files with missing lines Coverage Δ
core/blockstm/dag.go 66.20% <ø> (-4.83%) ⬇️
core/blockstm/executor.go 87.46% <100.00%> (+0.09%) ⬆️

... and 15 files with indirect coverage changes

🚀 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.

@kamuikatsurgi kamuikatsurgi merged commit 4d3fff5 into develop Mar 27, 2026
27 of 28 checks passed
@kamuikatsurgi kamuikatsurgi deleted the kamui/blockstm-remove-old-dag-algo branch March 27, 2026 09:13
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.

5 participants