Skip to content

fix: adds request_spoc_or_image_ads to fix deserialization error - #7663

Merged
thesuzerain merged 7 commits into
mainfrom
AC-221-adds-request_spoc_or_image_ads
Oct 16, 2026
Merged

thesuzerain merged 7 commits into
mainfrom
AC-221-adds-request_spoc_or_image_ads

Conversation

@thesuzerain

@thesuzerain thesuzerain commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

// Use staging client, because this does not use a mock placement_id.
let client = staging_client();

// Note: this particular return is due to a bug with `newtab_stories_1`- it returns 3 ads, but only two of which are spoc.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Originally I had a part of this test that checked there were two ads for request_spoc_ads for the same placement, but that failed, making me think that this is somewhat stochastic on the MARS side of whether a combined set of ads are sent.

If so, this test as it is now will sometimes have false successes, rather than any false failures.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

somewhat stochastic

Confirming the response is dependent on what inventory is registered in the staging ad server. If inventory isn't running then this may not return 3 ads too.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good point. Unless we have a mock placement then for this specific case, we can't make a test that really works for this. In that case, I'll delete this test.

@thesuzerain
thesuzerain marked this pull request as ready for review October 16, 2026 18:33
@thesuzerain
thesuzerain requested a review from a team as a code owner October 16, 2026 18:33
@thesuzerain
thesuzerain requested review from jonesetc and removed request for a team October 16, 2026 18:33
@thesuzerain
thesuzerain added this pull request to the merge queue Oct 16, 2026
Merged via the queue into main with commit cb05b48 Oct 16, 2026
15 of 17 checks passed
@thesuzerain
thesuzerain deleted the AC-221-adds-request_spoc_or_image_ads branch October 16, 2026 19:41
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.

3 participants