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

Datablocks Bid Adapter : update bid adapter and add 5.0 compliance #6765

Merged
merged 18 commits into from
Jun 16, 2021
Merged

Datablocks Bid Adapter : update bid adapter and add 5.0 compliance #6765

merged 18 commits into from
Jun 16, 2021

Conversation

htang555
Copy link
Contributor

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Does this change affect user-facing APIs or examples documented on http://prebid.org?
  • Other

Description of change

As per @ChrisHuie in #6696 (comment)

  • test parameters for validating bids
{
  bidder: '<bidder name>',
  params: {
    // ...
  }
}

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

@ChrisHuie
Copy link
Collaborator

Working to figure out how to kick off the CircleCI tests on this pr.

@ChrisHuie ChrisHuie self-assigned this May 14, 2021
@ChrisHuie ChrisHuie requested a review from aleksatr May 14, 2021 17:26
@ChrisHuie
Copy link
Collaborator

@htang555 could you give me edit access to this pr to try and manually kick off the tests

@htang555
Copy link
Contributor Author

@ChrisHuie just granted you write access to the repo.

@ChrisHuie
Copy link
Collaborator

@htang555 I tried to manually kick-off the CircleCi tests but that didn't seem to work. I think merging upstream, in this case, should kick off the CircleCi tests. This is a pretty unique situation so sorry for the back and forth to get this working with our testing setup.

@patmmccann
Copy link
Collaborator

Please make sure to add support for meta.advertiserDomains

@ChrisHuie
Copy link
Collaborator

I have a follow-up call with CircleCI on this specific pr because everything they told me and I have tried hasn't worked and want to get to the bottom of why this is not being ran through CircleCI.

@htang555
Copy link
Contributor Author

Can we just have this merged manually and troubleshoot the circleCI issue later? The delay in this is due to your automation/devops whereas the actual tests run fine when done manually.

@ChrisHuie
Copy link
Collaborator

@htang555 so the CircleCI is our end2end and integration tests on multiple browsers so usually passing unit tests is only a piece of the puzzle. Let me see if I can create a new pr that kicks off the tests

@ChrisHuie ChrisHuie closed this May 27, 2021
@ChrisHuie ChrisHuie reopened this May 27, 2021
@ChrisHuie
Copy link
Collaborator

ChrisHuie commented May 27, 2021

@htang555 I tried to reopen this pr and still isn't working. Talking to CircleCI today to get this moving so we can have this in next weeks release. Usually this problem has to do with following the fork of prebid in circleci but not the main project. However, never not been able to kick off tests myself.

@htang555
Copy link
Contributor Author

Hey @ChrisHuie any more progress on this? This delay is really affecting us.

@ChrisHuie
Copy link
Collaborator

ChrisHuie commented Jun 1, 2021

@htang555 I managed to kick off the tests for this pr but had to essentially clone it and tie it to a pr from me. This has to do with accepting forks as prs so going into the settings as soon as I can get admin access for our CircleCI to solve this going forward. Looks like some tests are not passing though. The tests that aren't related to yours also should hopefully resolve themselves because at first glance this looks like a timing issue.

@ChrisHuie ChrisHuie requested a review from aleksatr June 1, 2021 15:49
@aleksatr
Copy link
Contributor

aleksatr commented Jun 2, 2021

@ChrisHuie I approved the changes on the previous PR, as well as on this one, but I'm not sure why CircleCI is failing, I restarted the workflow several times, but it keeps failing.

@ChrisHuie
Copy link
Collaborator

ChrisHuie commented Jun 2, 2021

@aleksatr Yeah. These were the same errors I was getting when we merged it. Later I can dig into the code and see if anything jumps out in this pr at me.

@jmayor
Copy link
Contributor

jmayor commented Jun 8, 2021

@ChrisHuie Do you have an ETA on when our changes will be merged into master?

Looking at the circleci tests I do see this error:

DatablocksAdapter
getUserSyncs
✗ Should return array of syncs
TypeError: Object doesn't support property or method 'fromEntries'
at addParams (webpack:///modules/datablocksBidAdapter.js:459:7 <- test/test_index.js:49157:7)
at Anonymous function (webpack:///modules/datablocksBidAdapter.js:450:11 <- test/test_index.js:49147:11)
at Array.prototype.forEach (native code)
at getUserSyncs (webpack:///modules/datablocksBidAdapter.js:448:7 <- test/test_index.js:49145:7)
at Anonymous function (webpack:///test/spec/modules/datablocksBidAdapter_spec.js:427:7 <- test/test_index.js:219233:7)

Is this what is holding things up? Line 459 is valid code - I am not sure why it would be failing
I can adjust the code if need be

@ChrisHuie
Copy link
Collaborator

ChrisHuie commented Jun 9, 2021

@jmayor yes the failing tests are currently holding this up. I can't merge it in until it passes all current testing. This pr doesn't seem to be passing that unit test and also appears to be adding latency to the integration testing because it is impacting several other tests so not sure this is working as intended.

@jmayor
Copy link
Contributor

jmayor commented Jun 9, 2021

Ok - I re-wrote that section of the code. It was using some ES6 code that I guess there is no polyfill for
Lets see if it passes

@jmayor
Copy link
Contributor

jmayor commented Jun 9, 2021

@ChrisHuie

Chris - looks like all the tests finally passed!

They were all related to IE11 - I guess there is no polyfill for some of the Object functions in JS

modules/datablocksBidAdapter.js Outdated Show resolved Hide resolved
modules/datablocksBidAdapter.js Outdated Show resolved Hide resolved
@ChrisHuie
Copy link
Collaborator

Looks like we are getting closer! The datablocks errors seem to be cleared up but still looks like we are getting errors in a couple other adapters which I am assuming has to deal with storage manager interaction or sinon itself.

@htang555
Copy link
Contributor Author

Thanks @ChrisHuie and @patmmccann for your guidance. Are the additional CircleCI failures anything we can handle on our end or do you guys have a handle on it?

@ChrisHuie
Copy link
Collaborator

@htang555 and @jmayor this looks to be good to go now. Thanks for working with us to get this pr passing :) Merging it now

@ChrisHuie ChrisHuie changed the title Datablocks Adapter Resubmission Datablocks Bid Adapter : add new bid adapter Jun 16, 2021
@ChrisHuie ChrisHuie changed the title Datablocks Bid Adapter : add new bid adapter Datablocks Bid Adapter : update bid adapter and add 5.0 compliance Jun 16, 2021
@ChrisHuie ChrisHuie merged commit 12f4610 into prebid:master Jun 16, 2021
AlvaroBrey pushed a commit to Parrable/Prebid.js that referenced this pull request Jun 17, 2021
* master: (103 commits)
  Opt Out Bid Adapter: add new bid adapter (prebid#7029)
  Dependencies/Testing: update dependencies, npm audit fixes, and bump Browserstack versions (prebid#6828)
  5.2.0-pre
  Prebid.js 5.1.0
  IX Bid Adapter :  reading video `placement` property (prebid#6994)
  changing PBS debug flag to boolean (prebid#7035)
  Ats analytics set sampling rate to 1 percent (prebid#7010)
  Update sspBC bid adapter (v5.0) (prebid#7002)
  Gamma Bid Adapter: support adomain for Prebid 5.0 (prebid#7033)
  Datablocks Bid Adapter : update bid adapter and add 5.0 compliance (prebid#6765)
  Add microadBidAdapter (prebid#7007)
  Adf Bid Adapter: add adform alias (prebid#7009)
  Fixed FPD issue after for Prebid.js 5.0 (prebid#7031)
  Zeta Ssp Bid Adapter: provide devicetype (prebid#7026)
  make sizes a variable as the code expects (prebid#7024)
  VidazooBidAdapter: support for response meta.advertiserDomains (v5.0) (prebid#7022)
  add uid2 to OpenX Bid Adapter (prebid#7015)
  Zeta Ssp Bid Adapter: page and domain fields from config (prebid#7019)
  tappx Bid Adapter: fix wrong requests with undefined params (prebid#7021)
  RealVu Analytics Adapter: remove "tablet" from device types (prebid#7016)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants