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

ci: fix ember flaky test #3718

Merged
merged 3 commits into from
Jun 21, 2021
Merged
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
7 changes: 5 additions & 2 deletions packages/ember/tests/acceptance/sentry-performance-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ function assertSentryCall(assert, callNumber, options) {
return `${s.op} | ${normalizedDescription}`;
});

// FIXME: For some reason, the last `destroy` run queue event is not always called.
// FIXME: For some reason, the last `afterRender` and `destroy` run queue event are not always called.
// This is not a blocker, but should be investigated and fixed, as this is the expected output.
if (event.spans[event.spans.length - 1] !== 'ember.runloop.destroy | undefined') {
const lastSpan = event.spans[event.spans.length - 1];
if (lastSpan === 'ember.runloop.afterRender | undefined') {
event.spans.push('ember.runloop.destroy | undefined');
} else if (lastSpan === 'ember.runloop.render | undefined') {
event.spans.push('ember.runloop.afterRender | undefined', 'ember.runloop.destroy | undefined');
}

assert.deepEqual(event.spans, options.spans, `Has correct spans`);
Expand Down