Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Jan 3, 2025
1 parent a6335f6 commit 90955a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
run: |
WHEEL_SIZE=$(ls -l py-polars/polars/polars*.so | awk '{ print $5 }')
echo "WHEEL_SIZE=$WHEEL_SIZE" >> $GITHUB_ENV
- name: Wheel size txt
if: github.ref_name == 'main'
run: |
echo "$GITHUB_RUN_ID $WHEEL_SIZE" > wheel_sizes.txt
- name: Upload wheel sizes artifact (main only)
Expand Down Expand Up @@ -116,7 +120,7 @@ jobs:
const previousSizeMB = previousSize !== 'Unknown' ? (previousSize / 1024 / 1024).toFixed(4) : 'Unknown';
const currentSizeMB = currentSize !== 'Unknown' ? (currentSize / 1024 / 1024).toFixed(4) : 'Unknown';
let commentBody = `The uncompressed binary size was **${previousSizeMB} MB**.\nThe uncompressed binary size after this PR is **${currentSizeMB} MB**.`;
let commentBody = `The previous uncompressed lib size was **${previousSizeMB} MB**.\nThe current uncompressed lib size after this PR is **${currentSizeMB} MB**.`;
// Calculate percentage increase if both sizes are available
if (previousSize !== 'Unknown' && currentSize !== '') {
Expand All @@ -132,7 +136,7 @@ jobs:
// Look for an existing comment
const existingComment = comments.find(comment =>
comment.body.includes('### :gear: Wheel Size Comparison')
comment.body.includes('The previous uncompressed lib size was')
);
if (existingComment) {
Expand Down

0 comments on commit 90955a8

Please sign in to comment.