Skip to content

Commit 5a4343d

Browse files
committed
Bla
1 parent 9506bf3 commit 5a4343d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ runs:
4949
${{ inputs.branch }} \
5050
> flaky_tests.json
5151
52+
- name: Dump flaky_tests.json
53+
shell: bash
54+
run: |
55+
echo "flaky_tests.json content:"
56+
cat flaky_tests.json
57+
5258
- name: Post message to ${{ inputs.slack-channel-name }} Slack channel
5359
if: success()
5460
uses: slackapi/[email protected]

find_flaky_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def print_for_slack(occurrences: List[Occurrence], state: AppState):
156156
for ann_path, occrs in items:
157157
nice_path = truncate_left(ann_path, MAX_FILENAME_LENGTH)
158158
count = len(occrs)
159-
content += f"{count}x `{nice_path}`"
159+
content += f"{count}x `{nice_path}` "
160160
occrs.sort(key=lambda o: o.commit.timestamp, reverse=True)
161-
recent_occrs = occrs[:10]
161+
recent_occrs = occrs[:3]
162162
content += " ".join([f"<{occr.check_url}|{i+1}> " for i, occr in enumerate(recent_occrs)])
163163
content += '\\n'
164164

0 commit comments

Comments
 (0)