Problem/Motivation
Due to a random test failure on GitLab CI I ended up looking at the MediaSourceOEmbedVideoTest.php tests. There are links going to http://www.collegehumor.com which is no longer active and redirects to https://signup.dropout.tv/ dropping whatever resource or path was in ULR path. The tests are thus partially invalid.
Proposed resolution
Use something else as disallowed provider and update all collegehumor paths.
There are also still some http URL's, I guess those can be converted to HTTPS.
Remaining tasks
Create MR
Release notes snippet
None
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | 3401764-nr-bot.txt | 85 bytes | needs-review-queue-bot |
| #23 | 3401764-23.patch | 8.47 KB | bramdriesen |
Issue fork drupal-3401764
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3401764-media-mediasourceoembedvideotest-is
changes, plain diff MR !5405
Comments
Comment #2
bramdriesenComment #4
bramdriesenComment #5
bramdriesenLooks like it's used a bit more widespread in the test cases, will make it more general.
Comment #6
bramdriesenComment #7
bramdriesenPexels won't work as it only supports embedding images. Also tried twitch but they dropped oembed support after API V5.
Comment #8
bramdriesenThere we are :) tests are passing again.
Comment #9
smustgrave commentedApplied the MR and searched for collegehumor + college and all references have been replaced.
Comment #10
xjmThe MR is definitely better than what's in HEAD. However, there's still an element of "testing the internet" in there. These are media tests for remote media so I can see where it comes from; however, I wonder if mocked/fixture resources would be preferable. A media subsystem maintainer might be able to give feedback on that point, so tagging and pinging.
Comment #11
bramdriesenValid point @xjm, but I think that's already being worked on in #2964636: Improve oEmbed tests
Comment #12
bramdriesenComment #13
xjmIs this issue a duplicate, then, or just intended as an intermediate fix to reduce random fails?
Comment #14
bramdriesenNot really a duplicate, the issue I referenced is not fixing the fact CollegeHumor is no longer a thing. And that other one is fixing more in dept things. This is indeed an attempt to hopefully fix the random failures of this test, and to replace the site that no longer exists with something that does.
The referenced issue will need a rebase if this gets in, happy to do that as well :)
Comment #15
bramdriesenComment #16
smustgrave commentedThink the main point for me is, this could cause random failures as the site doesn't exist anymore, so if this helps that then I think it's an incremental improvement at least.
Comment #17
xjmOK, that works for me.
Random fails are critical, so bumping priority.
Thanks!
Comment #18
bramdriesenThanks @xjm and @smustgrave! I'll convert that other issue to a MR once this got in and rebase it to include those changes and try to continue that issue from there.
But I agree, mocking like the other issue is trying to achieve is the "end game" :)
Comment #19
xjmComment #22
xjmBased on the above and the presence of the followup, this issue is okay without subsystem maintainer review.
Reviewed closely, and also checked the following to make sure the scope is complete:
Committed to 11.x and 10.2.x. I also tried to backport it to 10.1.x as a test fix, but it did not cherry-pick cleanly (probably on the dictionary). Setting PTBP for a backport version. Thanks!
Comment #23
bramdriesenAdding a patch as it didn't let me create a new issue fork for 10.1.x.
Comment #24
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #25
xjmBot seems confused. I'll close the MR and see if that helps.
Comment #27
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
Comment #28
smustgrave commentedReroll for 10.1 seems good.
Comment #30
xjmCommitted the backport to 10.1.x. Thanks!
Comment #31
bramdriesenMy pleasure 😉