Skip to content

Conversation

gaius-qi
Copy link
Member

Description

This pull request includes updates to dependencies and configuration constants to improve performance and compatibility. The most important changes involve upgrading the dragonflyoss/machinery dependency and adjusting Redis-related configuration defaults.

Dependency Updates:

  • go.mod: Upgraded github.com/dragonflyoss/machinery from v1.10.13 to v1.10.14 for compatibility and potential bug fixes.

Configuration Changes:

  • internal/job/constants.go: Adjusted Redis configuration defaults:
    • Increased DefaultRedisMaxIdle from 0 to 10 and reduced DefaultRedisMaxActive from 300 to 50 to optimize connection pooling.
    • Increased DefaultRedisNormalTasksPollPeriod from 2000ms to 2500ms for better task polling efficiency.

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 this to the v2.3.0 milestone May 19, 2025
@gaius-qi gaius-qi self-assigned this May 19, 2025
@gaius-qi gaius-qi requested a review from a team as a code owner May 19, 2025 10:31
@gaius-qi gaius-qi requested review from garenwen and akashhr May 19, 2025 10:31
@gaius-qi gaius-qi added the enhancement New feature or request label May 19, 2025
@gaius-qi gaius-qi requested a review from BruceAko May 19, 2025 10:31
chlins
chlins previously approved these changes May 19, 2025
Copy link
Member

@chlins chlins left a comment

Choose a reason for hiding this comment

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

lgtm

@chlins chlins enabled auto-merge (squash) May 19, 2025 10:32
Signed-off-by: Gaius <gaius.qi@gmail.com>
Copy link
Member

@chlins chlins 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
Member

@fcgxz2003 fcgxz2003 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

@Liam-Zhao Liam-Zhao 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

codecov bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 34.35%. Comparing base (75083be) to head (93fb2f9).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4075      +/-   ##
==========================================
- Coverage   34.39%   34.35%   -0.04%     
==========================================
  Files         346      346              
  Lines       40489    40489              
==========================================
- Hits        13925    13911      -14     
- Misses      25650    25660      +10     
- Partials      914      918       +4     
Flag Coverage Δ
unittests 34.35% <ø> (-0.04%) ⬇️

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

see 4 files with indirect coverage changes

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

@chlins chlins merged commit e23bd66 into main May 19, 2025
28 checks passed
@chlins chlins deleted the feature/config branch May 19, 2025 11:19
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