Skip to content

Conversation

@ruanwenjun
Copy link
Member

@ruanwenjun ruanwenjun commented Mar 29, 2023

Purpose of the pull request

When workflow doesn't bind the tenant, use the worker bootstrap user as the tenant.

Brief change log

  • Create a default tenant, which will bind as the default tenant.
  • When we use the default tenant to execute task, worker will use bootstrap user to execute task.

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@ruanwenjun ruanwenjun added 3.2.0 for 3.2.0 version feature new feature labels Mar 29, 2023
@ruanwenjun ruanwenjun added this to the 3.2.0 milestone Mar 29, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_useBootstraptUserToExecuteTask branch 2 times, most recently from 87a38af to 3047546 Compare March 29, 2023 14:31
@kezhenxu94
Copy link
Member

bootstrapt should be bootstrap?

@zhongjiajie
Copy link
Member

we should also remove the section "Create Tenant" in https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/start/quick-start.md section "Create Tenant", to make green hand path shorter

@ruanwenjun ruanwenjun changed the title Use bootstrapt user as the default tenant Use bootstrap user as the default tenant Mar 30, 2023
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_useBootstraptUserToExecuteTask branch from 3047546 to 88d9159 Compare March 30, 2023 02:34
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_useBootstraptUserToExecuteTask branch 3 times, most recently from 98c0373 to 925dded Compare March 30, 2023 03:42
@ruanwenjun ruanwenjun force-pushed the dev_wenjun_useBootstraptUserToExecuteTask branch from 925dded to 69802ae Compare March 30, 2023 04:14
@codecov-commenter
Copy link

codecov-commenter commented Mar 30, 2023

Codecov Report

Merging #13825 (53bb358) into dev (9d9ae9a) will decrease coverage by 0.03%.
The diff coverage is 20.00%.

❗ Current head 53bb358 differs from pull request most recent head 69802ae. Consider uploading reports for the commit 69802ae to get more accurate results

@@             Coverage Diff              @@
##                dev   #13825      +/-   ##
============================================
- Coverage     39.11%   39.08%   -0.03%     
+ Complexity     4437     4435       -2     
============================================
  Files          1140     1142       +2     
  Lines         42053    42007      -46     
  Branches       4753     4740      -13     
============================================
- Hits          16448    16419      -29     
+ Misses        23800    23788      -12     
+ Partials       1805     1800       -5     
Impacted Files Coverage Δ
...cheduler/api/service/impl/ExecutorServiceImpl.java 50.49% <ø> (+0.87%) ⬆️
...hinscheduler/common/constants/TenantConstants.java 0.00% <0.00%> (ø)
...apache/dolphinscheduler/common/utils/LogUtils.java 0.00% <0.00%> (ø)
.../server/master/runner/WorkflowExecuteRunnable.java 9.77% <0.00%> (-0.01%) ⬇️
...inscheduler/remote/processor/BaseLogProcessor.java 0.00% <ø> (ø)
...heduler/remote/processor/GetLogBytesProcessor.java 0.00% <0.00%> (ø)
...scheduler/remote/processor/RollViewLogRequest.java 0.00% <0.00%> (ø)
...eduler/remote/processor/ViewWholeLogProcessor.java 0.00% <0.00%> (ø)
...apache/dolphinscheduler/service/log/LogClient.java 0.00% <0.00%> (ø)
...duler/plugin/task/api/AbstractCommandExecutor.java 0.00% <0.00%> (ø)
... and 7 more

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 8 Code Smells

47.5% 47.5% Coverage
9.4% 9.4% Duplication

@rickchengx
Copy link
Contributor

Good idea, LGTM👍

@ruanwenjun ruanwenjun merged commit 9df89cf into apache:dev Mar 30, 2023
@ruanwenjun ruanwenjun deleted the dev_wenjun_useBootstraptUserToExecuteTask branch March 30, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.2.0 for 3.2.0 version backend document feature new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants