forked from chapel-lang/chapel
-
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.
Revise docker and homebrew scripts (chapel-lang#25842)
This updates homebrew nightly tests that are currently not working. The `test-homebrew-linux` test was not generating the tarball (commented out while debugging - woops!) and the `test-homebrew` test was failing because `CHPL_TARGET_CPU` was set to `none` when trying to run the `pidigits` example (should be set to `native`). Remove all the docker startup and architecture testing and we will just assume the test system has some docker compatible thing (docker desktop or colima) running when the test starts. With this PR the homebrew tests should all be working again. TESTING: - [x] `test-homebrew` working on macOS again - [x] `test-homebrew-linux` working on x86 machine with docker [reviewed by @riftEmber - thanks!!]
- Loading branch information
Showing
8 changed files
with
57 additions
and
81 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
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
#!/usr/bin/env bash | ||
#This script will build a docker image using the Dockerfile and will execute home-brew install scripts inside the container | ||
CWD=$(cd $(dirname $0) ; pwd) | ||
export CHPL_HOME=$(cd $CWD/../.. ; pwd) | ||
#This script will build a docker image using the Dockerfile and will execute homebrew install scripts inside the container | ||
cd ${CHPL_HOME}/util/packaging/docker/test | ||
|
||
cd ${CHPL_HOME}/packaging/docker/test | ||
# specify the platform as linux/amd64 to avoid warnings from aarch64 platforms | ||
|
||
# Remove image with name homebrew_ci before creating a fresh image to avoid failures. | ||
docker image rm --force homebrew_ci | ||
docker build . --load -t homebrew_ci | ||
docker build . --load --platform linux/amd64 -t homebrew_ci | ||
containerid= docker image ls | grep 'homebrew_ci' | awk '{print$3}' | ||
|
||
# Start the container and run a script to check homebrew install inside the running container | ||
docker run --rm -i homebrew_ci /bin/bash < ${CHPL_HOME}/packaging/docker/test/brew_install.bash | ||
docker run --platform linux/amd64 --rm -i homebrew_ci /bin/bash < ${CHPL_HOME}/util/packaging/docker/test/brew_install.bash | ||
CONTAINER_RUN=$? | ||
if [ $CONTAINER_RUN -ne 0 ] | ||
then | ||
echo "brew test bot commands failed inside ubuntu container" | ||
exit 1 | ||
else | ||
echo "brew test bot commands succeeded inside ubuntu container" | ||
fi | ||
if [ $CONTAINER_RUN -ne 0 ] | ||
then | ||
echo "brew test bot commands failed inside ubuntu container" | ||
exit 1 | ||
else | ||
echo "brew test bot commands succeeded inside ubuntu container" | ||
fi |