-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Milestone
Description
Blocker for 4.1.16.
@LuiggiTenorioK found this one while testing master. From Slack:
It happens that the pkl file generated by that version (4.1.16) is not readable by Autosubmit 4.1.11 (it raises a ModuleNotFoundError: No module named 'autosubmit.job.template') which is hard locked as a dependency in the API because is the one able to read all the versions of Autosubmit until now.
A possible action plan:
- Review/think if there's any other way to make it compatible
- if not, then remove the use of
autosubmit.job.template, without deleting that code or tests, then adjust the code to revert just that part - bash subshell should be still used in the updated version to make sure we get
_STATfiles updated (or we'll get intermittent failures, or issues in operationals/other workflows occasionally)
- if not, then remove the use of
- Write tests to prevent that
Tests
We don't have a test like this yet, but I think it's doable to:
- Create a dummy workflow (maybe use the default dummy workflow of AS?)
- For a list of AS versions dating back to something like 4.0.98 repeat:
create,run, then savepklasas-$version.pkl - Save all pkl files produced in a folder under our integration tests folder
TODO: check with @dbeltrankyl & @LuiggiTenorioK best strategy here to complete these tests, we could load older pickle files with the current version, or have a container where we pip install autosubmit==$VERSION, and try to load all pickle files.