Skip to content

Conversation

jinronga
Copy link
Contributor

@jinronga jinronga commented Aug 2, 2025

Description

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.

Copy link

codecov bot commented Aug 2, 2025

Codecov Report

❌ Patch coverage is 0% with 55 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.90%. Comparing base (5f50fe7) to head (e80601a).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
internal/job/job.go 0.00% 55 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4245      +/-   ##
==========================================
+ Coverage   32.52%   32.90%   +0.38%     
==========================================
  Files         350      352       +2     
  Lines       41382    41781     +399     
==========================================
+ Hits        13459    13748     +289     
- Misses      27034    27140     +106     
- Partials      889      893       +4     
Flag Coverage Δ
unittests 32.90% <0.00%> (+0.38%) ⬆️

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

Files with missing lines Coverage Δ
internal/job/job.go 13.75% <0.00%> (ø)

... and 22 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jinronga jinronga requested a review from chlins August 4, 2025 11:02
@gaius-qi gaius-qi added the enhancement New feature or request label Aug 4, 2025
@jinronga jinronga requested a review from gaius-qi August 6, 2025 10:36
Signed-off-by: jinronga <1460595002@qq.com>
Signed-off-by: “jinrong” <1460595002@qq.com>
- Use `errgroup` instead of `sync.WaitGroup` and `sync.Once`
- Optimize error handling logic to directly return the first error
- Adjust variable scope to avoid potential loop variable capture issues
- Code style adjustments to improve readability

Signed-off-by: “jinrong” <1460595002@qq.com>
- Add GroupJobStateConcurrencyLimit constant to limit the number of concurrent goroutines
- Implement the concurrency limit in GetGroupJobState function using errgroup
- Refactor error handling in task result unmarshalling for better readability

Signed-off-by: “jinrong” <1460595002@qq.com>
Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@LunaWhispers LunaWhispers left a comment

Choose a reason for hiding this comment

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

lgtm

@LunaWhispers LunaWhispers enabled auto-merge (squash) August 13, 2025 02:50
@LunaWhispers LunaWhispers merged commit 2fc87da into dragonflyoss:main Aug 13, 2025
16 checks passed
@jinronga jinronga deleted the feat/task branch August 19, 2025 14:33
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.

6 participants