Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support to set piece length for preheat #3848

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gaius-qi
Copy link
Member

Description

This pull request introduces the PieceLength parameter to various job management and scheduling functions, allowing for more granular control over piece lengths during file download tasks. This change affects multiple files and functions across the codebase, ensuring that the PieceLength parameter is properly handled and propagated through the system.

Key changes include:

Introduction of PieceLength Parameter:

Modification of TaskID Generation:

Job Management Updates:

Scheduler and Resource Updates:

Test and Utility Updates:

Related Issue

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.

@gaius-qi gaius-qi added the enhancement New feature or request label Feb 24, 2025
@gaius-qi gaius-qi added this to the v2.3.0 milestone Feb 24, 2025
@gaius-qi gaius-qi self-assigned this Feb 24, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner February 24, 2025 10:09
@gaius-qi gaius-qi force-pushed the feature/piece-length branch from 28cbc51 to dde3f38 Compare February 24, 2025 11:31
Copy link

codecov bot commented Feb 24, 2025

Codecov Report

Attention: Patch coverage is 57.14286% with 9 lines in your changes missing coverage. Please review.

Project coverage is 35.11%. Comparing base (6f58ed0) to head (cb73ffb).

Files with missing lines Patch % Lines
scheduler/job/job.go 0.00% 5 Missing ⚠️
manager/job/task.go 0.00% 2 Missing ⚠️
manager/job/preheat.go 50.00% 1 Missing ⚠️
scheduler/resource/standard/task.go 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3848      +/-   ##
==========================================
- Coverage   35.17%   35.11%   -0.06%     
==========================================
  Files         337      337              
  Lines       39282    39292      +10     
==========================================
- Hits        13819    13799      -20     
- Misses      24563    24589      +26     
- Partials      900      904       +4     
Flag Coverage Δ
unittests 35.11% <57.14%> (-0.06%) ⬇️

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

Files with missing lines Coverage Δ
pkg/idgen/task_id.go 80.85% <100.00%> (+1.78%) ⬆️
scheduler/service/service_v1.go 85.33% <100.00%> (ø)
scheduler/service/service_v2.go 46.54% <100.00%> (ø)
manager/job/preheat.go 46.09% <50.00%> (+0.02%) ⬆️
scheduler/resource/standard/task.go 77.27% <50.00%> (-1.57%) ⬇️
manager/job/task.go 69.69% <0.00%> (ø)
scheduler/job/job.go 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes

@gaius-qi gaius-qi force-pushed the feature/piece-length branch from dde3f38 to cb73ffb Compare February 24, 2025 11:46
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.

1 participant