Skip to content

Review autosubmit.job.template use when loading jobs from older versions #2607

@kinow

Description

@kinow

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 _STAT files updated (or we'll get intermittent failures, or issues in operationals/other workflows occasionally)
  • 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 save pkl as as-$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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions