-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2645: Optimize Hydra eval r=rvl a=rvl ### Issue Number ADP-921 ### Overview - Copies the fix from IntersectMBO/cardano-node#2315 to reduce maximum memory usage of cardano-wallet evaluations. - The release jobset needed to be completely rearranged for the above fix. - Change the hydra "required" job constituents to be a list of string job names (instead of the actual derivations). This is supposed to make the aggregate build step quicker. - Add a github action to record build time metrics on a separate git branch. - Fix a windows release build job filename - Enable pretty-simple in `.ghci` config and nix-shell tweak. ### Comments - [Jobset link](https://hydra.iohk.io/jobset/Cardano/cardano-wallet-pr-2645) Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
- Loading branch information
Showing
15 changed files
with
387 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Stats | ||
|
||
on: | ||
status: | ||
push: | ||
branches: | ||
- master | ||
- rvl/adp-921/optimize-hydra-eval | ||
|
||
jobs: | ||
stats: | ||
env: | ||
branch: ci-stats | ||
if: ${{ (github.ref == 'refs/heads/master' && (github.event.state == 'success' || github.event.state == 'failure') && github.event.context == 'ci/hydra-build:required') || github.ref == 'refs/heads/rvl/adp-921/optimize-hydra-eval' }} | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: '❄ Wait for Hydra build' | ||
uses: rvl/hydra-build-products-action@master | ||
id: hydra | ||
with: | ||
hydra: https://hydra.iohk.io | ||
statusName: ci/hydra-eval | ||
jobs: required | ||
requiredJob: required | ||
project: Cardano | ||
jobset: cardano-wallet | ||
badge: "${{ github.event_name == 'status' && 'yes' || 'no' }}" | ||
|
||
- name: '📥 Checkout Code' | ||
uses: actions/checkout@v2 | ||
|
||
- name: '📥 Checkout Stats' | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ env.branch }} | ||
fetch-depth: 1 | ||
path: _build | ||
|
||
- name: '📘 Publish Stats' | ||
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rvl/adp-921/optimize-hydra-eval' }} | ||
working-directory: _build | ||
run: | | ||
echo '${{ steps.hydra.outputs.evaluation }}' > eval.json | ||
echo '${{ steps.hydra.outputs.builds }}' > builds.json | ||
echo '${{ steps.hydra.outputs.timings }}' > timings.json | ||
../scripts/gh/update-stats.sh '${{ env.branch}}' eval.json builds.json timings.json | ||
- name: '📛 Update Badge' | ||
if: ${{ github.event_name == 'status' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/rvl/adp-921/optimize-hydra-eval') }} | ||
working-directory: _build | ||
run: | | ||
../scripts/gh/update-badge.sh '${{ env.branch}}' <(echo '${{ steps.hydra.outputs.badge }}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.