Skip to content

Commit

Permalink
fix(specs): filter run list by type (#3577)
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp authored Aug 27, 2024
1 parent 6e8f846 commit 536fdef
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion scripts/ci/githubActions/createMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ async function createClientMatrix(baseBranch: string): Promise<void> {
const testsRootFolder = `tests/output/${language}`;
const testsOutputBase = `${testsRootFolder}/${getTestOutputFolder(language)}`;
// We delete tests to ensure the CI only run tests against what changed.
const testsToDelete = `${testsOutputBase}/client ${testsOutputBase}/requests ${testsOutputBase}/e2e ${testsOutputBase}/benchmark`;
let testsToDelete = `${testsOutputBase}/client ${testsOutputBase}/requests ${testsOutputBase}/e2e`;
if (language !== 'swift') {
// Swift requires the benchmark folder to have files in it
testsToDelete += ` ${testsOutputBase}/benchmark`;
}

// We only store tests of clients that ran during this job, the rest stay as is
let testsToStore = matrix[language].toRun
Expand Down
9 changes: 9 additions & 0 deletions specs/ingestion/common/observabilityParameters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ runStatus:
items:
$ref: './schemas/run.yml#/RunStatus'

runType:
name: type
in: query
description: Run type for filtering the list of task runs.
schema:
type: array
items:
$ref: './schemas/run.yml#/RunType'

taskID:
name: taskID
in: query
Expand Down
2 changes: 1 addition & 1 deletion specs/ingestion/common/schemas/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ RunOutcome:
RunType:
type: string
description: Task run type.
enum: [reindex, update, discover]
enum: [reindex, update, discover, validate, push]

RunReasonCode:
type: string
Expand Down
1 change: 1 addition & 0 deletions specs/ingestion/paths/runs/runs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ get:
- $ref: '../../common/parameters.yml#/itemsPerPage'
- $ref: '../../common/parameters.yml#/page'
- $ref: '../../common/observabilityParameters.yml#/runStatus'
- $ref: '../../common/observabilityParameters.yml#/runType'
- $ref: '../../common/observabilityParameters.yml#/taskID'
- $ref: '../../common/observabilityParameters.yml#/runSort'
- $ref: '../../common/parameters.yml#/order'
Expand Down

0 comments on commit 536fdef

Please sign in to comment.