You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Experiment config_hook does not change ingredient's config #936
It seems that any ingredient level changes within an experiment's config hook do not actually alter the ingredient's config. It seems they are being overwritten right about here.
Hi @cmditch! Thanks for reporting this. Do you have an idea how to fix this issue and would prepare a PR? Unfortunately, I currently don't have much time to work on this.
Hi @cmditch! Thanks for reporting this. Do you have an idea how to fix this issue and would prepare a PR? Unfortunately, I currently don't have much time to work on this.
I can't say I have a solution atm. I've dug into the code a fair amount and attempted some fixes, but the config update logic is wildly difficult to track since there's so many ways the config can be altered.
Config hook changes: {'feats': {'name': 'feats'}}
WARNING - coury_sacred_test - No observers have been added to this run
INFO - coury_sacred_test - Running command 'main'
INFO - coury_sacred_test - Started
{'name': 'experiment', 'seed': 705608531, 'feats': {'name': 'feats', 'feats': {'name': 'feats'}}}
INFO - coury_sacred_test - Completed after 0:00:00
Activity
thequilo commentedon Nov 26, 2024
Hi @cmditch! Thanks for reporting this. Do you have an idea how to fix this issue and would prepare a PR? Unfortunately, I currently don't have much time to work on this.
cmditch commentedon Jan 22, 2025
I can't say I have a solution atm. I've dug into the code a fair amount and attempted some fixes, but the config update logic is wildly difficult to track since there's so many ways the config can be altered.
thequilo commentedon Mar 4, 2025
You are right, the config resolution code is (too?) complex. I looked at it and there is a larger issue with config hooks.
If you add a no-op hook to the ingredient, strange things happen (the config is added twice?)
I'll have to look into this