Skip to content

Commit 48054ff

Browse files
authored
test: optimize vscuse v2 pipeline (#14618)
* test: optimze * test: update * test: update * test: update * test: update * test: update
1 parent 072d0c1 commit 48054ff

File tree

3 files changed

+217
-3
lines changed

3 files changed

+217
-3
lines changed

.github/workflows/ui-test-vscuse-v2.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
id: get-plans
3030
run: |
3131
if [ -z "${{ github.event.inputs.test_plan }}" ]; then
32-
# Get all JSON files from plans directory (strip the .json extension)
33-
plans=$(find packages/tests/vscuse/vscode-test-cases/ -name "*.json" -exec basename {} .json \; | jq -R -s -c 'split("\n")[:-1]')
32+
# Get only top-level JSON files from plans directory (strip the .json extension)
33+
plans=$(find packages/tests/vscuse/vscode-test-cases/ -maxdepth 1 -type f -name "*.json" -exec basename {} .json \; | jq -R -s -c 'split("\n")[:-1]')
3434
echo "plans=$plans" >> $GITHUB_OUTPUT
3535
echo "Found test plans: $plans"
3636
else
@@ -42,6 +42,7 @@ jobs:
4242
fi
4343
4444
run-tests:
45+
name: Case-${{ matrix.test_plan }}
4546
needs: discover-test-plans
4647
runs-on: ubuntu-latest
4748
timeout-minutes: 20
@@ -148,7 +149,7 @@ jobs:
148149
cd packages/tests/vscuse/vscode-test-cases
149150
python -m venv .venv
150151
source .venv/bin/activate
151-
vscuse execute --config-file ./config.yaml ${{ matrix.test_plan }}.json
152+
vscuse execute --config-file ./config.yaml --groups-dir groups ${{ matrix.test_plan }}.json
152153
153154
- name: Upload test artifacts
154155
if: always()

packages/tests/vscuse/vscode-test-cases/happy_pass_test.json

Lines changed: 213 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)