Skip to content

Conversation

@osulzhenko
Copy link
Collaborator

@osulzhenko osulzhenko commented Mar 28, 2025

🔧 Type of changes

  • new bid adapter
  • bid adapter update
  • new feature
  • new analytics adapter
  • new module
  • module update
  • bugfix
  • documentation
  • configuration
  • dependency update
  • tech debt (test coverage, refactorings, etc.)

✨ What's the context?

What's the context for the changes?

🧠 Rationale behind the change

Why did you choose to make these changes? Were there any trade-offs you had to consider?

🔎 New Bid Adapter Checklist

  • verify email contact works
  • NO fully dynamic hostnames
  • geographic host parameters are NOT required
  • direct use of HTTP is prohibited - implement an existing Bidder interface that will do all the job
  • if the ORTB is just forwarded to the endpoint, use the generic adapter - define the new adapter as the alias of the generic adapter
  • cover an adapter configuration with an integration test

🧪 Test plan

How do you know the changes are safe to ship to production?

🏎 Quality check

  • Are your changes following our code style guidelines?
  • Are there any breaking changes in your code?
  • Does your test coverage exceed 90%?
  • Are there any erroneous console logs, debuggers or leftover code in your changes?

@osulzhenko osulzhenko added the tests Functional or other tests label Mar 28, 2025
@osulzhenko osulzhenko requested a review from marki1an March 28, 2025 15:53
@osulzhenko osulzhenko self-assigned this Mar 28, 2025
Copy link
Collaborator

@marki1an marki1an left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update tests with the Events object to check if the bid is properly populated
event?t=win&b=${bid.id}

def pbsConfig = ['auction.enforce-random-bid-id': 'true']
def pbsService = pbsServiceFactory.getService(pbsConfig)

and: "Default big request"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: "Default bid request"

and: "BidResponse should contain bid.id equals to generated pr-bid-id"
assert response.seatbid.bid.id.flatten().sort() != [originalBidId]

and: "Bidder request should contain generated pb-bid-id"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
and: "Bidder request should contain generated pb-bid-id"
and: "Bid request should contain generated pb-bid-id"

}

def "PBS should override short bid.id with random uuid when enforce-random-bid-id is enabled"() {
given: "PBS with disabled generate-bid-id"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
given: "PBS with disabled generate-bid-id"
given: "PBS with enabled generate-bid-id"

def pbsConfig = ["auction.enforce-random-bid-id": enforceRandomBidId]
def pbsService = pbsServiceFactory.getService(pbsConfig)

and: "Default big request"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

}

def "PBS shouldn't override long enough bid.id with random uuid when enforce-random-bid-id is enabled"() {
given: "PBS with disabled generate-bid-id"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
given: "PBS with disabled generate-bid-id"
given: "PBS with enabled generate-bid-id"

Comment on lines 678 to 679
// cleanup: "Stop and remove pbs container"
// pbsServiceFactory.removeContainer(pbsConfig)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@osulzhenko osulzhenko requested a review from marki1an March 31, 2025 12:53
@osulzhenko osulzhenko merged commit a418fc5 into enforce-random-bid-id Mar 31, 2025
1 check passed
@osulzhenko osulzhenko deleted the functional-tests/enforce-random-bid-id branch March 31, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Functional or other tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants