Skip to content

Conversation

@y9mo
Copy link

@y9mo y9mo commented Dec 3, 2025

Note

Adds User.consent field per OpenRTB 2.6, fixes test errors.Is argument order, and updates CI runner/matrix and golangci-lint action.

  • Library:
    • Add User.consent to openrtb.User per OpenRTB 2.6.
  • Tests:
    • Fix errors.Is argument order in audio_test.go, bid_test.go, bidrequest_test.go, bidresponse_test.go, impression_test.go, seatbid_test.go, video_test.go.
  • CI:
    • Update runner to gha-rtg-adikteev-runners-large-amd64 and expand Go matrix to 1.18.x, 1.19.x, 1.25.x in .github/workflows/test.yml.
    • Pin linter Go version to 1.19.x and bump golangci/golangci-lint-action to v6.

Written by Cursor Bugbot for commit 01fec53. This will update automatically on new commits. Configure here.

@y9mo y9mo requested review from a team, Baumanar, SynRJ, Copilot, florianberthier and kinnou02 and removed request for a team December 3, 2025 08:15
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds the Consent field to the User struct to comply with OpenRTB 2.6 specification requirements for GDPR compliance. The field stores the Transparency and Consent Framework's Consent String data structure when GDPR regulations apply.

  • Adds Consent string field to the User struct with proper JSON serialization tag
  • Includes comprehensive documentation explaining the field's purpose in GDPR context
  • Maintains proper field ordering with Ext field remaining last

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 20

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

strategy:
matrix:
go-version: [1.18.x, 1.19.x]
go-version: [1.18.x, 1.19.x, 1.25.x]
Copy link

Choose a reason for hiding this comment

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

Bug: Organization-specific CI runner accidentally committed in unrelated PR

The PR description indicates this change adds the Consent field to OpenRTB, but the CI workflow was modified to use gha-rtg-adikteev-runners (an organization-specific self-hosted runner) and includes 1.25.x in the Go version matrix. These changes appear unintentionally included since they're unrelated to the stated PR purpose and would cause CI failures for contributors without access to the custom runner infrastructure.

Fix in Cursor Fix in Web

@y9mo y9mo force-pushed the rico/ARP-8163-consent-from-proper-field branch from 87805c6 to 21ed812 Compare December 3, 2025 08:23
Copilot AI review requested due to automatic review settings December 3, 2025 08:23
@y9mo y9mo force-pushed the rico/ARP-8163-consent-from-proper-field branch from 21ed812 to 9090543 Compare December 3, 2025 08:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

strategy:
matrix:
go-version: [1.18.x, 1.19.x]
go-version: [1.18.x, 1.19.x, 1.25.x]
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The Go version matrix jumps from 1.19.x directly to 1.25.x, skipping versions 1.20.x through 1.24.x. This creates a testing gap for intermediate Go versions. Consider including 1.20.x through 1.24.x in the matrix, or at minimum testing with the latest stable version to ensure compatibility across the version range.

Suggested change
go-version: [1.18.x, 1.19.x, 1.25.x]
go-version: [1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x, 1.23.x, 1.24.x, 1.25.x]

Copilot uses AI. Check for mistakes.
with:
go-version: 1.x
cache: true
go-version: 1.19.x
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The golangci-lint job's Go version was changed from 1.x (which always uses the latest stable Go version) to a pinned version 1.19.x. This is inconsistent with adding Go 1.25.x to the test matrix. If the project now supports Go 1.25.x, the linter should run on a compatible or newer version. Consider using 1.x to always use the latest Go version, or update to at least 1.25.x to match the highest version being tested.

Suggested change
go-version: 1.19.x
go-version: 1.25.x

Copilot uses AI. Check for mistakes.
CustomData string `json:"customdata,omitempty"` // Optional feature to pass bidder data that was set in the exchange's cookie. The string must be in base85 cookie safe characters and be in any format. Proper JSON encoding must be used to include "escaped" quotation marks.
Geo *Geo `json:"geo,omitempty"`
Data []Data `json:"data,omitempty"`
Consent string `json:"consent,omitempty"` // When GDPR regulations are in effect this attribute contains the Transparency and Consent Framework's Consent String data structure.
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

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

The new Consent field lacks test coverage. Consider adding a test case that includes the consent field in one of the existing JSON fixtures (e.g., testdata/breq.banner.json or testdata/breq.exp.json) and verify it's correctly serialized/deserialized. This is particularly important for GDPR compliance features to ensure the field is properly handled.

Copilot uses AI. Check for mistakes.
@y9mo y9mo force-pushed the rico/ARP-8163-consent-from-proper-field branch 2 times, most recently from 0375f03 to 18c8e22 Compare December 3, 2025 08:33
Copilot AI review requested due to automatic review settings December 3, 2025 08:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@y9mo y9mo force-pushed the rico/ARP-8163-consent-from-proper-field branch from 18c8e22 to 01fec53 Compare December 3, 2025 09:03
@y9mo y9mo merged commit cd7847c into main Dec 3, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants