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

feat: don't compile the actuator module if users don't need it #388

Merged
merged 49 commits into from
Feb 17, 2022

Conversation

seeflood
Copy link
Member

@seeflood seeflood commented Feb 16, 2022

What this PR does:

  1. Users who don't want to use actuator can modify main.go and delete actuator code so that the actuator module won't be compiled
  2. fix fail fast and kill the process when error occurs during startup #275

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


seeflood and others added 30 commits December 23, 2021 20:00
* dapr/state:add get/save state dapr api

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state:add query/delete state

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api:replace cel-go with v0.5.1

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api:fix state api ut

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api:init slice with cap

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api: remove encrypt dependency

Signed-off-by: zach <zachchou016@gmail.com>

* remove unused code

* add comments

Co-authored-by: seeflood <349895584@qq.com>
# Conflicts:
#	pkg/grpc/dapr/dapr_api_state.go
#	pkg/grpc/dapr/dapr_api_unimplement.go
#	pkg/grpc/default_api/api.go
#	pkg/grpc/default_api/api_state.go
* dapr/state:add get/save state dapr api

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state:add query/delete state

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api:replace cel-go with v0.5.1

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api:fix state api ut

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api:init slice with cap

Signed-off-by: zach <zachchou016@gmail.com>

* dapr/state_api: remove encrypt dependency

Signed-off-by: zach <zachchou016@gmail.com>

* remove unused code

* add comments

Co-authored-by: seeflood <349895584@qq.com>
@seeflood seeflood requested review from MoonShining, zhenjunMa and ZLBer and removed request for wenxuwan February 16, 2022 10:44
@seeflood seeflood changed the title feat: Compile the actuator module on demand feat: don't compile the actuator module if users don't need it Feb 16, 2022
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #388 (4b345dc) into main (7eaa89b) will decrease coverage by 0.12%.
The diff coverage is 5.26%.

❗ Current head 4b345dc differs from pull request most recent head 642541a. Consider uploading reports for the commit 642541a to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #388      +/-   ##
==========================================
- Coverage   56.87%   56.75%   -0.13%     
==========================================
  Files         114      115       +1     
  Lines        6085     6093       +8     
==========================================
- Hits         3461     3458       -3     
- Misses       2270     2283      +13     
+ Partials      354      352       -2     
Impacted Files Coverage Δ
pkg/integrate/actuator/grpc.go 0.00% <0.00%> (ø)
pkg/runtime/runtime.go 57.29% <ø> (+0.96%) ⬆️
components/configstores/apollo/indicator.go 100.00% <100.00%> (ø)
components/configstores/apollo/change_listener.go 74.00% <0.00%> (-6.00%) ⬇️
components/rpc/invoker/mosn/channel/xchannel.go 83.87% <0.00%> (+3.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7eaa89b...642541a. Read the comment docs.

cmd/layotto/main.go Outdated Show resolved Hide resolved
cmd/layotto_multiple_api/main.go Outdated Show resolved Hide resolved
components/pkg/actuators/actutors.go Show resolved Hide resolved
@seeflood seeflood merged commit acdc4b4 into mosn:main Feb 17, 2022
@seeflood seeflood deleted the make_actuator_configurable branch February 17, 2022 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fail fast and kill the process when error occurs during startup
6 participants