forked from cisco/ChezScheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run mats configurations in parallel (cisco#561)
* refactor mats to allow different configurations to run in parallel. The {partial,all,bully}x targets now support being run in parallel should make decide to do so (e.g., via the -j flag) * fix mats ignoring "rmg" parameter * Update travis-ci build scripts to use new partialx target and run multiple jobs in parallel, based on the number of processors available. * Add a way to only run particular machines in travis-ci by including a line that starts with "travis:only:" and lists the machine types in the commit message.
- Loading branch information
1 parent
728813f
commit 96ee63d
Showing
39 changed files
with
465 additions
and
357 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
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,24 @@ | ||
#!/bin/bash | ||
|
||
git branch -v | ||
echo "TRAVIS_COMMIT: $TRAVIS_COMMIT" | ||
echo "TRAVIS_COMMIT_RANGE: $TRAVIS_COMMIT_RANGE" | ||
echo "TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST" | ||
|
||
if test -z "$TRAVIS_PULL_REQUEST"; then | ||
msg="$TRAVIS_COMMIT_MESSAGE" | ||
else | ||
msg="$(echo "$TRAVIS_COMMIT_RANGE" | cut -d. -f4 |xargs git log --format=%B -n 1)" | ||
fi | ||
|
||
echo "Checking to see whether to skip build for $TARGET_MACHINE due to commit message" | ||
echo "$msg" | ||
msg_only="$(echo "$msg" | grep "^travis:only:")" | ||
if test -n "$msg_only" ; then | ||
if ! echo "$msg_only" | grep -q "\<${TARGET_MACHINE}\>" ; then | ||
echo "Skipping builds for target machine type $TARGET_MACHINE due to commit message:" | ||
echo "$msg_only" | ||
exit 1 | ||
fi | ||
fi | ||
|
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,4 +1,4 @@ | ||
-------- o=0 -------- | ||
-------- o=3 -------- | ||
-------- o=3 cp0=t -------- | ||
-------- o=3 cp0=t eval=interpret -------- | ||
-------- o=3 cp0=t eval=interpret rmg=2 -------- |
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,20 +1,28 @@ | ||
#!/bin/bash | ||
runmats() { | ||
echo travis_fold:start:mats | ||
echo make allxhelp "$@" | ||
make -C "$TARGET_MACHINE"/mats allxhelp "$@" 2>&1 | .travis/matting.sh | ||
echo travis_fold:end:mats | ||
} | ||
|
||
runmats o=0 | ||
runmats o=3 | ||
runmats o=3 cp0=t | ||
runmats o=3 cp0=t eval=interpret | ||
if test -n "$PARALLEL_MATS" ; then | ||
njobs="$PARALLEL_MATS" | ||
else | ||
njobs="$(getconf _NPROCESSORS_ONLN)" | ||
fi | ||
make -C "$TARGET_MACHINE"/mats -j "$njobs" partialx | ||
|
||
if [ -f "$TARGET_MACHINE"/mats/summary ]; then | ||
cat "$TARGET_MACHINE"/mats/summary | ||
diff -q .travis/summary "$TARGET_MACHINE"/mats/summary | ||
exit $? | ||
rc=$? | ||
if [ $rc -gt 0 ]; then | ||
echo 'travis_fold:start:make_prereqs_output' | ||
echo "Make output from $TARGET_MACHINE/mats/Make.out:" | ||
cat "$TARGET_MACHINE"/mats/Make.out | ||
echo 'travis_fold:end:make_prereqs_output' | ||
for log in "$TARGET_MACHINE"/mats/output*/Make.out ; do | ||
echo 'travis_fold:start:make_output' | ||
echo "Make output from ${log}:" | ||
cat "${log}" | ||
echo 'travis_fold:end:make_output' | ||
done | ||
fi | ||
exit $rc | ||
else | ||
exit 1 | ||
fi |
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
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
Oops, something went wrong.