-
Notifications
You must be signed in to change notification settings - Fork 77
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
Update libs dependency #2764
Update libs dependency #2764
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -54,7 +54,7 @@ jobs: | |||||
run: | | ||||||
make coverage | ||||||
- name: Upload coverage report to Codecov | ||||||
uses: codecov/codecov-action@v4 | ||||||
uses: codecov/codecov-action@v5 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification The upgrade to codecov-action@v5 requires modifications to the workflow file due to breaking changes:
Recommend either:
with:
files: ./coverage.out # Changed from 'file' to 'files' 🔗 Analysis chainLGTM! Verify Codecov action compatibility. The upgrade to codecov-action@v5 is a good practice for staying current. However, as this is a major version bump, let's verify the compatibility. Based on the release notes, v5 introduces several breaking changes that require attention:
Additionally, there are active issues reported with v5:
🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Verify codecov-action v5 compatibility and check for breaking changes
# Check the changelog and release notes for v5
gh api repos/codecov/codecov-action/releases/tags/v5.0.0 --jq '.body'
# Check if there are any open issues related to v5 migration
gh api search/issues -X GET -f q='repo:codecov/codecov-action is:issue is:open label:bug v5'
Length of output: 36411 Script: #!/bin/bash
# Check current usage of deprecated parameters
rg -l "file:|plugin:" .github/workflows/
Length of output: 112 Script: #!/bin/bash
# Check the specific usage of deprecated parameters in the workflow files
rg -A 5 "file:|plugin:" .github/workflows/coverage.yaml .github/workflows/codeql-analysis.yml
Length of output: 971 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider pinning the action to a specific SHA For security reasons, it's recommended to pin GitHub Actions to specific commit SHAs instead of using major version tags. - uses: codecov/codecov-action@v5
+ uses: codecov/codecov-action@e0b68c0bf36cfa71c264a216c38a96ce5d89165f # v5.0.7 📝 Committable suggestion
Suggested change
💡 Codebase verification Action required: Update deprecated parameters in Codecov Action v5 The workflow is using the deprecated
Additional notes:
🔗 Analysis chainVerify compatibility with Codecov Action v5 The update from v4 to v5 of codecov/codecov-action is a major version change that might include breaking changes. Update workflow to handle breaking changes in Codecov Action v5 The update to v5 introduces several breaking changes that need to be addressed:
Let's verify the current usage: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check for breaking changes between v4 and v5 of codecov/codecov-action
# Get the changelog or release notes for v5
gh api repos/codecov/codecov-action/releases | jq '.[] | select(.tag_name | startswith("v5.")) | {tag_name, body}'
# Check current usage in other workflow files
rg -l "codecov/codecov-action@" .github/workflows/
Length of output: 14443 Script: #!/bin/bash
# Check current parameters used with codecov action
cat .github/workflows/coverage.yaml
Length of output: 2147 |
||||||
with: | ||||||
token: ${{secrets.CODECOV_TOKEN}} | ||||||
file: ./coverage.out | ||||||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -94,4 +93,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/agent /usr/bin/agent | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/agent"] | ||
ENTRYPOINT ["/usr/bin/agent"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -96,4 +95,4 @@ COPY --from=builder /usr/bin/faiss /usr/bin/faiss | |
COPY cmd/agent/core/faiss/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/faiss"] | ||
ENTRYPOINT ["/usr/bin/faiss"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -95,4 +94,4 @@ COPY --from=builder /usr/bin/ngt /usr/bin/ngt | |
COPY cmd/agent/core/ngt/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/ngt"] | ||
ENTRYPOINT ["/usr/bin/ngt"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -85,4 +84,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/sidecar /usr/bin/sidecar | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/sidecar"] | ||
ENTRYPOINT ["/usr/bin/sidecar"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -17,4 +16,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM tonistiigi/binfmt:master AS builder | ||
FROM tonistiigi/binfmt:master AS builder |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -17,4 +16,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM ubuntu:devel AS builder | ||
FROM ubuntu:devel AS builder |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -17,4 +16,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM moby/buildkit:master AS builder | ||
FROM moby/buildkit:master AS builder |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -17,4 +16,4 @@ | |
# | ||
|
||
# DO_NOT_EDIT this Dockerfile is generated by https://github.com/vdaas/vald/blob/main/hack/docker/gen/main.go | ||
FROM docker/buildkit-syft-scanner:edge AS scanner | ||
FROM docker/buildkit-syft-scanner:edge AS scanner |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -128,4 +127,4 @@ RUN --mount=type=bind,target=.,rw \ | |
&& rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
ENTRYPOINT ["/bin/bash"] | ||
ENTRYPOINT ["/bin/bash"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -141,4 +140,4 @@ RUN --mount=type=bind,target=.,rw \ | |
&& make faiss/install \ | ||
&& rm -rf ${GOPATH}/src/github.com/${ORG}/${REPO}/* | ||
# skipcq: DOK-DL3002 | ||
USER root:root | ||
USER root:root |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -86,4 +85,4 @@ COPY --from=builder /usr/bin/discoverer /usr/bin/discoverer | |
COPY cmd/discoverer/k8s/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/discoverer"] | ||
ENTRYPOINT ["/usr/bin/discoverer"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -93,4 +92,4 @@ LABEL maintainer="vdaas.org vald team <[email protected]>" | |
COPY --from=builder /usr/bin/client /usr/bin/client | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/client"] | ||
ENTRYPOINT ["/usr/bin/client"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# syntax = docker/dockerfile:latest | ||
# check=error=true | ||
# | ||
# Copyright (C) 2019-2024 vdaas.org vald team <[email protected]> | ||
# | ||
|
@@ -86,4 +85,4 @@ COPY --from=builder /usr/bin/filter /usr/bin/filter | |
COPY cmd/gateway/filter/sample.yaml /etc/server/config.yaml | ||
# skipcq: DOK-DL3002 | ||
USER nonroot:nonroot | ||
ENTRYPOINT ["/usr/bin/filter"] | ||
ENTRYPOINT ["/usr/bin/filter"] |
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.
💡 Codebase verification
The workflow needs to be updated to align with v5's breaking changes:
file
parameter is deprecated in favor offiles
file
parameterRequired changes:
file: ./coverage.out
withfiles: ./coverage.out
🔗 Analysis chain
Verify Codecov Action v5 compatibility
The update from v4 to v5 aligns with the PR objective of updating dependencies. However, as this is a major version bump, please ensure compatibility.
Let's verify the Codecov Action v5 requirements and changes:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 556
Script:
Length of output: 8069