Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jest/helpers] add safeAct helper to try and debug act() #139444

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .buildkite/pipeline-utils/buildkite/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export interface BuildkiteStep {
command: string;
label: string;
parallelism?: number;
concurrency?: number;
concurrency_group?: string;
agents: {
queue: string;
};
Expand Down
18 changes: 0 additions & 18 deletions .buildkite/pipeline-utils/ci-stats/on_complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,4 @@ export async function onComplete() {
const status = result.success ? 'SUCCESS' : 'FAILURE';
console.log('Job Status:', result);
await ciStats.completeBuild(status, process.env.CI_STATS_BUILD_ID);

if (!process.env.GITHUB_PR_NUMBER) {
return;
}

const report = await ciStats.getPrReport(process.env.CI_STATS_BUILD_ID);
if (report?.md) {
buildkite.setMetadata('pr_comment:ci_stats_report:body', report.md);

const annotationType = report?.success ? 'info' : 'error';
buildkite.setAnnotation('ci-stats-report', annotationType, report.md);
}

if (report && !report.success) {
console.log('+++ CI Stats Report');
console.error('Failing build due to CI Stats report. See annotation at top of build.');
process.exit(1);
}
}
Loading