Skip to content

Comments

PEM-9650 Adding basic unit test coverage for forklift#35

Open
HigashikataZhangsuke wants to merge 13 commits intospectro-v2.9.2from
PEM-9650
Open

PEM-9650 Adding basic unit test coverage for forklift#35
HigashikataZhangsuke wants to merge 13 commits intospectro-v2.9.2from
PEM-9650

Conversation

@HigashikataZhangsuke
Copy link

Init changes to increase the test coverage to 36%

@HigashikataZhangsuke HigashikataZhangsuke changed the title PEM-9650 Adding basic unit test coverage for forklift [WIP] PEM-9650 Adding basic unit test coverage for forklift Feb 11, 2026
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

- Split CI into parallel jobs (lint, test, verify, build) for faster execution
- Upgrade actions to latest versions (checkout@v6, setup-go@v6, codecov@v5)
- Add coverage reporting with Codecov for PRs
- Add support for spectro-v* branches
- Disable build-push-images workflow for fork safety
- Remove redundant golangci-lint workflow
- Update README badges to point to spectrocloud fork
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

…d golangci-lint action to run with a report output, ensuring better integration with code quality tools.
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

…t conditions. The lint job is commented out, and the coverage report now runs only after tests complete, improving workflow clarity and execution.
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

…eps to continue on error, improving resilience in the absence of baseline data or SonarQube configuration.
…sed on the presence of SONAR_TOKEN, enhancing flexibility in configuration.
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

…coverage results to Codecov, streamlining the coverage reporting process.
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoVulnCheck scan found vulnerabilities:

  1. GO-2024-2955
    • Module: github.com/gin-contrib/cors
    • Found in: v1.3.1
    • Fixed in: v1.6.0
    • Example Traces:
      1. pkg/lib/inventory/web/web.go:45:21: web.Start calls cors.New, which eventually calls web.Start

Please review these findings and fix the issues before merging.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@HigashikataZhangsuke HigashikataZhangsuke changed the title [WIP] PEM-9650 Adding basic unit test coverage for forklift PEM-9650 Adding basic unit test coverage for forklift Feb 13, 2026
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.

3 participants