diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2026-01-22 15:01:38 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2026-01-22 15:01:38 +0900 |
| commit | 1adcb03b93823886007f7f0ad09cbb517b90679b (patch) | |
| tree | 87f501e46fad01fd6a6cae254929e8a713a8adb1 | |
| parent | Update report-backend-memory.yml (diff) | |
| download | misskey-1adcb03b93823886007f7f0ad09cbb517b90679b.tar.gz misskey-1adcb03b93823886007f7f0ad09cbb517b90679b.tar.bz2 misskey-1adcb03b93823886007f7f0ad09cbb517b90679b.zip | |
Update report-backend-memory.yml
| -rw-r--r-- | .github/workflows/report-backend-memory.yml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/report-backend-memory.yml b/.github/workflows/report-backend-memory.yml index a668bb27a1..30918f44db 100644 --- a/.github/workflows/report-backend-memory.yml +++ b/.github/workflows/report-backend-memory.yml @@ -98,6 +98,8 @@ jobs: echo "res=$JSON" >> "$GITHUB_OUTPUT" - id: build-comment name: Build memory comment + env: + RES: ${{ steps.compare.outputs.res }} run: | HEADER="## Backend memory usage comparison" FOOTER="[See workflow logs for details](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID})" @@ -107,10 +109,10 @@ jobs: table() { line() { - BASE=$(echo "${{ steps.compare.outputs.res }}" | jq -r ".${1}.${2}.base") - HEAD=$(echo "${{ steps.compare.outputs.res }}" | jq -r ".${1}.${2}.head") - DIFF=$(echo "${{ steps.compare.outputs.res }}" | jq -r ".${1}.${2}.diff") - DIFF_PERCENT=$(echo "${{ steps.compare.outputs.res }}" | jq -r ".${1}.${2}.diff_percent") + BASE=$(echo "$RES" | jq -r ".${1}.${2}.base") + HEAD=$(echo "$RES" | jq -r ".${1}.${2}.head") + DIFF=$(echo "$RES" | jq -r ".${1}.${2}.diff") + DIFF_PERCENT=$(echo "$RES" | jq -r ".${1}.${2}.diff_percent") echo "| ${2} | ${BASE} MB | ${HEAD} MB | ${DIFF} MB (${DIFF_PERCENT}%) |" >> ./output.md } @@ -131,7 +133,7 @@ jobs: echo >> ./output.md # Determine if this is a significant change (more than 5% increase) - if [ "$(echo "${{ steps.compare.outputs.res }}" | jq -r '.afterGc.VmRSS.diff_percent | tonumber > 5')" = "true" ]; then + if [ "$(echo "$RES" | jq -r '.afterGc.VmRSS.diff_percent | tonumber > 5')" = "true" ]; then echo "⚠️ **Warning**: Memory usage has increased by more than 5%. Please verify this is not an unintended change." >> ./output.md echo >> ./output.md fi |