File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ jobs:
50
50
use-labels : false
51
51
fail-build : ${{ github.event_name == 'pull_request' }}
52
52
53
- # build:
54
- # name: Build charm
55
- # uses: canonical/data-platform-workflows/.github/workflows/[email protected]
56
- # with:
57
- # cache: true
53
+ build :
54
+ name : Build charm
55
+ uses :
canonical/data-platform-workflows/.github/workflows/[email protected]
56
+ with :
57
+ cache : true
58
58
59
59
# integration-test:
60
60
# strategy:
Original file line number Diff line number Diff line change @@ -13,14 +13,10 @@ parts:
13
13
/root/.local/bin/poetry export --only main,charm-libs --output requirements.txt
14
14
15
15
craftctl default
16
- # TODO: uncomment this line once we get charmcraftcache for opensearch-benchmark
17
- # charm-strict-dependencies: true
16
+ charm-strict-dependencies : true
18
17
charm-requirements : [requirements.txt]
19
- charm-entrypoint : src/charm.py
20
18
build-snaps :
21
19
- rustup
22
- prime :
23
- - src/workload_parameter_templates
24
20
build-packages :
25
21
# # Dependencies used to build opensearch-benchmark
26
22
# - cmake
Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ def _unit_ip(self) -> str:
114
114
115
115
def _on_config_changed (self , event : EventBase ) -> None :
116
116
"""Config changed event."""
117
+ if not self .workload .is_prepared ():
118
+ # nothing to do: set the status and leave
119
+ self ._set_status ()
120
+ return
117
121
try :
118
122
# First, we check if the status of the service
119
123
if not self .database .state .get ():
@@ -277,5 +281,7 @@ def supported_workloads(self) -> list[str]:
277
281
"""List the supported workloads."""
278
282
return [
279
283
"." .join (name .split ("." )[:- 2 ])
280
- for name in os .listdir ("src/workload_parameter_templates" )
284
+ for name in os .listdir (
285
+ os .path .join (self .workload .paths .templates , "workload_parameter" )
286
+ )
281
287
]
You can’t perform that action at this time.
0 commit comments