Skip to content

Commit

Permalink
chore: focus failed and flaky tests, no links in title (#24269)
Browse files Browse the repository at this point in the history
Links don't work in the check titles:

<img width="503" alt="image"
src="https://github.com/microsoft/playwright/assets/9798949/6ad8f3d3-b96f-4f62-9d4e-cc3d473fd97a">
  • Loading branch information
yury-s committed Jul 18, 2023
1 parent 5ff1fad commit 91346c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/create_test_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
return;
}
const reportDir = 'run-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}-${{ github.sha }}';
const reportUrl = `https://mspwblobreport.z1.web.core.windows.net/${reportDir}/index.html`;
const reportUrl = `https://mspwblobreport.z1.web.core.windows.net/${reportDir}/index.html#?q=s%3Afailed%20s%3Aflaky`;
core.notice('Report url: ' + reportUrl);
const mergeWorkflowUrl = `${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
const reportMd = await fs.promises.readFile('report.md', 'utf8');
Expand All @@ -103,7 +103,7 @@ jobs:
body: [
`### [Test results](${reportUrl}) for "${{ github.event.workflow_run.name }}"`,
reportMd,
'---',
'',
`Merge [workflow run](${mergeWorkflowUrl}).`
].join('\n'),
});
Expand All @@ -117,11 +117,11 @@ jobs:
conclusion: 'success',
details_url: reportUrl,
output: {
title: '[Test results](${reportUrl}) for "${{ github.event.workflow_run.name }}"',
title: 'Test results for "${{ github.event.workflow_run.name }}"',
summary: [
reportMd,
'---',
`Merge [workflow run](${mergeWorkflowUrl}).`
`Full [HTML report](${reportUrl}). Merge [workflow run](${mergeWorkflowUrl}).`
].join('\n'),
}
});

0 comments on commit 91346c7

Please sign in to comment.