Skip to content

--launch cron option for ./run_we2e_tests.py is broken #18

Description

@mkavulich

Expected behavior

tests/WE2E/run_we2e_tests.py offers three options for running test experiments:
- python: [default] Monitor and launch experiments using monitor_jobs.py
- cron: Launch expts using ush/launch_vx_wflow.sh from crontab
- none: Do not launch experiments; only create experiment directories

Current behavior

Currently, the --launch cron option appears to be broken:

$ ./run_we2e_tests.py -m ursa -a fv3lam --launch cron -t MET_verification_only_vx
Checking that all tests are valid
Will run 1 tests:
/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/dtc-vx-workflow/tests/WE2E/test_configs/deterministic/config.MET_verification_only_vx.yaml
Calling workflow generation function for test MET_verification_only_vx

...
...
...

            Creating rocoto workflow XML file (WFLOW_XML_FP):
              WFLOW_XML_FP = '/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/expt_dirs/MET_verification_only_vx/vx_wflow.xml'
Schema validation succeeded for Rocoto config
Schema validation succeeded for Rocoto XML

*********************************************************************
FATAL ERROR:
Experiment generation failed. See the error message(s) printed below.
For more detailed information, check the log file from the workflow
generation script: log.run_WE2E_tests
*********************************************************************

Traceback (most recent call last):
  File "/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/dtc-vx-workflow/tests/WE2E/./run_we2e_tests.py", line 535, in <module>
    run_we2e_tests(top_dir, user_args)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/dtc-vx-workflow/tests/WE2E/./run_we2e_tests.py", line 210, in run_we2e_tests
    expt_dir = generate_wflow(
        ushdir=str(ushdir),
    ...<2 lines>...
        debug=args.debug,
    )
  File "/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/dtc-vx-workflow/tests/WE2E/../../ush/generate_wflow.py", line 138, in generate_wflow
    add_crontab_line(
    ~~~~~~~~~~~~~~~~^
        called_from_cron=False,
        ^^^^^^^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        debug=debug,
        ^^^^^^^^^^^^
    )
    ^
  File "/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/dtc-vx-workflow/tests/WE2E/../../ush/get_crontab_contents.py", line 78, in add_crontab_line
    logger.info(
    ~~~~~~~~~~~^
        f"""
        ^^^^
    ...<2 lines>...
        verbose=debug,
        ^^^^^^^^^^^^^^
    )
    ^
  File "/scratch3/BMC/dtc/Michael.Kavulich/vx_wflow/help_george/dtc-vx-workflow/conda/envs/vx_workflow/lib/python3.14/logging/__init__.py", line 1520, in info
    self._log(INFO, msg, args, **kwargs)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Logger._log() got an unexpected keyword argument 'verbose'

Machines affected

All

Steps To Reproduce

Run ./run_we2e_tests.py with the --launch cron option

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions