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

chore: support resolving vars from multiple components consistently #8816

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leon-inf
Copy link
Contributor

@leon-inf leon-inf commented Jan 16, 2025

@leon-inf leon-inf added this to the Release 1.0.0 milestone Jan 16, 2025
@github-actions github-actions bot added the size/L Denotes a PR that changes 100-499 lines. label Jan 16, 2025
@shanshanying
Copy link
Contributor

@leon-inf leon-inf force-pushed the support/resolve-vars-from-sharding-components branch from 9775af9 to 6c846eb Compare January 16, 2025 06:52
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 76.92308% with 21 lines in your changes missing coverage. Please review.

Project coverage is 60.42%. Comparing base (982672d) to head (b1632cf).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
controllers/apps/shardingdefinition_controller.go 58.13% 12 Missing and 6 partials ⚠️
pkg/controller/component/vars.go 88.88% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8816      +/-   ##
==========================================
+ Coverage   60.34%   60.42%   +0.07%     
==========================================
  Files         381      381              
  Lines       46215    46295      +80     
==========================================
+ Hits        27889    27972      +83     
+ Misses      15654    15646       -8     
- Partials     2672     2677       +5     
Flag Coverage Δ
unittests 60.42% <76.92%> (+0.07%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@leon-inf leon-inf force-pushed the support/resolve-vars-from-sharding-components branch from 6c846eb to 8edcabe Compare January 16, 2025 07:06
@leon-inf leon-inf force-pushed the support/resolve-vars-from-sharding-components branch from 8edcabe to f1017e3 Compare January 16, 2025 07:32
@github-actions github-actions bot added size/XL Denotes a PR that changes 500-999 lines. and removed size/L Denotes a PR that changes 100-499 lines. labels Jan 16, 2025
@leon-inf leon-inf marked this pull request as ready for review January 16, 2025 07:33
@leon-inf leon-inf requested review from Y-Rookie and a team as code owners January 16, 2025 07:33
}
return nil
}

func (r *ShardingDefinitionReconciler) requireParallelProvision() bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add some comments to explain why parallel provisioning is needed when some of the RequireAllComponentObjects fields are set to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@apecloud-bot apecloud-bot added the approved PR Approved Test label Jan 16, 2025
@apecloud-bot apecloud-bot removed the approved PR Approved Test label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XL Denotes a PR that changes 500-999 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] clickhouse shard num something mismatch
4 participants