feat(repo): ignore macos timings for nightly duration report (#16454)
This commit is contained in:
parent
b3a8ac3cb8
commit
4d5cc73c9b
9
.github/workflows/e2e-matrix.yml
vendored
9
.github/workflows/e2e-matrix.yml
vendored
@ -525,10 +525,12 @@ jobs:
|
|||||||
yarn: 0,
|
yarn: 0,
|
||||||
pnpm: 0
|
pnpm: 0
|
||||||
};
|
};
|
||||||
|
const macosProjects = ['e2e-detox', 'e2e-expo', 'e2e-react-native'];
|
||||||
combined.forEach((matrix) => {
|
combined.forEach((matrix) => {
|
||||||
if (matrix.os_name === 'Linux' && matrix.node_version === 18) {
|
if (matrix.os_name === 'Linux' && matrix.node_version === 18) {
|
||||||
pmReport[matrix.package_manager] += matrix.duration;
|
pmReport[matrix.package_manager] += matrix.duration;
|
||||||
}
|
}
|
||||||
|
if (matrix.os_name === 'Linux' || macosProjects.includes(matrix.project)) {
|
||||||
if (timeReport[matrix.project]) {
|
if (timeReport[matrix.project]) {
|
||||||
if (matrix.duration > timeReport[matrix.project].max) {
|
if (matrix.duration > timeReport[matrix.project].max) {
|
||||||
timeReport[matrix.project].max = matrix.duration;
|
timeReport[matrix.project].max = matrix.duration;
|
||||||
@ -550,6 +552,7 @@ jobs:
|
|||||||
maxEnv: `${matrix.os_name}, ${matrix.package_manager}`,
|
maxEnv: `${matrix.os_name}, ${matrix.package_manager}`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// project time report
|
// project time report
|
||||||
@ -580,6 +583,9 @@ jobs:
|
|||||||
resultPkg += `\`\`\``;
|
resultPkg += `\`\`\``;
|
||||||
core.setOutput('SLACK_PROJ_DURATION', trimSpace(resultPkg));
|
core.setOutput('SLACK_PROJ_DURATION', trimSpace(resultPkg));
|
||||||
|
|
||||||
|
// Print project duration report inline to allow reviewing on manual runs (when no slack message will be sent)
|
||||||
|
console.log(trimSpace(resultPkg));
|
||||||
|
|
||||||
let resultPm = `
|
let resultPm = `
|
||||||
\`\`\`
|
\`\`\`
|
||||||
| PM | Total time |
|
| PM | Total time |
|
||||||
@ -590,6 +596,9 @@ jobs:
|
|||||||
resultPm += `\`\`\``;
|
resultPm += `\`\`\``;
|
||||||
core.setOutput('SLACK_PM_DURATION', trimSpace(resultPm));
|
core.setOutput('SLACK_PM_DURATION', trimSpace(resultPm));
|
||||||
|
|
||||||
|
// Print package manager duration report inline to allow reviewing on manual runs (when no slack message will be sent)
|
||||||
|
console.log(trimSpace(resultPm));
|
||||||
|
|
||||||
report-failure:
|
report-failure:
|
||||||
if: ${{ failure() && github.repository_owner == 'nrwl' && github.event_name != 'workflow_dispatch' }}
|
if: ${{ failure() && github.repository_owner == 'nrwl' && github.event_name != 'workflow_dispatch' }}
|
||||||
needs: process-result
|
needs: process-result
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user