Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves : 189 write end to end user pipeline #200

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 52 additions & 3 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
description: 'Plots related configuration'
required: True
default: 675053424c9ccbdde21a470a
upload_id:
description: 'ID to upload the website to'
required: False
default: ""

jobs:

Expand Down Expand Up @@ -143,11 +147,11 @@ jobs:
name: benchmark-results-${{matrix.machine}}
path: ${{matrix.reports_path}}

results:
deploy:
runs-on: self-ubuntu-22.04
needs: [benchmark,factory]
name: Handle results and trigger rendering

if: ${{ github.event.inputs.upload_id == '' && github.event.client_payload.upload_id == '' }}
steps:
- uses: actions/checkout@v4
- name: Download results
Expand Down Expand Up @@ -184,4 +188,49 @@ jobs:
labels: new-benchmark
branch: new-benchmark
env:
GITHUB_TOKEN: ${{ secrets.CR_PAT }}
GITHUB_TOKEN: ${{ secrets.CR_PAT }}

user-results:
runs-on: self-ubuntu-22.04
needs: [benchmark,factory]
name: Deploy the website to a specific folder
if: ${{ github.event.inputs.upload_id != '' || github.event.client_payload.upload_id != '' }}
steps:
- uses: actions/checkout@v4
- name: Download results
uses: actions/download-artifact@v4
with:
pattern: benchmark-results-*
path: ./tmp/results/
merge-multiple: false
- name: Create Virtual Environment
run: |
python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
- name: Merge website configs
run: |
source .venv/bin/activate
merge-json-configs -fp "./tmp/**/website_config.json" -o ./tmp/website_config.json -u
- name: Render docs
run: |
source .venv/bin/activate
render-benchmarks --config_file=./tmp/website_config.json
- name: Compile docs
run: |
source .venv/bin/activate
npm install
npm run antora
- name: Upload
run: |
source .venv/bin/activate
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
upload_id=${{ github.event.inputs.upload_id }};
elif [[ "${{ github.event_name}}" == "repository_dispatch" ]]; then
upload_id=${{ github.event.client_payload.upload_id }};
fi
girder-upload --item "./tmp/results/*" --girder_id $upload_id
girder-upload --item "./public/" --girder_id $upload_id
env:
GIRDER_API_KEY: ${{secrets.GIRDER}}

Loading