Skip to content

Commit f9a8c6e

Browse files
committed
Fix cloud-ci
1 parent 5b5700c commit f9a8c6e

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

.github/workflows/cloud-ci.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tests
1+
name: cloud-tests
22

33
on:
44
# Runs for pull requests
@@ -45,6 +45,11 @@ jobs:
4545
AZURE_CORE_OUTPUT: none
4646

4747
steps:
48+
- name: Dump GitHub context
49+
env:
50+
GITHUB_CONTEXT: ${{ toJson(github) }}
51+
run: echo "$GITHUB_CONTEXT"
52+
4853
- uses: actions/checkout@v3
4954
with:
5055
token: ${{ github.token }}
@@ -84,30 +89,17 @@ jobs:
8489
echo "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}" >>~/.aws/credentials
8590
chmod -R a-rwx,u+rwX ~/.aws ~/.ssh
8691
92+
- name: start covalent server
93+
run: |
94+
poetry run -- python3 -m milabench.scripts.covalent serve start --develop
95+
8796
- name: setup cloud
8897
run: |
89-
_system=$(
9098
poetry run milabench cloud \
9199
--setup \
92-
--run-on ${{ matrix.run_on }}
93-
)
94-
{ read _hash ; }< <(
95-
echo -n "$_system" | while read l
96-
do
97-
if [[ "$l" == "# hash::>"* ]]
98-
then
99-
echo -n "${l#*::>}"
100-
fi
101-
done
102-
echo
103-
)
104-
if [[ -z "${_hash}" ]]
105-
then
106-
>&2 echo "Failed to fetch system config hash"
107-
exit 1
108-
fi
109-
echo -n "$_system" >$MILABENCH_SYSTEM.$_hash
110-
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.$_hash" >>$GITHUB_ENV
100+
--run-on ${{ matrix.run_on }} \
101+
--system "$MILABENCH_SYSTEM" >$MILABENCH_SYSTEM.${{ matrix.run_on }}
102+
echo "MILABENCH_SYSTEM=$MILABENCH_SYSTEM.${{ matrix.run_on }}" >>$GITHUB_ENV
111103
112104
- name: install benchmarks
113105
run: |
@@ -139,3 +131,8 @@ jobs:
139131
--teardown \
140132
--run-on ${{ matrix.run_on }} \
141133
--all
134+
135+
- name: debug logs
136+
if: always()
137+
run: |
138+
cat ~/.cache/covalent/covalent_ui.log

0 commit comments

Comments
 (0)