diff --git a/.github/workflows/cloud-ci.yml b/.github/workflows/cloud-ci.yml index c19954c71..7b73be6cb 100644 --- a/.github/workflows/cloud-ci.yml +++ b/.github/workflows/cloud-ci.yml @@ -1,4 +1,4 @@ -name: tests +name: cloud-tests on: # Runs for pull requests @@ -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 }} @@ -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: | @@ -139,3 +131,8 @@ jobs: --teardown \ --run-on ${{ matrix.run_on }} \ --all + + - name: debug logs + if: always() + run: | + cat ~/.cache/covalent/covalent_ui.log