Skip to content

Commit 536fdef

Browse files
authored
fix(specs): filter run list by type (#3577)
1 parent 6e8f846 commit 536fdef

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

scripts/ci/githubActions/createMatrix.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ async function createClientMatrix(baseBranch: string): Promise<void> {
6868
const testsRootFolder = `tests/output/${language}`;
6969
const testsOutputBase = `${testsRootFolder}/${getTestOutputFolder(language)}`;
7070
// We delete tests to ensure the CI only run tests against what changed.
71-
const testsToDelete = `${testsOutputBase}/client ${testsOutputBase}/requests ${testsOutputBase}/e2e ${testsOutputBase}/benchmark`;
71+
let testsToDelete = `${testsOutputBase}/client ${testsOutputBase}/requests ${testsOutputBase}/e2e`;
72+
if (language !== 'swift') {
73+
// Swift requires the benchmark folder to have files in it
74+
testsToDelete += ` ${testsOutputBase}/benchmark`;
75+
}
7276

7377
// We only store tests of clients that ran during this job, the rest stay as is
7478
let testsToStore = matrix[language].toRun

specs/ingestion/common/observabilityParameters.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ runStatus:
2525
items:
2626
$ref: './schemas/run.yml#/RunStatus'
2727

28+
runType:
29+
name: type
30+
in: query
31+
description: Run type for filtering the list of task runs.
32+
schema:
33+
type: array
34+
items:
35+
$ref: './schemas/run.yml#/RunType'
36+
2837
taskID:
2938
name: taskID
3039
in: query

specs/ingestion/common/schemas/run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ RunOutcome:
8787
RunType:
8888
type: string
8989
description: Task run type.
90-
enum: [reindex, update, discover]
90+
enum: [reindex, update, discover, validate, push]
9191

9292
RunReasonCode:
9393
type: string

specs/ingestion/paths/runs/runs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ get:
1212
- $ref: '../../common/parameters.yml#/itemsPerPage'
1313
- $ref: '../../common/parameters.yml#/page'
1414
- $ref: '../../common/observabilityParameters.yml#/runStatus'
15+
- $ref: '../../common/observabilityParameters.yml#/runType'
1516
- $ref: '../../common/observabilityParameters.yml#/taskID'
1617
- $ref: '../../common/observabilityParameters.yml#/runSort'
1718
- $ref: '../../common/parameters.yml#/order'

0 commit comments

Comments
 (0)