-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unexpected error: list index out of range #2043
Comments
Debugging with PDB. Logging the progress in the weekly 51 testing suite issue (to avoid information about experiments leaking here). Will update this issue later. |
I probably won't have time to work on this today as I have to leave earlier. @isimo00 if you get bored with the mail notification PR (that had a git conflict when I checked some minutes ago 😬 ), you can have a look at this one. I only know it happens with application workflows, and when I debugged with Maybe this is something we can look together on Friday, and I would show you how given an expid and an error, one can go and find more information to reproduce the error locally and debug with IDE. 👋 |
After some tests, managed to create a local experiment with similar configuration, that fails with the same error (I used Traceback (most recent call last):
File "/home/kinow/Development/python/workspace/autosubmit/bin/autosubmit", line 36, in main
return_value = Autosubmit.parse_args()
File "/home/kinow/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 733, in parse_args
return Autosubmit.inspect(args.expid, args.list, args.filter_chunks, args.filter_status,
File "/home/kinow/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 1654, in inspect
Autosubmit.generate_scripts_andor_wrappers(
File "/home/kinow/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 1740, in generate_scripts_andor_wrappers
Autosubmit.submit_ready_jobs(as_conf, job_list, platforms_to_test, packages_persistence, True,
File "/home/kinow/Development/python/workspace/autosubmit/autosubmit/autosubmit.py", line 2513, in submit_ready_jobs
packages_to_submit = packager.build_packages()
File "/home/kinow/Development/python/workspace/autosubmit/autosubmit/job/job_packager.py", line 554, in build_packages
job.update_parameters(self._as_config,
File "/home/kinow/Development/python/workspace/autosubmit/autosubmit/job/job.py", line 2074, in update_parameters
parameters = as_conf.substitute_dynamic_variables(parameters,80)
File "/home/kinow/Development/python/micromamba/envs/autosubmit4/lib/python3.9/site-packages/autosubmitconfigparser/config/configcommon.py", line 908, in substitute_dynamic_variables
self.clean_dynamic_variables(pattern, in_the_end)
File "/home/kinow/Development/python/micromamba/envs/autosubmit4/lib/python3.9/site-packages/autosubmitconfigparser/config/configcommon.py", line 854, in clean_dynamic_variables
if isinstance(dynamic_var[1], list):
IndexError: list index out of range
[CRITICAL] Unexpected error: list index out of range.
Please report it to Autosubmit Developers through Git
More info at https://autosubmit.readthedocs.io/en/master/troubleshooting/error-codes.html |
Started deleting platforms not used, then jobs one by one. Then deleting the Then removed this line |
Minimal config to reproduce the error: DEFAULT:
EXPID: a030
HPCARCH: local
CUSTOM_CONFIG: //home/kinow/autosubmit/a030/proj/local_project/conf/bootstrap/
CONFIG:
AUTOSUBMIT_VERSION: 4.1.12
TOTALJOBS: 20
MAXWAITINGJOBS: 20
PLATFORMS:
DUMMY:
HOST: bla
USER: bla
JOBS:
OPA_ENERGY_ONSHORE_1:
CHECK: on_submission
#CUSTOM_DIRECTIVES: '%CURRENT_OPA_CUSTOM_DIRECTIVES%'
EXCLUSIVE: '%CURRENT_OPA_EXCLUSIVE%'
FILE: ok.sh
PARTITION: '%CURRENT_APP_PARTITION%'
PLATFORM: local
PROCESSORS: '%CURRENT_OPA_PROCESSORS%'
RUNNING: chunk
NAME: energy_onshore_1
SPLITS: auto
ADDITIONAL_FILES: []
EXPERIMENT:
DATELIST: 19900101
MEMBERS: fc0
CHUNKSIZEUNIT: month
CHUNKSIZE: 1
NUMCHUNKS: 1
CALENDAR: standard
SPLITSIZEUNIT: day
PROJECT:
PROJECT_TYPE: local
PROJECT_DESTINATION: local_project
LOCAL:
PROJECT_PATH: proj/local_project |
Found a fix that works for me, or at least doesn't crash the experiment, and I can use the variable in a template (so it looks like it worked). I just need to review the PR to make sure I understand the impact that change may have, add some docs and tests, and release it and update in Autosubmit -- BSC-ES/autosubmit-config-parser#59 |
Hello What's exactly causing the problem? (I mean, what's not really working or what feature cannot be used?) I see the traceback: And there is a list in the configuration, but I don't think I am in the right direction I think that we must find a way to explain users (and others as me) what's not going all well when an issue is created |
This is currently broken:
Because Autosubmit treats the custom directive as a list, it enters a part of the code that raises the exception. So anyone using a placeholder/dynamic variable for |
Or even better, we could say that using placeholders in |
From two app workflows in DestinE (cc @franra9):
The text was updated successfully, but these errors were encountered: