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

Flaky test: CMS.Views.Metadata.VideoList #32690

Open
1 task done
timmc-edx opened this issue Jul 7, 2023 · 14 comments
Open
1 task done

Flaky test: CMS.Views.Metadata.VideoList #32690

timmc-edx opened this issue Jul 7, 2023 · 14 comments
Assignees

Comments

@timmc-edx
Copy link
Contributor

timmc-edx commented Jul 7, 2023

A/C:

Details:

We've seen the following transient failure in the js-tests CI check several times today:

 TOTAL: 1 FAILED, 788 SUCCESS


1) Initialize
     CMS.Views.Metadata.VideoList
     Expected 'click.delegateEventsview1622' to equal 'input'.
@http://localhost:9876/base/js/spec/video/transcripts/videolist_spec.js?246bc1162924d294473de293d23bc3161c083dec:9:7951
then/</</<@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3366:30
fire@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3187:11
fireWith@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3317:7     Expected '.action-secondary' to equal '.videolist-settings-item input'.
@http://localhost:9876/base/js/spec/video/transcripts/videolist_spec.js?246bc1162924d294473de293d23bc3161c083dec:9:8027
then/</</<@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3366:30
fire@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3187:11
fireWith@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3317:7

Failing line:

expect(callArgs[1]).toEqual('.videolist-settings-item input');

@timmc-edx
Copy link
Contributor Author

Another recent run failed on the Render test instead of Initialize:

 1) is rendered without opened extra videos bar
     CMS.Views.Metadata.VideoList Render
     Expected spy closeExtraVideosBar to have been called.
@http://localhost:9876/base/js/spec/video/transcripts/videolist_spec.js?246bc1162924d294473de293d23bc3161c083dec:9:12828
then/</</<@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3366:30
fire@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3187:11
fireWith@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3317:7

@davidjoy davidjoy moved this to Prioritized in Arch-BOM Jul 10, 2023
@robrap
Copy link
Contributor

robrap commented Jul 10, 2023

robrap added a commit that referenced this issue Jul 10, 2023
The JS tests for CMS.Views.Metadata.VideoList are
flaky and failing, often on Initialize, so the entire
file is being removed.

More details on the flakiness can be found here:
#32690

Private ticket for fixing:
https://2u-internal.atlassian.net/browse/CR-5904
@robrap
Copy link
Contributor

robrap commented Jul 10, 2023

The removal is in this PR: #32697

robrap added a commit that referenced this issue Jul 10, 2023
The JS tests for CMS.Views.Metadata.VideoList are
flaky and failing, often on Initialize, so the entire
file is being removed.

More details on the flakiness can be found here:
#32690

Private ticket for fixing:
https://2u-internal.atlassian.net/browse/CR-5904
@robrap
Copy link
Contributor

robrap commented Jul 11, 2023

Notes:

@kdmccormick
Copy link
Member

@robrap @timmc-edx Jansen had two follow-up fixes to #32592:

Both fixes involved adding back in CSS that'd accidentally been removed. The flaky error message, "is rendered without opened extra videos bar", sounds to me like something that could happen if CSS is missing.

My optimistic hypothesis is that the test failures were happening on branches which didn't contain both of Jansen's fixes. To test that, I've opened #32719 to see if we can get a green build.

@robrap
Copy link
Contributor

robrap commented Jul 11, 2023

@kdmccormick: I'm pretty sure the test was flaky on branches that did not change commits between a failure and passing. I re-ran the tests myself on one of the failed PRs.

UPDATE:

See:

Both seem to be for: master b528a27

@kdmccormick
Copy link
Member

I'm pretty sure the test was flaky on branches that did not change commits between a failure and passing

Of course, unless I am misunderstanding you, that's what makes it "flaky", right?

I was thinking that my PR, before Jansen's fixes, could have caused the test to become flaky (ie, a true-negative when it fails, and a false-postive when it passes).

That said, the build you linked has both of Jansen's commits, so the theory is bunk.

@kdmccormick
Copy link
Member

@robrap It looks like first failing build you linked is on a branch that does not include my PR at all : https://github.com/openedx/edx-platform/commits/1db8c9793fa9ff4b58a8710b25a98832acc1880f

Does anyone know whether edx-platform JS tests are run on HEAD or merge(HEAD, master)? In other words, are they run directly against the PR's branch, or are they run against a merge commit between the PR's branch and master?

@robrap
Copy link
Contributor

robrap commented Jul 11, 2023

Sorry @kdmccormick. I misunderstood and thought you were questioning whether it was actually flaky.

I don’t know the answer to your question. However, we do use these failures to stop our deployments. Also, I feel like I’ve gotten workflow failures after merging, even if for some flaky reason. But these are just anecdotes.

@jmbowman
Copy link
Contributor

@robrap With the flaky tests removed, can this issue be closed now since we have a separate (although 2U-private) issue for fixing them?

@kdmccormick
Copy link
Member

Works for me, but can someone link my proposed re-merge in the private issue?

@robrap
Copy link
Contributor

robrap commented Jul 12, 2023

Yes. I will close the private ticket as well, since the test has been remerged. We'll need to reopen it if it (and maybe this ticket) if it continues to be flaky.

Also, I'll copy the revert PR to the private ticket.

@robrap robrap closed this as completed Jul 12, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Arch-BOM Jul 12, 2023
@robrap
Copy link
Contributor

robrap commented Jul 12, 2023

[inform] Private ticket for fixing that has since been closed: https://2u-internal.atlassian.net/browse/CR-5904

@timmc-edx
Copy link
Contributor Author

This occurred again in https://github.com/openedx/edx-platform/actions/runs/5736482000/job/15546160686:


1) Initialize
     CMS.Views.Metadata.VideoList
     Expected 'click.delegateEventsview1775' to equal 'input'.
@http://localhost:9876/base/js/spec/video/transcripts/videolist_spec.js?246bc1162924d294473de293d23bc3161c083dec:9:7951
then/</</<@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3366:30
fire@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3187:11
fireWith@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3317:7     Expected '.action-secondary' to equal '.videolist-settings-item input'.
@http://localhost:9876/base/js/spec/video/transcripts/videolist_spec.js?246bc1162924d294473de293d23bc3161c083dec:9:8027
then/</</<@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3366:30
fire@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3187:11
fireWith@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3317:7
2) is rendered without opened extra videos bar
     CMS.Views.Metadata.VideoList Render
     Expected spy closeExtraVideosBar to have been called.
@http://localhost:9876/base/js/spec/video/transcripts/videolist_spec.js?246bc1162924d294473de293d23bc3161c083dec:9:12828
then/</</<@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3366:30
fire@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3187:11
fireWith@http://localhost:9876/base/common/js/vendor/jquery.js?26e6b63b81813d8ad942c90d369df2673602b812:3317:7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants