GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — retail: some tests failing, blocking PRs (java) · Issue #10133 · GoogleCloudPlatform/java-docs-samples

retail: some tests failing, blocking PRs (java) #10133

New issue
Copy link
New issue
Copy link
Open
Open
retail: some tests failing, blocking PRs (java)#10133
Copy link
Assignees
riedelcastro
Labels
api: retailIssues related to the Retail API API.Issues related to the Retail API API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@glasnt
glasnt
opened on Jul 15, 2025
Issue body actions

In which file did you encounter the issue?

  • retail/interactive-tutorials/src/test/java/search/SearchWithBoostSpecTest.java
  • retail/interactive-tutorials/src/test/java/search/SearchWithFacetSpecTest.java
  • retail/interactive-tutorials/src/test/java/search/SearchWithFilteringTest.java

Did you change the file? If so, how?

Comments only

Describe the issue

https://btx.cloud.google.com/invocations/e2f00054-73d9-41e9-a59a-10f4ab36efb8/log

Details
cd retail/interactive-tutorials
mvn --quiet --batch-mode --fail-at-end clean verify \
    -Dfile.encoding="UTF-8" \
    -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \
    -Dmaven.test.redirectTestOutputToFile=true \
    -Dbigtable.projectID="java-docs-samples-testing" \
    -Dbigtable.instanceID=instance
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.24 s <<< FAILURE! - in search.SearchWithFacetSpecTest
[ERROR] search.SearchWithFacetSpecTest.testOutput  Time elapsed: 0.238 s  <<< FAILURE!
expected to contain:
    Search response
but was:
    Search request: placement: "projects/java-docs-samples-testing/locations/global/catalogs/default_catalog/placements/default_search"
    query: "Tee"
    visitor_id: "80a7ee32-54e7-448d-b540-aba76b2feef3"
    page_size: 10
    facet_specs {
      facet_key {
        key: "colorFamilies"
      }
    }
    
    The search operation returned no matching results.
    
	at search.SearchWithFacetSpecTest.testOutput(SearchWithFacetSpecTest.java:57)

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.056 s <<< FAILURE! - in search.SearchWithBoostSpecTest
[ERROR] search.SearchWithBoostSpecTest.testOutput  Time elapsed: 0.054 s  <<< FAILURE!
expected to contain:
    Search response
but was:
    Search request: placement: "projects/java-docs-samples-testing/locations/global/catalogs/default_catalog/placements/default_search"
    query: "Tee"
    visitor_id: "2cf6e5fa-5954-420e-99b3-9a2fa16e8025"
    page_size: 10
    boost_spec {
      condition_boost_specs {
        condition: "(colorFamilies: ANY(\"Blue\"))"
      }
    }
    
    The search operation returned no matching results.
    
	at search.SearchWithBoostSpecTest.testOutput(SearchWithBoostSpecTest.java:57)

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.044 s <<< FAILURE! - in search.SearchWithFilteringTest
[ERROR] search.SearchWithFilteringTest.testOutput  Time elapsed: 0.042 s  <<< FAILURE!
expected to contain:
    Search response
but was:
    Search request: placement: "projects/java-docs-samples-testing/locations/global/catalogs/default_catalog/placements/default_search"
    query: "Tee"
    visitor_id: "601d2cb1-74ec-445f-8827-4d5edd12632a"
    page_size: 10
    filter: "(colorFamilies: ANY(\"Black\"))"
    
    The search operation returned no matching results.
    
	at search.SearchWithFilteringTest.testOutput(SearchWithFilteringTest.java:58)

[ERROR] Failures: 
[ERROR]   SearchWithBoostSpecTest.testOutput:57 expected to contain:
    Search response
but was:
    Search request: placement: "projects/java-docs-samples-testing/locations/global/catalogs/default_catalog/placements/default_search"
    query: "Tee"
    visitor_id: "2cf6e5fa-5954-420e-99b3-9a2fa16e8025"
    page_size: 10
    boost_spec {
      condition_boost_specs {
        condition: "(colorFamilies: ANY(\"Blue\"))"
      }
    }
    
    The search operation returned no matching results.
    
[ERROR]   SearchWithFacetSpecTest.testOutput:57 expected to contain:
    Search response
but was:
    Search request: placement: "projects/java-docs-samples-testing/locations/global/catalogs/default_catalog/placements/default_search"
    query: "Tee"
    visitor_id: "80a7ee32-54e7-448d-b540-aba76b2feef3"
    page_size: 10
    facet_specs {
      facet_key {
        key: "colorFamilies"
      }
    }
    
    The search operation returned no matching results.
    
[ERROR]   SearchWithFilteringTest.testOutput:58 expected to contain:
    Search response
but was:
    Search request: placement: "projects/java-docs-samples-testing/locations/global/catalogs/default_catalog/placements/default_search"
    query: "Tee"
    visitor_id: "601d2cb1-74ec-445f-8827-4d5edd12632a"
    page_size: 10
    filter: "(colorFamilies: ANY(\"Black\"))"
    
    The search operation returned no matching results.
    

All tests in the product folder are run when a sample is changed. This is blocking the following PRs:

  • fix(retail): add region tag for Java - Update WriteUserEvent.java #10110
  • fix(retail): add region tag for Java - Update import products inline #10111
  • fix(retail): add region tag for Java - Update Search with query expansion spec #10112
  • fix(retail): add region tag for Java - Update add fullfillment places #10113
  • fix(retail): add region tag for Java - Update remove fulfillment places #10114
  • fix(retail): add region tag for Java - Update setInventory.java #10120
  • fix(retail): add region tag for Java - search product with boost spec #10121
  • fix(retail): add region tag for Java - Update import user events from big query #10122
  • fix(retail): add region tag for Java - Update import user events inline source #10123
  • fix(retail): add region tag for Java - Update import user events from gcs #10124
  • fix(retail): add region tag for Java - Update purge user events #10125
  • fix(retail): add region tag for Java -Update rejoin user events #10126
  • fix(retail): add region tag for Java - Update search with ordering #10127
  • fix(retail): add region tag for Java - Update search with filtering #10128

This issue serves as a reference for use when disabling these failing tests to unblock these PRs.

See similar issue in Node.JS: GoogleCloudPlatform/nodejs-docs-samples#4136

Activity

  1. glasnt
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
    triage meI really want to be triaged.I really want to be triaged.
    on Jul 15, 2025
  2. product-auto-label
    added
    api: retailIssues related to the Retail API API.Issues related to the Retail API API.
    samplesIssues that are directly related to samples.Issues that are directly related to samples.
    on Jul 15, 2025
  3. blunderbuss-gcf
    assigned
    riedelcastro
    on Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @riedelcastro
    riedelcastro

Labels

api: retailIssues related to the Retail API API.Issues related to the Retail API API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.