Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/flaky-search-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Flaky search test (reliability check)

on:
pull_request:
workflow_dispatch:

jobs:
search-reliability:
runs-on: ubuntu-latest
name: search-test-x10
strategy:
fail-fast: false
matrix:
run: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
env:
BASE_URL_OCIS: localhost:9200
HEADLESS: true
RETRY: 0
BROWSER: chromium
REPORT_TRACING: false
FAIL_ON_UNCAUGHT_CONSOLE_ERR: true
SKIP_A11Y_TESTS: true
TEST_TYPE: playwright
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
with:
version: 10.33.3

- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 24.15.0
cache: pnpm

- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: '1.26.3'
cache: true

- name: Install dependencies
run: pnpm install

Check warning on line 46 in .github/workflows/flaky-search-test.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--ignore-scripts" can lead to the execution of shell scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=owncloud_web&issues=AZ6D5X9Y1wutTFtBSQdO&open=AZ6D5X9Y1wutTFtBSQdO&pullRequest=13831

Check warning on line 46 in .github/workflows/flaky-search-test.yml

View check run for this annotation

GitHub Advanced Security / SonarCloud

JavaScript package manager scripts should not be executed during installation

<!--SONAR_ISSUE_KEY:AZ6D5X9Y1wutTFtBSQdO-->Omitting "--ignore-scripts" can lead to the execution of shell scripts. Make sure it is safe here. <p>See more on <a href="https://sonarcloud.io/project/issues?id=owncloud_web&issues=AZ6D5X9Y1wutTFtBSQdO&open=AZ6D5X9Y1wutTFtBSQdO&pullRequest=13831">SonarQube Cloud</a></p>

- name: Setup oCIS with Tika
run: |
cd "${{ github.workspace }}/tests/actions"
bash setup-services.sh --tika

- name: Cache Playwright browsers
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}

- name: Install Playwright browsers
run: pnpm exec playwright install --with-deps chromium

Check warning on line 61 in .github/workflows/flaky-search-test.yml

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Omitting "--ignore-scripts" can lead to the execution of shell scripts. Make sure it is safe here.

See more on https://sonarcloud.io/project/issues?id=owncloud_web&issues=AZ6D5X9Y1wutTFtBSQdP&open=AZ6D5X9Y1wutTFtBSQdP&pullRequest=13831

Check warning on line 61 in .github/workflows/flaky-search-test.yml

View check run for this annotation

GitHub Advanced Security / SonarCloud

JavaScript package manager scripts should not be executed during installation

<!--SONAR_ISSUE_KEY:AZ6D5X9Y1wutTFtBSQdP-->Omitting "--ignore-scripts" can lead to the execution of shell scripts. Make sure it is safe here. <p>See more on <a href="https://sonarcloud.io/project/issues?id=owncloud_web&issues=AZ6D5X9Y1wutTFtBSQdP&open=AZ6D5X9Y1wutTFtBSQdP&pullRequest=13831">SonarQube Cloud</a></p>

- name: "Run search test #${{ matrix.run }}"
env:
FEATURE_FILES: specs/search/search.spec.ts
run: cd ${{ github.workspace }}/tests/e2e && bash run-e2e.sh --type playwright

- name: Dump oCIS logs on failure
if: failure()
run: |
echo "=== oCIS logs ==="
grep -i "search\|tika\|error\|ERR" /tmp/ocis-ocis.log 2>/dev/null | tail -100 || echo "(no log file)"
2 changes: 1 addition & 1 deletion tests/e2e/specs/search/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ test.describe('Search', { tag: '@predefined-users' }, () => {
// | strängéनेपालीName |
await ui.userShouldSeeResources({
world,
listType: resourcePage.searchList,
listType: resourcePage.filesList,
stepUser: 'Alice',
resources: ['strängéनेपालीName']
})
Expand Down
Loading