Skip to content

Commit

Permalink
Fix cloud-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaog committed May 24, 2024
1 parent 9ec6152 commit 14ffdf1
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/cloud-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: cloud-tests

on:
# Runs for pull requests
Expand Down Expand Up @@ -45,6 +45,11 @@ jobs:
AZURE_CORE_OUTPUT: none

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v3
with:
token: ${{ github.token }}
Expand Down Expand Up @@ -84,30 +89,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: |
Expand Down Expand Up @@ -139,3 +131,8 @@ jobs:
--teardown \
--run-on ${{ matrix.run_on }} \
--all
- name: debug logs
if: always()
run: |
cat ~/.cache/covalent/covalent_ui.log

0 comments on commit 14ffdf1

Please sign in to comment.