-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jenkins Updates Resolving final kinks: - Removed all `git` shell commands and now exclusively use Software Control Manger (**scm**) plugin. - Add feature for skipping hosts per configuration specified in case yaml files. - Solved and tested false positive builds and experiments. - Tested archiving of task error log on case fail - First case fail quits pipeline and cancels all pending scheduled jobs - Duel build per yaml configuration arguments supported - All designated case files in PR directory pass on intended host (fully tested on Hera) Remaining updates: - Fist build fail short circuit when building sub-modules and archiving build error log. - Re-build/no-build built in logic for Replay and Rerunning previously failed experiments.
- Loading branch information
1 parent
c67393a
commit 950c38a
Showing
3 changed files
with
64 additions
and
20 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
from os.path import basename, splitext | ||
import sys | ||
import glob | ||
from wxflow import parse_j2yaml | ||
from wxflow import AttrDict | ||
|
||
_here = os.path.dirname(__file__) | ||
_top = os.path.abspath(os.path.join(os.path.abspath(_here), '../../..')) | ||
|
||
if __name__ == '__main__': | ||
|
||
if len(sys.argv) < 2: | ||
print('Usage: get_host_case_list.py <host_name>') | ||
sys.exit(1) | ||
|
||
host = sys.argv[1] | ||
|
||
case_list = [] | ||
HOMEgfs = _top | ||
data = AttrDict(HOMEgfs=_top) | ||
data.update(os.environ) | ||
|
||
case_files = glob.glob(f'{HOMEgfs}/ci/cases/pr/*.yaml') | ||
for case_yaml in case_files: | ||
case_conf = parse_j2yaml(path=case_yaml, data=data) | ||
if 'skip_ci_on_hosts' in case_conf: | ||
if host.lower() in [machine.lower() for machine in case_conf.skip_ci_on_hosts]: | ||
continue | ||
case_list.append(splitext(basename(case_yaml))[0]) | ||
print(' '.join(case_list)) |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../sorc/wxflow/src/wxflow |