-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: tests | ||
name: cloud-tests | ||
|
||
on: | ||
# Runs for pull requests | ||
|
@@ -8,6 +8,7 @@ on: | |
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
jobs: | ||
cloud-tests: | ||
|
@@ -38,7 +39,6 @@ jobs: | |
MILABENCH_SYSTEM: "config/cloud-system.yaml" | ||
MILABENCH_BASE: "output" | ||
MILABENCH_ARGS: "" | ||
MILABENCH_GPU_ARCH: "${{ matrix.arch }}" | ||
MILABENCH_DASH: "no" | ||
ARM_TENANT_ID: "${{ secrets.ARM_TENANT_ID }}" | ||
ARM_SUBSCRIPTION_ID: "${{ secrets.ARM_SUBSCRIPTION_ID }}" | ||
|
@@ -84,30 +84,17 @@ jobs: | |
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >>~/.aws/credentials | ||
chmod -R a-rwx,u+rwX ~/.aws ~/.ssh | ||
- name: start covalent server | ||
run: | | ||
poetry run -- python3 -m milabench.scripts.covalent serve start --develop | ||
- name: setup cloud | ||
run: | | ||
_system=$( | ||
poetry run milabench cloud \ | ||
--setup \ | ||
--run-on ${{ matrix.run_on }} | ||
) | ||
{ read _hash ; }< <( | ||
echo -n "$_system" | while read l | ||
do | ||
if [[ "$l" == "# hash::>"* ]] | ||
then | ||
echo -n "${l#*::>}" | ||
fi | ||
done | ||
echo | ||
) | ||
if [[ -z "${_hash}" ]] | ||
then | ||
>&2 echo "Failed to fetch system config hash" | ||
exit 1 | ||
fi | ||
echo -n "$_system" >$MILABENCH_SYSTEM.$_hash | ||
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.$_hash" >>$GITHUB_ENV | ||
--run-on ${{ matrix.run_on }} \ | ||
--system "$MILABENCH_SYSTEM" >$MILABENCH_SYSTEM.${{ matrix.run_on }} | ||
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.${{ matrix.run_on }}" >>$GITHUB_ENV | ||
- name: install benchmarks | ||
run: | | ||
|
@@ -123,10 +110,13 @@ jobs: | |
- name: Summary | ||
run: | | ||
# git remote set-url origin "https://${{ vars.REPORTS_USERNAME }}:${{ secrets.REPORTS_PAT }}@$(git remote get-url origin | cut -d'/' -f3-)" | ||
git config --global user.email "[email protected]" | ||
git config credential.${{ github.server_url }}.username ${{ github.actor }} | ||
git config credential.helper '!f() { test "$1" = get && echo "password=$GITHUB_TOKEN"; }; f' | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub CI" | ||
poetry run milabench report --push | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: teardown cloud | ||
if: always() | ||
|
@@ -139,3 +129,8 @@ jobs: | |
--teardown \ | ||
--run-on ${{ matrix.run_on }} \ | ||
--all | ||
- name: debug logs | ||
if: always() | ||
run: | | ||
cat ~/.cache/covalent/covalent_ui.log |
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