-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Randomize pbjs global name when testing #1787
Randomize pbjs global name when testing #1787
Conversation
Causes tests that hard-code global name to break.
The tests failed on this PR. I restarted the job to see if it will pass or not. If it doesn't pass again please rebase off master. |
The tests passed when I opened the PR and are passing now. No idea why the runs in the middle failed. |
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.
LGTM
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.
LGTM
This reverts commit f9cb0dd.
* Revert "Postbid bugfix (#1844)" This reverts commit 2e7783a. * Revert "Populate adtypes array (#1862)" This reverts commit 214ba19. * Revert "Pass bidderRequestId parameter in Adform adapter (#1888)" This reverts commit 59800f4. * Revert "Add Arteebee bidder adapter (#1849)" This reverts commit 18fe42d. * Revert "fix linting errors for trailing spaces (#1889)" This reverts commit d41287a. * Revert "Randomize pbjs global name when testing (#1787)" This reverts commit f9cb0dd.
To note - this PR was reverted in lieu of some issues we started to encounter for the build process after this was originally merged. |
Can you guys share any more info about the build issues that came up post-merge? Happy to look at improving this PR. |
It put the build always in test mode. So production build wouldn't be pbjs variable. |
Interesting. |
I see. No the issue was when running |
* Fix test that hard-coded pbjs global. * Randomize pbjs global name when testing. Causes tests that hard-code global name to break.
* Revert "Postbid bugfix (prebid#1844)" This reverts commit 2e7783a. * Revert "Populate adtypes array (prebid#1862)" This reverts commit 214ba19. * Revert "Pass bidderRequestId parameter in Adform adapter (prebid#1888)" This reverts commit 59800f4. * Revert "Add Arteebee bidder adapter (prebid#1849)" This reverts commit 18fe42d. * Revert "fix linting errors for trailing spaces (prebid#1889)" This reverts commit d41287a. * Revert "Randomize pbjs global name when testing (prebid#1787)" This reverts commit f9cb0dd.
Type of change
Description of change
It seems that adapter tests routinely hard-code
pbjs
instead of using$$PREBID_GLOBAL$$
. I suppose things will change with prebid-1.0, but meanwhile this change forces those tests to break by randomizing the global name when testing.There is probably a cleaner way to do this, but I also didn't want to do a bigger refactor given the plans to move away from using
$$PREBID_GLOBAL$$
.References
#1786
#1666