Skip to content

Conversation

@ranadeepsingh
Copy link
Collaborator

@ranadeepsingh ranadeepsingh commented Nov 14, 2025

Related Issues/PRs

Bing Search APIs were retired on August 11, 2025

What changes are proposed in this pull request?

Removing Unittest bing as the existing tests are returning error with 410 status code which indicates the API has been fulled removed.
image

How is this patch tested?

  • I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

  • No. You can skip this section.
  • Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

  • No. You can skip this section.
  • Yes. Make sure you have added samples following below steps.
  1. Find the corresponding markdown file for your new feature in website/docs/documentation folder.
    Make sure you choose the correct class estimators/transformers and namespace.
  2. Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
  3. Make sure the DocTable points to correct API link.
  4. Navigate to website folder, and run yarn run start to make sure the website renders correctly.
  5. Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
  6. Make sure the WebsiteSamplesTests job pass in the pipeline.

@github-actions
Copy link

Hey @ranadeepsingh 👋!
Thank you so much for contributing to our repository 🙌.
Someone from SynapseML Team will be reviewing this pull request soon.

We use semantic commit messages to streamline the release process.
Before your pull request can be merged, you should make sure your first commit and PR title start with a semantic prefix.
This helps us to create release messages and credit you for your hard work!

Examples of commit messages with semantic prefixes:

  • fix: Fix LightGBM crashes with empty partitions
  • feat: Make HTTP on Spark back-offs configurable
  • docs: Update Spark Serving usage
  • build: Add codecov support
  • perf: improve LightGBM memory usage
  • refactor: make python code generation rely on classes
  • style: Remove nulls from CNTKModel
  • test: Add test coverage for CNTKModel

To test your commit locally, please follow our guild on building from source.
Check out the developer guide for additional guidance on testing your change.

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

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 removes Bing Image Search API tests and pipeline configuration in response to Microsoft's retirement of Bing Search APIs on August 11, 2025, which are now returning 410 (Gone) status codes.

Key Changes:

  • Removed Bing Image Search test suite (ImageSearchSuite.scala)
  • Removed Bing package from pipeline test configuration
  • Removed Bing Web Search integration from Langchain example notebook

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pipeline.yaml Removes the bing package entry from the test job matrix to stop running failing Bing-related tests
cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/bing/ImageSearchSuite.scala Deletes the entire Bing Image Search test suite that was failing with 410 status codes
docs/Explore Algorithms/OpenAI/Langchain.ipynb Removes Bing Web Search tool integration from the LangChain example and simplifies the paper summarization workflow

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

Comment on lines 630 to 632
anomaly:
PACKAGE: "services.anomaly"
FLAKY: "true"
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

The removal of Bing Image Search appears incomplete. While this PR removes the test configuration and the test file ImageSearchSuite.scala, the following related files and references still exist in the codebase and should also be removed:

Implementation files:

  • cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/bing/BingImageSearch.scala (310 lines)
  • cognitive/src/main/scala/com/microsoft/azure/synapse/ml/services/bing/ImageSearchSchemas.scala (93 lines)
  • cognitive/src/main/python/synapse/ml/services/bing/BingImageSearch.py (48 lines)
  • cognitive/src/main/python/synapse/ml/services/bing/__init__.py
  • cognitive/src/main/python/synapse/ml/cognitive/bing.py (deprecation wrapper)

Documentation files that reference BingImageSearch:

  • docs/Explore Algorithms/AI Services/Overview.ipynb
  • docs/Explore Algorithms/AI Services/Quickstart - Analyze Celebrity Quotes.ipynb
  • docs/Explore Algorithms/Responsible AI/Quickstart - Snow Leopard Detection.ipynb
  • docs/Quick Examples/transformers/cognitive/_BingImageSearch.md
  • docs/Quick Examples/transformers/transformers_cognitive.md

Test files using BingImageSearch utilities:

  • cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/form/FormRecognizerSuite.scala (uses BingImageSearch.downloadFromUrls)
  • cognitive/src/test/scala/com/microsoft/azure/synapse/ml/services/vision/ComputerVisionSuite.scala (uses BingImageSearch.downloadFromUrls in multiple test suites)

Note: The downloadFromUrls utility function is still being used by other tests. You'll need to either: (1) keep this utility function separately, or (2) replace it with an alternative method to download images for testing purposes.

Copilot uses AI. Check for mistakes.
@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.68%. Comparing base (38b53c6) to head (f51809c).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2446      +/-   ##
==========================================
- Coverage   84.38%   83.68%   -0.70%     
==========================================
  Files         335      334       -1     
  Lines       17690    17577     -113     
  Branches     1619     1597      -22     
==========================================
- Hits        14928    14710     -218     
- Misses       2762     2867     +105     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ranadeepsingh
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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.

2 participants