Repository navigation
feat(installer): load ext/ code only from the repos the env's record names - #200
Conversation
|
Claude finished @mik-now's task in 1m 7s —— View job Verdict: needs changes Correctness
Readability / comments
|
d2e0518 to
deff577
Compare
|
Claude finished @mik-now's task in 1m 8s —— View job Verdict: needs changes Correctness
Readability / comments
|
…names Configs already came from env/<env>/.solutions.yaml, but roles and components were discovered from every components.yaml under ext/, which every env shares. An old clone, or one another env uses, could add components or shadow roles. ENV_REPOS (set by ensure_repos from the record) now scopes the roles path, the merged registry and preflight (as _env_repos); unset, all of ext/ is read as before. A record naming a repo the manifests now clone elsewhere is refused, naming the init that fixes it. After init writes the record, a layer whose repo changed gets ext/<old>/ paths in that env's configs (e.g. deployment_dir) repointed to ext/<new>/, so the hard-coded pre-rename guard is no longer needed. Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
deff577 to
fcd1fa2
Compare
|
Claude finished @mik-now's task in 52s —— View job Verdict: needs changes Correctness
Readability / comments
|
A failed repoint now keeps the old record, so re-running init retries it. Also: test a run with no record, drop stale/duplicate comments, plain loop in _ext_manifests. Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
|
Claude finished @mik-now's task in 55s —— View job Verdict: needs changes Correctness
|
Follow-up to #196. Configs were already picked from
env/<env>/.solutions.yaml, but roles and components came from everycomponents.yamlunderext/, and all envs shareext/. So an old clone (or one another env uses) could add components to a run or shadow its roles. That's what broke the upgrade path after the rename.What changes:
ensure_repossetsENV_REPOSfrom the env's record. The roles path, the merged registry (_target_exists,show_table) and preflight (as_env_repos) all read only those repos through one helper,_ext_manifests. A run on an env with no record reads no ext clones, and an ext-only layer still gets the "not provisioned, run init" error. Unset (show,init, direct playbook runs) means all ofext/, as before.dest:anymore, the run stops and says whichinit <layer> --upgradefixes it. This replaces the hard-coded list of old folder names from rebranding: rename ext/ clones to inference-toolkit and chatbot-toolkit #196.initmoves a layer to a new repo,ext/<old>/paths in that env's configs are repointed toext/<new>/(e.g.deployment_dirinconfig.erag.yaml) before the new record replaces the old one. If the repoint fails, the old record stays and re-runninginitfinishes it. Other envs are left alone until their own init.init inferencewhen erag's repo is the one missing.Tested locally on a copy of an old env (records
enterprise.ai-*, old clone still on disk): the run is refused with the right command,init erag --upgrademoves both layers and fixesdeployment_dir, andvalidatethen only loadschatbot-toolkitandinference-toolkit. Unit tests insrc/tests/unit/test_env_repos.py: a realinitagainst a local git repo, a failed repoint followed by a retry, a run with no record, and the preflight filter.