Skip to content

Commit

Permalink
feat: artifact enhancement (#207)
Browse files Browse the repository at this point in the history
* feat: artifact enhancement

* fix: previous testnames
  • Loading branch information
vsukhin authored Dec 14, 2023
1 parent 9c1a0e0 commit 483fef2
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/testexecution/v1/testexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ type ArtifactRequest struct {
VolumeMountPath string `json:"volumeMountPath"`
// artifact directories for scraping
Dirs []string `json:"dirs,omitempty"`
// regexp to filter scraped artifacts, single or comma separated
Masks []string `json:"masks,omitempty"`
// artifact bucket storage
StorageBucket string `json:"storageBucket,omitempty"`
// don't use a separate folder for execution artifacts
OmitFolderPerExecution bool `json:"omitFolderPerExecution,omitempty"`
// whether to share volume between pods
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
}

// running context for test or test suite execution
Expand Down
5 changes: 5 additions & 0 deletions api/testexecution/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/tests/v3/test_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,14 @@ type ArtifactRequest struct {
VolumeMountPath string `json:"volumeMountPath,omitempty"`
// artifact directories for scraping
Dirs []string `json:"dirs,omitempty"`
// regexp to filter scraped artifacts, single or comma separated
Masks []string `json:"masks,omitempty"`
// artifact bucket storage
StorageBucket string `json:"storageBucket,omitempty"`
// don't use a separate folder for execution artifacts
OmitFolderPerExecution bool `json:"omitFolderPerExecution,omitempty"`
// whether to share volume between pods
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
}

// RunningContext for test or test suite execution
Expand Down
5 changes: 5 additions & 0 deletions api/tests/v3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/testsuite/v3/testsuite_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ type DownloadArtifactOptions struct {
AllPreviousSteps bool `json:"allPreviousSteps,omitempty"`
// previous step numbers starting from 1
PreviousStepNumbers []int32 `json:"previousStepNumbers,omitempty"`
// previous test names
PreviousTestNames []string `json:"previousTestNames,omitempty"`
}

// TestSuiteBatchStep is set of steps run in parallel
Expand Down
5 changes: 5 additions & 0 deletions api/testsuite/v3/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/testsuiteexecution/v1/testsuiteexecution_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,14 @@ type ArtifactRequest struct {
VolumeMountPath string `json:"volumeMountPath"`
// artifact directories for scraping
Dirs []string `json:"dirs,omitempty"`
// regexp to filter scraped artifacts, single or comma separated
Masks []string `json:"masks,omitempty"`
// artifact bucket storage
StorageBucket string `json:"storageBucket,omitempty"`
// don't use a separate folder for execution artifacts
OmitFolderPerExecution bool `json:"omitFolderPerExecution,omitempty"`
// whether to share volume between pods
SharedBetweenPods bool `json:"sharedBetweenPods,omitempty"`
}

// TestContent defines test content
Expand Down
6 changes: 6 additions & 0 deletions api/testsuiteexecution/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions config/crd/bases/tests.testkube.io_testexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,18 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts, single or
comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -431,9 +440,18 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts, single or
comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/tests.testkube.io_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,18 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts, single or
comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
19 changes: 19 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuiteexecutions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,20 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts,
single or comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for
execution artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between
pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down Expand Up @@ -860,10 +870,19 @@ spec:
items:
type: string
type: array
masks:
description: regexp to filter scraped artifacts,
single or comma separated
items:
type: string
type: array
omitFolderPerExecution:
description: don't use a separate folder for execution
artifacts
type: boolean
sharedBetweenPods:
description: whether to share volume between pods
type: boolean
storageBucket:
description: artifact bucket storage
type: string
Expand Down
15 changes: 15 additions & 0 deletions config/crd/bases/tests.testkube.io_testsuites.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,11 @@ spec:
format: int32
type: integer
type: array
previousTestNames:
description: previous test names
items:
type: string
type: array
type: object
execute:
items:
Expand Down Expand Up @@ -614,6 +619,11 @@ spec:
format: int32
type: integer
type: array
previousTestNames:
description: previous test names
items:
type: string
type: array
type: object
execute:
items:
Expand Down Expand Up @@ -818,6 +828,11 @@ spec:
format: int32
type: integer
type: array
previousTestNames:
description: previous test names
items:
type: string
type: array
type: object
execute:
items:
Expand Down

0 comments on commit 483fef2

Please sign in to comment.