-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve test image and build/test process
Added mpi4py to build image and removed unwanted ohpc numpy package. Use github api to retrieve real branch name, use that along with other information to generate a meaningful build name. To keep this from happening too often, we only attempt to retrieve the branch name once for each job during the first step, then communicate that name to subsequent steps via an environment variable. This required that we stop using --login option when running the job steps from circleci, as the lmod environment setup uses the same variable (BASH_ENV) to store the path to the profile setup file that CircleCI sources for each "run" in the job steps. Use github api and the robot user oauth key (from CircleCI env) to post an extra status message on each tested commit pointing to the CDash results. By also adding an "update" step to the default build/test job and using CTEST_UPDATE_VERSION_ONLY=TRUE, we can generate a deep link to the CDash results specific to the appropriate commit.
- Loading branch information
1 parent
2cf15e6
commit 1bc0c36
Showing
10 changed files
with
137 additions
and
17 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
runOnCircle.sh | ||
postComment.sh | ||
*.cmake | ||
findStatus.py |
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
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,25 @@ | ||
import sys | ||
import json | ||
import argparse | ||
|
||
|
||
def searchForContext(context): | ||
print('Searching for a status with context: %s' % context) | ||
statuses = json.load(sys.stdin) | ||
|
||
for stat in statuses: | ||
if 'context' in stat and stat['context'] == context: | ||
sys.exit(0) | ||
|
||
sys.exit(1) | ||
|
||
|
||
# ============================================================================= | ||
# Main | ||
# ============================================================================= | ||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser("Parse github api status list") | ||
parser.add_argument("--context", default=None, help="context of interest") | ||
args = parser.parse_args() | ||
searchForContext(args.context) |
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 |
---|---|---|
|
@@ -37,3 +37,4 @@ for i in "${ADDR[@]}"; do | |
echo "Unable to find PR number in ${i}" | ||
fi | ||
done | ||
|
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