-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
ACM 2.12.0, ACM 2.13.0
-
1
-
False
-
None
-
False
-
-
-
Search Sprint 2024-20, Search Sprint 2024-23
-
Important
-
None
Description of problem: I ran the automation from repo https://github.com/stolostron/search-e2e-test with 2.11.3 and 2.12 latest DS image, but tests/api/queries.test.js are failed.
On the 2.11.3 env, sometimes these query cases are passed and sometimes fail.
However, on the 2.12 env, query cases often fail.
I ran by command npm run test:api tests/api/queries.test.js
First, the related configmap resources are created, they can be list by oc get command, and also can be searched out from the UI. But the automation failure due to can't find these resources sometimes. I have tried to increase the waiting time before remove these resources, but it doesn't help
```
cqu-mac:search-e2e-test changliangqu$ npm run test:api tests/api/queries.test.js > search-e2e-test@2.9.0 test:api /Users/changliangqu/ACM/search-e2e-test > jest --colors --verbose "tests/api/queries.test.js" Determining test suites to run...Start globalSetup. Created route search-api-automation. Done globalSetup. console.log Search request took more than 1 second. (ElapsedTime: 1430.00 ms) operation: searchResult variables: {"input":[
{"keywords":["apple"],"filters":[],"limit":10000}]} at log (../common-lib/searchClient.js:117:17) console.log Items fetched: [] at Object.log (queries.test.js:65:15) console.log Items fetched: [] at Object.log (queries.test.js:65:15) console.log Items fetched: [] at Object.log (queries.test.js:65:15) LOGGING RETRY ERRORS [P3][Sev3][observability-usa] Search API - Verify results of different queries using keywords should match any resources containing the keyword 'apple' RETRY 1 expect(received).toHaveLength(expected) Expected length: 1 Received length: 0 Received array: [] 64 | const items = await resolveSearchItems(user.token, { keywords: ['apple'] }) 65 | console.log('Items fetched:', items); // Debugging output > 66 | expect(items).toHaveLength(1) | ^ 67 | expect(items[0]).toHaveProperty('name', 'cm2-apple') 68 | }) 69 | at Object.toHaveLength (queries.test.js:66:21)
```
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
- on 2.12 hub env, cases fail most time.