Skip to content

feat(scheduler): handle HitLocalCache in peer register & upgrade v2.2.32 - #4881

Merged
gaius-qi merged 4 commits into
mainfrom
feature/local
Jul 21, 2026
Merged

feat(scheduler): handle HitLocalCache in peer register & upgrade v2.2.32#4881
gaius-qi merged 4 commits into
mainfrom
feature/local

Conversation

@gaius-qi

@gaius-qi gaius-qi commented Jul 20, 2026

Copy link
Copy Markdown
Member

Description

  • Add early-return path for HitLocalCache flag in peer register
  • Transition task/peer FSM states and send HitLocalCacheResponse directly without scheduling or triggering seed peer
  • Bump d7y.io/api/v2 dependency from v2.2.30 to v2.2.32

Related Issue

#4880

Motivation and Context

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation Update (if none of the other choices apply)

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

- Add early-return path for `HitLocalCache` flag in peer register
- Transition task/peer FSM states and send `HitLocalCacheResponse`
  directly without scheduling or triggering seed peer
- Bump `d7y.io/api/v2` dependency from v2.2.30 to v2.2.32

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi gaius-qi added this to the v2.6.0 milestone Jul 20, 2026
@gaius-qi gaius-qi self-assigned this Jul 20, 2026
@gaius-qi
gaius-qi requested review from a team as code owners July 20, 2026 15:44
@gaius-qi gaius-qi added the enhancement New feature or request label Jul 20, 2026
gaius-qi added 2 commits July 20, 2026 23:45
Simplifies the comment for the local cache hit case by removing
details about HitLocalCacheResponse and peer reporting behavior.

Signed-off-by: Gaius <gaius.qi@gmail.com>
- Replace `HitLocalCache`/`HitLocalCacheResponse` with
  `MetadataOnly`/`MetadataOnlyResponse` in peer registration handling
- Update log message to reflect new response type
- Bump `google.golang.org/grpc` from v1.82.0 to v1.82.1

Signed-off-by: Gaius <gaius.qi@gmail.com>
@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.09%. Comparing base (cba0bbb) to head (f7e3f80).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
scheduler/service/service_v2.go 0.00% 27 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4881      +/-   ##
==========================================
- Coverage   28.12%   28.09%   -0.04%     
==========================================
  Files         232      232              
  Lines       23158    23186      +28     
==========================================
  Hits         6513     6513              
- Misses      16197    16224      +27     
- Partials      448      449       +1     
Flag Coverage Δ
unittests 28.09% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
scheduler/service/service_v2.go 39.75% <0.00%> (-0.34%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

chlins
chlins previously approved these changes Jul 21, 2026

@chlins chlins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

hhhhsdxxxx
hhhhsdxxxx previously approved these changes Jul 21, 2026
BraveY
BraveY previously approved these changes Jul 21, 2026

@BraveY BraveY 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.

LGTM

- Bump Node.js base image from 20 to 24 (Alpine) in Dockerfile and
  build script
- Add `yarn.lock` copy step to improve layer caching and ensure
  reproducible installs
- Update manager/console submodule to latest commit

Signed-off-by: Gaius <gaius.qi@gmail.com>
@gaius-qi
gaius-qi dismissed stale reviews from BraveY, hhhhsdxxxx, and chlins via f7e3f80 July 21, 2026 03:08
@gaius-qi
gaius-qi enabled auto-merge (squash) July 21, 2026 03:09

@chlins chlins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@gaius-qi
gaius-qi merged commit 530a1d2 into main Jul 21, 2026
17 checks passed
@gaius-qi
gaius-qi deleted the feature/local branch July 21, 2026 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants