Skip to content
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

USE_CRON_TO_RELAUNCH option is broken on Cheyenne and Derecho #932

Closed
mkavulich opened this issue Oct 6, 2023 · 2 comments · Fixed by #934
Closed

USE_CRON_TO_RELAUNCH option is broken on Cheyenne and Derecho #932

mkavulich opened this issue Oct 6, 2023 · 2 comments · Fixed by #934
Assignees
Labels
bug Something isn't working

Comments

@mkavulich
Copy link
Collaborator

Expected behavior

We should be able to generate a workflow using the config option USE_CRON_TO_RELAUNCH: True

Current behavior

If the user attempts to generate the workflow with the USE_CRON_TO_RELAUNCH: True option, the workflow generation fails.

Machines affected

Cheyenne and Derecho

Steps To Reproduce

  1. Check out and compile the latest code
  2. Attempt to
  • Example test command: ./run_WE2E_tests.py -m cheyenne -a P48503002 -t grid_RRFS_CONUS_25km_ics_NAM_lbcs_NAM_suite_GFS_v16 -q --launch=cron
  1. See the bug:


*********************************************************************
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 "/glade/scratch/kavulich/workdir/UFS/test_develop/2023-10-06/intel/ufs-srweather-app/tests/WE2E/./run_WE2E_tests.py", line 559, in <module>
    run_we2e_tests(homedir,args)
  File "/glade/scratch/kavulich/workdir/UFS/test_develop/2023-10-06/intel/ufs-srweather-app/tests/WE2E/./run_WE2E_tests.py", line 241, in run_we2e_tests
    expt_dir = generate_FV3LAM_wflow(ushdir,logfile=f"{ushdir}/log.generate_FV3LAM_wflow",
  File "/glade/scratch/kavulich/workdir/UFS/test_develop/2023-10-06/intel/ufs-srweather-app/tests/WE2E/../../ush/generate_FV3LAM_wflow.py", line 164, in generate_FV3LAM_wflow
    add_crontab_line(called_from_cron=False,machine=expt_config["user"]["MACHINE"],
  File "/glade/scratch/kavulich/workdir/UFS/test_develop/2023-10-06/intel/ufs-srweather-app/tests/WE2E/../../ush/get_crontab_contents.py", line 89, in add_crontab_line
    crontab_cmd, crontab_contents = get_crontab_contents(called_from_cron, machine, debug)
  File "/glade/scratch/kavulich/workdir/UFS/test_develop/2023-10-06/intel/ufs-srweather-app/tests/WE2E/../../ush/get_crontab_contents.py", line 48, in get_crontab_contents
    {crontab_cmd} -l
UnboundLocalError: local variable 'crontab_cmd' referenced before assignment

Detailed Description of Fix (optional)

The variable crontab_cmd needs to be set for all cases; right now at the workflow generation step it is not set on Cheyenne or Derecho due to a logic error in the get_crontab_contents.py python script. Will open a PR shortly to fix.

@mkavulich mkavulich added the bug Something isn't working label Oct 6, 2023
@mkavulich mkavulich removed this from SRW 3.0.0 Oct 6, 2023
@mkavulich mkavulich moved this to In Progress in SRW 3.0.0 Oct 6, 2023
@mkavulich mkavulich self-assigned this Oct 7, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in SRW 3.0.0 Oct 10, 2023
@mkavulich
Copy link
Collaborator Author

Re-opening until fix is applied to release branch as well

@MichaelLueken
Copy link
Collaborator

This issue was completed with PR #939. Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
2 participants