-
Notifications
You must be signed in to change notification settings - Fork 212
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
Batch fix reorder scripts regression tests #411
Merged
jgfouca
merged 6 commits into
ESMCI:master
from
jedwards4b:batch_fix_reorder_scripts_regression_tests
Aug 16, 2016
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d334f39
moved config_tests.xml to cime_config directory, reorder tests in scr…
jedwards4b 1ff6c2b
moved config_tests.xml to cime_config directory, reorder tests in scr…
jedwards4b 518552b
add support for special queue on yellowstone
jedwards4b b78608a
fix indent
jedwards4b 23ebbfd
add timestamp to testcase names
jedwards4b b4bf40a
location of config_tests.xml
jedwards4b File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,7 +276,7 @@ def set_job_defaults(self, bjobs, pesize=None, walltime=None, force_queue=None): | |
else: | ||
task_count = int(task_count) | ||
|
||
queue = force_queue if force_queue is not None else self.select_best_queue(task_count) | ||
queue = force_queue if force_queue is not None else self.select_best_queue(task_count, job) | ||
self.set_value("JOB_QUEUE", queue, subgroup=job) | ||
|
||
walltime = self.get_max_walltime(queue) if walltime is None else walltime | ||
|
@@ -330,6 +330,8 @@ def get_submit_args(self, case, job): | |
if name is None: | ||
submitargs+=" %s"%flag | ||
else: | ||
if name.startswith("$"): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct parsing of name field in queue |
||
name = name[1:] | ||
val = case.get_value(name,subgroup=job) | ||
if val is None: | ||
val = case.get_resolved_value(name) | ||
|
@@ -464,7 +466,7 @@ def get_job_id(self, output): | |
jobid = re.search(jobid_pattern, output).group(1) | ||
return jobid | ||
|
||
def select_best_queue(self, num_pes): | ||
def select_best_queue(self, num_pes, job=None): | ||
# Make sure to check default queue first. | ||
all_queues = [] | ||
all_queues.append( self.get_default_queue()) | ||
|
@@ -473,8 +475,12 @@ def select_best_queue(self, num_pes): | |
if queue is not None: | ||
jobmin = queue.get("jobmin") | ||
jobmax = queue.get("jobmax") | ||
jobname = queue.get("jobname") | ||
if jobname is not None: | ||
if job == jobname: | ||
return queue.text | ||
# if the fullsum is between the min and max # jobs, then use this queue. | ||
if jobmin is not None and jobmax is not None and num_pes >= int(jobmin) and num_pes <= int(jobmax): | ||
elif jobmin is not None and jobmax is not None and num_pes >= int(jobmin) and num_pes <= int(jobmax): | ||
return queue.text | ||
return None | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adds support for jobname allowing a special queue for a certain job