-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat test report #1244
Draft
timhuynh94
wants to merge
40
commits into
main
Choose a base branch
from
feat_test_report
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Feat test report #1244
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
a2042f3
ground work
8fb48dc
feat: add sender rule for pipelines (#1206)
ecrupper a3b1bff
chore(lint): add struct tag align rule (#1216)
ecrupper 2245376
chore(lint): address existing linter issues (#1218)
ecrupper 5a1f403
enhance(build)!: add fork field for OIDC (#1221)
ecrupper 9a5bf00
enhance(compiler): cache templates per compilation (#1224)
ecrupper 58718a1
ground work
8e9cd8e
working admin endpoints for bucket management
3239b53
working admin endpoints for object operations
8a95775
all endpoints for storage
a4f29d0
some working test
41df509
working tests
86d822d
keys for test report step
83afd15
feat: deployment config for expected params and targets (#1214)
ecrupper 8b5b79f
resolve conflicts with buildkite
9328ecd
feat: opt-in gh app integration (#1217)
plyr4 b16622f
chore(yaml): add go-yaml types package (#1225)
ecrupper 3156794
resolve conflicts
57f8f9a
rebase
09da5df
enhance(yaml): allow for users to set version legacy for buildkite (#…
ecrupper 114ae7b
refactor(db/build): drop source index, add event index (#1228)
wass3rw3rk fd16b7b
feat(repo)!: add pending approval timeout (#1227)
ecrupper 68547d6
enhance(yaml): silent fix anchor merges in YAML maps (#1231)
ecrupper c7c1d0a
fix(webhook): use correct repo variable for enqueue (#1234)
ecrupper f43e2d1
feat(pipeline)!: add warnings to pipelines that use legacy YAML lib o…
ecrupper f1a98ac
feat: status endpoints (#1235)
plyr4 bf2313d
enhance(deploy): validate on CreateDeployment (#1236)
ecrupper 9a532cf
enhance(metrics): include route specific queue length (#1237)
ecrupper 9f13f97
chore(deps): update codecov/codecov-action action to v5 (#1222)
renovate[bot] 3920eab
fix(deps): update module github.com/google/go-github/v65 to v68 (#1229)
renovate[bot] 084fea3
chore: bump go (#1238)
wass3rw3rk 52df828
fix(deployment): use Config instead of ConfigBackoff when fetching de…
ecrupper 4eee25d
fix(build): use item build host (#1241)
ecrupper df21b7a
fix(build): ensure count/pagination links account for filter/query pa…
wass3rw3rk d24fd37
fix(yaml): improved messaging (#1243)
wass3rw3rk a051afa
keys for test report step
5254aad
resolve conflicts with buildkite
a138127
Merge branch 'main' into feat_test_report
timhuynh94 14660f5
mod tidy
05a09bb
fields for buildkite and ymal
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package types | ||
|
||
import "github.com/minio/minio-go/v7/pkg/lifecycle" | ||
|
||
// Bucket is the API types representation of an object storage. | ||
// | ||
// swagger:model CreateBucket | ||
type Bucket struct { | ||
BucketName string `json:"bucket_name,omitempty"` | ||
Options BucketOptions `json:"options,omitempty"` | ||
LifecycleConfig lifecycle.Configuration `json:"life_cycle_config,omitempty"` | ||
} | ||
|
||
type BucketOptions struct { | ||
Region string `json:"region,omitempty"` | ||
ObjectLocking bool `json:"object_locking,omitempty"` | ||
} | ||
|
||
type Object struct { | ||
ObjectName string `json:"object_name,omitempty"` | ||
Bucket Bucket `json:"bucket,omitempty"` | ||
FilePath string `json:"file_path,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
package test_report | ||
|
||
// CodeCoverageFile is the API types representation of a code coverage file for a pipeline. | ||
// | ||
// swagger:model CodeCoverageFile | ||
type CodeCoverageFile struct { | ||
ID *int64 `json:"id,omitempty"` | ||
CodeCoverageRun *CodeCoverageRun `json:"code_coverage_run,omitempty"` | ||
CodeCoverageGroup *CodeCoverageGroup `json:"code_coverage_group,omitempty"` | ||
CodeCoverageStats *CodeCoverageStats `json:"code_coverage_stats,omitempty"` | ||
DirectoryName *string `json:"directory_name,omitempty"` | ||
FileName *string `json:"file_name,omitempty"` | ||
MissedLines *int `json:"missed_lines,omitempty"` | ||
PartialLines *int `json:"partial_lines,omitempty"` | ||
FilePath *string `json:"file_path,omitempty"` | ||
} | ||
|
||
// GetID returns the ID field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetID() int64 { | ||
if c == nil || c.ID == nil { | ||
return 0 | ||
} | ||
return *c.ID | ||
} | ||
|
||
// SetID sets the ID field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetID(v int64) { | ||
if c == nil { | ||
return | ||
} | ||
c.ID = &v | ||
} | ||
|
||
// GetCodeCoverageRun returns the CodeCoverageRun field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetCodeCoverageRun() *CodeCoverageRun { | ||
if c == nil || c.CodeCoverageRun == nil { | ||
return new(CodeCoverageRun) | ||
} | ||
return c.CodeCoverageRun | ||
} | ||
|
||
// SetCodeCoverageRun sets the CodeCoverageRun field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetCodeCoverageRun(v *CodeCoverageRun) { | ||
if c == nil { | ||
return | ||
} | ||
c.CodeCoverageRun = v | ||
} | ||
|
||
// GetCodeCoverageGroup returns the CodeCoverageGroup field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetCodeCoverageGroup() *CodeCoverageGroup { | ||
if c == nil || c.CodeCoverageGroup == nil { | ||
return new(CodeCoverageGroup) | ||
} | ||
return c.CodeCoverageGroup | ||
} | ||
|
||
// SetCodeCoverageGroup sets the CodeCoverageGroup field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetCodeCoverageGroup(v *CodeCoverageGroup) { | ||
if c == nil { | ||
return | ||
} | ||
c.CodeCoverageGroup = v | ||
} | ||
|
||
// GetCodeCoverageStats returns the CodeCoverageStats field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetCodeCoverageStats() *CodeCoverageStats { | ||
if c == nil || c.CodeCoverageStats == nil { | ||
return new(CodeCoverageStats) | ||
} | ||
return c.CodeCoverageStats | ||
} | ||
|
||
// SetCodeCoverageStats sets the CodeCoverageStats field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetCodeCoverageStats(v *CodeCoverageStats) { | ||
if c == nil { | ||
return | ||
} | ||
c.CodeCoverageStats = v | ||
} | ||
|
||
// GetDirectoryName returns the DirectoryName field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetDirectoryName() string { | ||
if c == nil || c.DirectoryName == nil { | ||
return "" | ||
} | ||
return *c.DirectoryName | ||
} | ||
|
||
// SetDirectoryName sets the DirectoryName field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetDirectoryName(v string) { | ||
if c == nil { | ||
return | ||
} | ||
c.DirectoryName = &v | ||
} | ||
|
||
// GetFileName returns the FileName field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetFileName() string { | ||
if c == nil || c.FileName == nil { | ||
return "" | ||
} | ||
return *c.FileName | ||
} | ||
|
||
// SetFileName sets the FileName field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetFileName(v string) { | ||
if c == nil { | ||
return | ||
} | ||
c.FileName = &v | ||
} | ||
|
||
// GetMissedLines returns the MissedLines field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetMissedLines() int { | ||
if c == nil || c.MissedLines == nil { | ||
return 0 | ||
} | ||
return *c.MissedLines | ||
} | ||
|
||
// SetMissedLines sets the MissedLines field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetMissedLines(v int) { | ||
if c == nil { | ||
return | ||
} | ||
c.MissedLines = &v | ||
} | ||
|
||
// GetPartialLines returns the PartialLines field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetPartialLines() int { | ||
if c == nil || c.PartialLines == nil { | ||
return 0 | ||
} | ||
return *c.PartialLines | ||
} | ||
|
||
// SetPartialLines sets the PartialLines field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetPartialLines(v int) { | ||
if c == nil { | ||
return | ||
} | ||
c.PartialLines = &v | ||
} | ||
|
||
// GetFilePath returns the FilePath field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageFile) GetFilePath() string { | ||
if c == nil || c.FilePath == nil { | ||
return "" | ||
} | ||
return *c.FilePath | ||
} | ||
|
||
// SetFilePath sets the FilePath field. | ||
// | ||
// When the provided CodeCoverageFile type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageFile) SetFilePath(v string) { | ||
if c == nil { | ||
return | ||
} | ||
c.FilePath = &v | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
package test_report | ||
|
||
// CodeCoverageGroup is the API types representation of a group of code coverage. | ||
// | ||
// swagger:model CodeCoverageGroup | ||
type CodeCoverageGroup struct { | ||
ID *int64 `json:"id,omitempty"` | ||
CodeCoverageRun *CodeCoverageRun `json:"code_coverage_run,omitempty"` | ||
Name *string `json:"name,omitempty"` | ||
CodeCoverageStats *CodeCoverageStats `json:"code_coverage_stats,omitempty"` | ||
} | ||
|
||
// GetID returns the ID field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageGroup) GetID() int64 { | ||
if c == nil || c.ID == nil { | ||
return 0 | ||
} | ||
return *c.ID | ||
} | ||
|
||
// SetID sets the ID field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageGroup) SetID(v int64) { | ||
if c == nil { | ||
return | ||
} | ||
c.ID = &v | ||
} | ||
|
||
// GetCodeCoverageRun returns the CodeCoverageRun field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageGroup) GetCodeCoverageRun() *CodeCoverageRun { | ||
if c == nil || c.CodeCoverageRun == nil { | ||
return new(CodeCoverageRun) | ||
} | ||
return c.CodeCoverageRun | ||
} | ||
|
||
// SetCodeCoverageRun sets the CodeCoverageRun field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageGroup) SetCodeCoverageRun(v *CodeCoverageRun) { | ||
if c == nil { | ||
return | ||
} | ||
c.CodeCoverageRun = v | ||
} | ||
|
||
// GetName returns the Name field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageGroup) GetName() string { | ||
if c == nil || c.Name == nil { | ||
return "" | ||
} | ||
return *c.Name | ||
} | ||
|
||
// SetName sets the Name field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageGroup) SetName(v string) { | ||
if c == nil { | ||
return | ||
} | ||
c.Name = &v | ||
} | ||
|
||
// GetCodeCoverageStats returns the CodeCoverageStats field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, or the field within | ||
// the type is nil, it returns a new CodeCoverageStats instance. | ||
func (c *CodeCoverageGroup) GetCodeCoverageStats() *CodeCoverageStats { | ||
if c == nil || c.CodeCoverageStats == nil { | ||
return new(CodeCoverageStats) | ||
} | ||
return c.CodeCoverageStats | ||
} | ||
|
||
// SetCodeCoverageStats sets the CodeCoverageStats field. | ||
// | ||
// When the provided CodeCoverageGroup type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageGroup) SetCodeCoverageStats(v *CodeCoverageStats) { | ||
if c == nil { | ||
return | ||
} | ||
c.CodeCoverageStats = v | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package test_report | ||
|
||
// CodeCoverageRun is the API types representation of a code coverage run for a pipeline. | ||
// | ||
// swagger:model CodeCoverageRun | ||
type CodeCoverageRun struct { | ||
ID *int64 `json:"id,omitempty"` | ||
TestRunPublicID *string `json:"test_run_public_id,omitempty"` | ||
} | ||
|
||
// GetID returns the ID field. | ||
// | ||
// When the provided CodeCoverageRun type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageRun) GetID() int64 { | ||
if c == nil || c.ID == nil { | ||
return 0 | ||
} | ||
return *c.ID | ||
} | ||
|
||
// GetTestRunPublicID returns the TestRunPublicID field. | ||
// | ||
// When the provided CodeCoverageRun type is nil, or the field within | ||
// the type is nil, it returns the zero value for the field. | ||
func (c *CodeCoverageRun) GetTestRunPublicID() string { | ||
if c == nil || c.TestRunPublicID == nil { | ||
return "" | ||
} | ||
return *c.TestRunPublicID | ||
} | ||
|
||
// SetID sets the ID field. | ||
// | ||
// When the provided CodeCoverageRun type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageRun) SetID(v int64) { | ||
// return if CodeCoverageRun type is nil | ||
if c == nil { | ||
return | ||
} | ||
|
||
c.ID = &v | ||
} | ||
|
||
// SetTestRunPublicID sets the TestRunPublicID field. | ||
// | ||
// When the provided CodeCoverageRun type is nil, it | ||
// will set nothing and immediately return. | ||
func (c *CodeCoverageRun) SetTestRunPublicID(v string) { | ||
// return if CodeCoverageRun type is nil | ||
if c == nil { | ||
return | ||
} | ||
|
||
c.TestRunPublicID = &v | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [golangci] reported by reviewdog 🐶
Missed header for check (goheader)