1
1
name : Lint Checks
2
2
3
3
on :
4
+ merge_group :
4
5
push :
5
6
branches : [main]
6
7
66
67
python-version : ' 3.x'
67
68
68
69
- name : Run DCO check
70
+ if : ${{ github.event.pull_request.user.login != 'dependabot' && github.event_name != 'merge_group' }}
69
71
run : python3 scripts/lint/dco_check.py -b main -v --exclude-pattern '@users\.noreply\.github\.com'
70
72
env :
71
73
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -120,7 +122,7 @@ jobs:
120
122
steps :
121
123
- uses : step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
122
124
with :
123
- egress-policy : audit
125
+ egress-policy : audit
124
126
125
127
- uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
126
128
with :
@@ -141,7 +143,7 @@ jobs:
141
143
TOTAL_SIZE=$(du -sb ./cmd/jaeger/jaeger-linux-amd64 | cut -f1)
142
144
echo "$TOTAL_SIZE" > ./new_jaeger_binary_size.txt
143
145
echo "Total binary size: $TOTAL_SIZE bytes"
144
-
146
+
145
147
- name : Restore previous binary size
146
148
id : cache-binary-size
147
149
uses : actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
@@ -158,7 +160,7 @@ jobs:
158
160
NEW_BINARY_SIZE=$(cat ./new_jaeger_binary_size.txt)
159
161
echo "Previous binary size: $OLD_BINARY_SIZE bytes"
160
162
echo "New binary size: $NEW_BINARY_SIZE bytes"
161
-
163
+
162
164
SIZE_CHANGE=$(( $NEW_BINARY_SIZE - $OLD_BINARY_SIZE ))
163
165
PERCENTAGE_CHANGE=$(( SIZE_CHANGE * 100 / $OLD_BINARY_SIZE ))
164
166
echo "Size change: $PERCENTAGE_CHANGE%"
@@ -168,13 +170,13 @@ jobs:
168
170
else
169
171
echo "✅ binary size change is within acceptable range ($PERCENTAGE_CHANGE%)"
170
172
fi
171
-
173
+
172
174
173
175
- name : Remove previous *_binary_*.txt
174
176
run : |
175
177
rm -rf ./jaeger_binary_size.txt
176
178
mv ./new_jaeger_binary_size.txt ./jaeger_binary_size.txt
177
-
179
+
178
180
- name : Save new jaeger binary size
179
181
if : ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/main') }}
180
182
uses : actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
0 commit comments