mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
feat(ci): resource profiler
This commit is contained in:
parent
e4fe99987d
commit
87cdd5bbcc
11 changed files with 889 additions and 42 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -333,6 +333,18 @@ jobs:
|
|||
restore-keys: |
|
||||
ci-timings-baseline-
|
||||
|
||||
- name: Download resource profiles
|
||||
# Advisory — if no profiles were uploaded (e.g. sub-workflows
|
||||
# didn't run), this step finds nothing and the report still works.
|
||||
# NOTE: no merge-multiple — every artifact contains a file named
|
||||
# resource-profile.json, so merging would clobber all but one.
|
||||
# Per-artifact subdirs are exactly what load_resource_profiles walks.
|
||||
continue-on-error: true
|
||||
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
|
||||
with:
|
||||
pattern: resource-profile-*
|
||||
path: resource-profiles
|
||||
|
||||
- name: Collect timings and generate report
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
|
|
@ -341,7 +353,8 @@ jobs:
|
|||
--baseline ci-timings-baseline.json \
|
||||
--output ci-timings-report.html \
|
||||
--json-out ci-timings.json \
|
||||
--summary-out ci-timings-summary.md
|
||||
--summary-out ci-timings-summary.md \
|
||||
--profiles-dir resource-profiles
|
||||
|
||||
- name: Upload HTML report
|
||||
# Advisory report — artifact-service blips must not fail the job.
|
||||
|
|
@ -361,6 +374,7 @@ jobs:
|
|||
python3 scripts/ci/timings_report.py \
|
||||
--from-json ci-timings.json \
|
||||
--baseline ci-timings-baseline.json \
|
||||
--profiles-dir resource-profiles \
|
||||
--review-status-out review-status.json \
|
||||
--review-status-only
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue