Skip to content
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(server): test report storage addition #1271

Draft
wants to merge 69 commits into
base: main
Choose a base branch
from

Conversation

timhuynh94
Copy link
Contributor

No description provided.

TimHuynh and others added 30 commits December 12, 2024 09:41
* refactor(pipeline): use server API types for pipeline and migrate compiler types

* gci

* feat: add sender rule for pipelines

---------

Co-authored-by: David May <[email protected]>
* chore(lint): address existing linter issues

* remove dupl from exclusion list
* enhance(build): add fork field for OIDC

* fix test

* integration test update
* enhance(yaml): allow for users to parse pipelines using old library

* testing file for internal yaml

* chore(compiler): convert unmarshaled buildkite to go-yaml

* remove tests used in later PRs

* lintfix

* fix schema

* gci
* init commit

* feat(repo): add pending approval timeout

* fix test

* remove dead code

---------

Co-authored-by: David May <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

golangci

🚫 [golangci] reported by reviewdog 🐶
expressions should not be cuddled with blocks (wsl)

l.Debugf("bucket name: %s", input.BucketName)


🚫 [golangci] reported by reviewdog 🐶
if statements should only be cuddled with assignments (wsl)

if input.Bucket.BucketName == "" || input.ObjectName == "" {


🚫 [golangci] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)

err = storage.FromGinContext(c).Upload(ctx, input)


🚫 [golangci] reported by reviewdog 🐶
only one cuddle assignment allowed before if statement (wsl)

if err != nil {


🚫 [golangci] reported by reviewdog 🐶
expressions should not be cuddled with blocks (wsl)

logrus.Debug("creating storage client from setup")


🚫 [golangci] reported by reviewdog 🐶
declarations should never be cuddled (wsl)

var opts minio.MakeBucketOptions


🚫 [golangci] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)

opts = minio.MakeBucketOptions{}


🚫 [golangci] reported by reviewdog 🐶
ranges should only be cuddled with assignments used in the iteration (wsl)

for object := range objectCh {


🚫 [golangci] reported by reviewdog 🐶
append only allowed to cuddle with appended value (wsl)

objects = append(objects, object.Key)


🚫 [golangci] reported by reviewdog 🐶
block should not end with a whitespace (or comment) (wsl)


🚫 [golangci] reported by reviewdog 🐶
expressions should not be cuddled with blocks (wsl)

c.Logger.Infof("uploaded object %v with size %d", info, info.Size)

Copy link

codecov bot commented Mar 13, 2025

Codecov Report

Attention: Patch coverage is 40.48387% with 369 lines in your changes missing coverage. Please review.

Project coverage is 56.27%. Comparing base (6ddedeb) to head (4055774).

Files with missing lines Patch % Lines
api/admin/storage.go 0.00% 99 Missing ⚠️
storage/minio/download.go 0.00% 48 Missing ⚠️
api/storage/storage.go 0.00% 25 Missing ⚠️
storage/minio/presigned_get_object.go 0.00% 19 Missing ⚠️
cmd/vela-server/metadata.go 0.00% 17 Missing ⚠️
mock/server/worker.go 0.00% 16 Missing ⚠️
storage/minio/upload.go 23.80% 16 Missing ⚠️
storage/minio/create_bucket.go 44.44% 12 Missing and 3 partials ⚠️
storage/minio/list_objects.go 0.00% 13 Missing ⚠️
storage/storage.go 58.06% 13 Missing ⚠️
... and 15 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1271      +/-   ##
==========================================
- Coverage   56.55%   56.27%   -0.28%     
==========================================
  Files         630      650      +20     
  Lines       35709    36329     +620     
==========================================
+ Hits        20194    20445     +251     
- Misses      14828    15188     +360     
- Partials      687      696       +9     
Files with missing lines Coverage Δ
compiler/types/yaml/yaml/secret.go 87.74% <ø> (ø)
router/build.go 0.00% <ø> (ø)
router/middleware/signing.go 100.00% <100.00%> (ø)
router/middleware/storage.go 100.00% <100.00%> (ø)
storage/setup.go 100.00% <100.00%> (ø)
api/types/storage_info.go 97.91% <97.91%> (ø)
api/types/storage.go 0.00% <0.00%> (ø)
cmd/vela-server/main.go 0.00% <0.00%> (ø)
mock/server/server.go 0.00% <0.00%> (ø)
router/router.go 0.00% <0.00%> (ø)
... and 20 more
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

TimHuynh and others added 5 commits March 17, 2025 13:46
… in path expression

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

golangci

🚫 [golangci] reported by reviewdog 🐶
only one cuddle assignment allowed before if statement (wsl)

if err != nil {


🚫 [golangci] reported by reviewdog 🐶
expressions should not be cuddled with blocks (wsl)

logrus.Debug("creating storage client from setup")


🚫 [golangci] reported by reviewdog 🐶
declarations should never be cuddled (wsl)

var opts minio.MakeBucketOptions


🚫 [golangci] reported by reviewdog 🐶
assignments should only be cuddled with other assignments (wsl)

opts = minio.MakeBucketOptions{}


🚫 [golangci] reported by reviewdog 🐶
block should not end with a whitespace (or comment) (wsl)


🚫 [golangci] reported by reviewdog 🐶
expressions should not be cuddled with blocks (wsl)

c.Logger.Infof("uploaded object %v with size %d", info, info.Size)


🚫 [golangci] reported by reviewdog 🐶
directive //nolint:revive // ignore returning unexported client is unused for linter "revive" (nolintlint)

//nolint:revive // ignore returning unexported client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants