-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Unmute tests for amp-experiment variant replacement. #20233
Conversation
From a testing point of view, removing |
'The value passed to VARIANT() is not a valid experiment name:' + | ||
experiment); | ||
if (variant === undefined) { | ||
user().error(TAG, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be happening here? Or should we replace rethrowAsync
upstream with the user().log()
? E.g. the logic that says "ignore errors and return empty string" is already part of this system. This duplicates it slightly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree this is a duplicates. will need a root fix. was plan to have this as a temporary work around to unblock your PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to you - you could allow my PR w/o unmuting these tests :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will let your PR go if you can confirm the tests pass locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. Can confirm that it works with patches.
@rsimha Not sure if this is the best forum for
With something like this, the Overall, IMHO, I prefer |
That was really useful, @dvoytenko! Agree, let's kick off a separate discussion. |
let's discuss the need of rethrowAsync here #20252 |
From the discussions in #20252 it sounds like @torch2424 will be working on this now? Will that be in this PR or will that be a different one? |
@mrjoro this PR is not needed. closing |
The root cause of those tests failures are actually the use of rethrowAsync: https://github.com/ampproject/amphtml/blob/master/src/service/url-expander/expander.js#L327
We might consider remove all the usage of rethrowAsync in code base. @rsimha what you think?
This PR is to unblock #20221
also part of #16916