-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhaul CDash integration with CI (#2118)
#2095 switched our CI provider from CircleCI to GitHub Actions, but broke our integration with CDash. The checkout action provided by GitHub runs workflows triggered by the `pull_request` event against a [merge commit](actions/checkout#426) instead of the PR's head ref. This causes issues with the CDash integration since the git hash CDash receives does not match the most recent hash on the pull request. I was not able to resolve the callback issue, but the changes in this PR improve the CDash build name being submitted, and assign runs to appropriate build groups. I plan to take another look at this issue at a future point to restore our CDash callback.
- Loading branch information
1 parent
c376786
commit db8f55a
Showing
15 changed files
with
75 additions
and
62 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 was deleted.
Oops, something went wrong.
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
ctest_driver="/cdash/.github/workflows/ctest_driver_script.cmake" | ||
|
||
database="$1" | ||
|
||
if [ "$database" != "mysql" ] && [ "$database" != "postgres" ]; then | ||
echo "Database type required: mysql or postgres" | ||
exit 1; | ||
fi | ||
|
||
submit_type="$2" | ||
submit_type="${submit_type:-Experimental}" | ||
|
||
site="${SITENAME:-$(hostname)}" | ||
|
||
echo "site=$site" | ||
echo "database=$database" | ||
echo "ctest_driver=$ctest_driver" | ||
echo "submit_type=$submit_type" | ||
|
||
# Suppress any uncommitted changes left after the image build | ||
docker exec cdash bash -c "cd /cdash && /usr/bin/git checkout ." | ||
|
||
docker exec cdash bash -c "\ | ||
ctest \ | ||
-VV \ | ||
-j 4 \ | ||
--schedule-random \ | ||
-DSITENAME=\"${site}\" \ | ||
-DDATABASE=\"${database}\" \ | ||
-DSUBMIT_TYPE=\"${submit_type}\" \ | ||
-S \"${ctest_driver}\" \ | ||
" |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
|
||
# Settings: | ||
|
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 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
|
||
# Settings: | ||
|
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 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.22) | ||
project(SameImage) | ||
include(CTest) | ||
|
||
|
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,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.22) | ||
project(Simple) | ||
include(CTest) | ||
|
||
|
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,4 +1,4 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
cmake_minimum_required(VERSION 3.22) | ||
project(Simple2) | ||
include(CTest) | ||
|
||
|
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