ddl: make args/DecodeArgs un-exported
What problem does this PR solve?
Issue Number: ref #54436
Problem Summary:
What changed and how does it work?
- make args in job/subjob and DecodeArgs unexported, now caller should use GetXXXArgs function instead
- remove change fields inside job.decodeArgs
- remove tests related to
MockModifyJobArgfailpoint, it only test how we handle corrupted args, and the job is cancelled in this case.
Check List
Tests
- [x] Unit test, use existing cases to cover it, we mainly rename fields/methods
- [ ] Integration test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test
- [ ] I checked and no code files have been changed.
Side effects
- [ ] Performance regression: Consumes more CPU
- [ ] Performance regression: Consumes more Memory
- [ ] Breaking backward compatibility
Documentation
- [ ] Affects user behaviors
- [ ] Contains syntax changes
- [ ] Contains variable changes
- [ ] Contains experimental features
- [ ] Changes MySQL compatibility
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
None
Hi @D3Hunter. Thanks for your PR.
PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.
I understand the commands that are listed here.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
Codecov Report
Attention: Patch coverage is 90.29126% with 10 lines in your changes missing coverage. Please review.
Project coverage is 58.1706%. Comparing base (
c18eaa7) to head (8246ab7). Report is 27 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #56687 +/- ##
=================================================
- Coverage 73.3439% 58.1706% -15.1734%
=================================================
Files 1629 1784 +155
Lines 450157 648217 +198060
=================================================
+ Hits 330163 377072 +46909
- Misses 99731 246255 +146524
- Partials 20263 24890 +4627
| Flag | Coverage Δ | |
|---|---|---|
| integration | 40.0900% <26.2135%> (?) |
|
| unit | 73.8172% <90.2912%> (+1.3488%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Components | Coverage Δ | |
|---|---|---|
| dumpling | 52.9478% <ø> (ø) |
|
| parser | ∅ <ø> (∅) |
|
| br | 63.7267% <ø> (+18.1604%) |
:arrow_up: |
@joechenrh: adding LGTM is restricted to approvers and reviewers in OWNERS files.
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: joechenrh, lance6716, tangenta
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~pkg/ddl/OWNERS~~ [lance6716,tangenta]
- ~~pkg/meta/OWNERS~~ [lance6716,tangenta]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment