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

Fix steps_to_run for shared config files #134

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented Oct 12, 2023

With this merge, each task that uses a shared config file used by a task to be set up has its configure() method called and then steps_to_run is added to the shared config options. This prevents a situation where steps_to_run is missing when a task is set up later that overwrites the shared config file.

Checklist

  • Testing comment in the PR documents testing used to verify the changes

@xylar xylar added bug Something isn't working framework Changes relating to the polaris framework as opposed to individual tests or analysis in progress This PR is not ready for review or merging labels Oct 12, 2023
@xylar xylar requested a review from sbrus89 October 12, 2023 19:17
@xylar xylar self-assigned this Oct 12, 2023
@xylar
Copy link
Collaborator Author

xylar commented Oct 12, 2023

This should fix #120 (comment).

With this merge, each task that uses a shared config file used
by a task to be set up has its configure() method called and
then `steps_to_run` is added to the shared config options.  This
prevents a situation where `steps_to_run` is missing when a
task is set up later that overwrites the shared config file.
@xylar xylar force-pushed the fix-steps-to-run-shared-config branch from 2575c01 to 2c6adfd Compare October 12, 2023 19:32
@xylar
Copy link
Collaborator Author

xylar commented Oct 12, 2023

Testing

I set up:

polaris setup -t ocean/spherical/icos/cosine_bell -p ../main/e3sm_submodules/E3SM-Project/components/mpas-ocean/ -w $POLARIS_SCRATCH/cosine-bell
polaris setup -t ocean/spherical/icos/cosine_bell/with_viz -p ../main/e3sm_submodules/E3SM-Project/components/mpas-ocean/ -w $POLARIS_SCRATCH/cosine-bell

Then, I ran:

cd $POLARIS_SCRATCH/cosine-bell/ocean/spherical/icos/cosine_bell
sbatch job_script.sh

This worked with this branch whereas a similar test failed in #120 (comment)

@xylar xylar marked this pull request as ready for review October 12, 2023 20:13
@xylar xylar removed the in progress This PR is not ready for review or merging label Oct 12, 2023
@xylar
Copy link
Collaborator Author

xylar commented Oct 12, 2023

@sbrus89, thank you for finding this problem. Please let me know if this fixes it for you.

@xylar
Copy link
Collaborator Author

xylar commented Oct 16, 2023

@sbrus89, same here, I'm going to count on my testing and not waste your time.

@xylar xylar removed the request for review from sbrus89 October 16, 2023 20:34
@xylar xylar merged commit d1db9b5 into E3SM-Project:main Oct 16, 2023
5 checks passed
@xylar xylar deleted the fix-steps-to-run-shared-config branch October 16, 2023 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working framework Changes relating to the polaris framework as opposed to individual tests or analysis
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant