|
39 | 39 | "INSTALLATION_BRANCH": "",
|
40 | 40 | "DEBUG": "Yes",
|
41 | 41 | }
|
42 |
| -# If TEST_DIRACX is set to yes, all variables in DIRACX_OPTIONS will also be set to "Yes" |
43 |
| -DIRACX_OPTIONS = () |
44 | 42 | DEFAULT_MODULES = {"DIRAC": Path(__file__).parent.absolute()}
|
| 43 | +# All services that have a FutureClient, but we *explicitly* deactivate |
| 44 | +# (for example if we did not finish to develop it) |
| 45 | +DIRACX_DISABLED_SERVICES = [ |
| 46 | + # "WorkloadManagement/JobMonitoring", |
| 47 | +] |
45 | 48 |
|
46 | 49 | # Static configuration
|
47 | 50 | DB_USER = "Dirac"
|
@@ -155,8 +158,9 @@ def list_commands(self, ctx):
|
155 | 158 | It will search for legacy adapted services (services with a future client activated)
|
156 | 159 | and do the necessary to make DIRAC work alongside DiracX.
|
157 | 160 |
|
158 |
| -To deactivate a legacy adapted service (to pass CI for example), you have to set in the old |
159 |
| -client the `diracxClient` field to "None". Else, set it to the right future client instance. |
| 161 | +To deactivate a legacy adapted service (to pass CI for example), you have to add it in |
| 162 | +the `DIRACX_DISABLED_SERVICES` list. If you don't, the program will set this service to be used |
| 163 | +with DiracX, and if it is badly adapted, errors will be raised. |
160 | 164 |
|
161 | 165 | > Note that you can provide a DiracX project (repository, branch) by building it and providing
|
162 | 166 | the dist folder to the prepare-environment command.
|
@@ -1184,10 +1188,16 @@ def _make_config(modules, flags, release_var, editable):
|
1184 | 1188 | typer.secho(f"Required feature variable {key!r} is missing", err=True, fg=c.RED)
|
1185 | 1189 | raise typer.Exit(code=1)
|
1186 | 1190 |
|
1187 |
| - # If we test DiracX, enable all the options |
| 1191 | + # If we test DiracX, add specific config |
1188 | 1192 | if config["TEST_DIRACX"].lower() in ("yes", "true"):
|
1189 |
| - for key in DIRACX_OPTIONS: |
1190 |
| - config[key] = "Yes" |
| 1193 | + if DIRACX_DISABLED_SERVICES: |
| 1194 | + # We link all disabled services |
| 1195 | + # config["DIRACX_DISABLED_SERVICES"] = "Service1 Service2 Service3 ..." |
| 1196 | + diracx_disabled_services = " ".join(DIRACX_DISABLED_SERVICES) |
| 1197 | + |
| 1198 | + typer.secho(f"The following services won't be legacy adapted: {diracx_disabled_services}", fg="yellow") |
| 1199 | + |
| 1200 | + config["DIRACX_DISABLED_SERVICES"] = diracx_disabled_services |
1191 | 1201 |
|
1192 | 1202 | config["TESTREPO"] = [f"/home/dirac/LocalRepo/TestCode/{name}" for name in modules]
|
1193 | 1203 | config["ALTERNATIVE_MODULES"] = [f"/home/dirac/LocalRepo/ALTERNATIVE_MODULES/{name}" for name in modules]
|
|
0 commit comments