Skip to content

Commit

Permalink
A/B test reports (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky authored Sep 9, 2022
1 parent b31b408 commit d748681
Show file tree
Hide file tree
Showing 4 changed files with 450 additions and 100 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,19 @@ jobs:
if [[ "$COMMIT" == *"test-upstream"* || ${{ github.event_name }} == "schedule" ]]
then
export TEST_UPSTREAM="true"
export AB_BASELINE="coiled-upstream-py3.9 coiled-0.1.0-py3.9"
else
export TEST_UPSTREAM="false"
export AB_BASELINE="coiled-latest-py3.9 coiled-0.1.0-py3.9"
fi
# Put TEST_UPSTREAM into $GITHUB_ENV so it can be used in subsequent workflow steps
echo $TEST_UPSTREAM
echo TEST_UPSTREAM=$TEST_UPSTREAM >> $GITHUB_ENV
# Put TEST_UPSTREAM into a file so it can be downloaded in subsequent workflow jobs
# Put env variables into files so it can be downloaded in subsequent workflow jobs
echo $TEST_UPSTREAM > test_upstream.txt
echo $AB_BASELINE > ab_baseline.txt
- name: Build Coiled Software Environment
env:
Expand Down Expand Up @@ -104,6 +107,7 @@ jobs:
latest.yaml
software_name.txt
test_upstream.txt
ab_baseline.txt
runtime:
name: Runtime - ${{ matrix.os }}, Python ${{ matrix.python-version }}, Runtime ${{ matrix.runtime-version }}
Expand Down Expand Up @@ -437,7 +441,7 @@ jobs:
static-site:
needs: process-results
# Always generate the site, as this can be skipped even if an indirect dependency fails (like a test run)
if: always() && github.ref == 'refs/heads/main' && github.repository == 'coiled/coiled-runtime'
if: always()
name: Build static dashboards
runs-on: ubuntu-latest
steps:
Expand All @@ -457,12 +461,24 @@ jobs:
python-version: "3.9"
environment-file: ci/environment-dashboard.yml

- name: Download software environment assets
uses: actions/download-artifact@v3
with:
name: software-environment-py3.9

- name: Generate dashboards
run: |
python dashboard.py
python dashboard.py -d benchmark.db -o static -b $(cat ab_baseline.txt)
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: static-dashboard
path: static

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.7
if: github.ref == 'refs/heads/main' && github.repository == 'coiled/coiled-runtime'
with:
branch: gh-pages
folder: static
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ venv.bak/
# Rope project settings
.ropeproject

# PyCharm project settings
.idea

# mkdocs documentation
/site

Expand Down
1 change: 1 addition & 0 deletions ci/environment-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies:
- dask
- dask-ml
- distributed
- xarray
- xgboost
- pandas
- tabulate
Loading

0 comments on commit d748681

Please sign in to comment.