Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
a2a9a95
migrate common utils from core/internal/testutils/testutils.go (#214)
dhaidashenko Nov 3, 2023
06f1193
add nop info lookup token
engnke Jan 12, 2026
3774981
refactoring
engnke Jan 13, 2026
653eb47
Merge branch 'main' into feature/INFOPLAT-3250-chip-ingress-add-nop-i…
engnke Jan 13, 2026
75cffa9
make headerfunc unexported
engnke Jan 13, 2026
4741148
fix testifylint errors
engnke Jan 13, 2026
8ebfe74
fix import order
engnke Jan 13, 2026
d0a5266
Update pkg/chipingress/client_test.go
engnke Jan 14, 2026
39941bd
Enable continue-on-error for golangci_lint job
jmank88 Jan 14, 2026
d457290
Use module path for golangci-lint report XML
chainchad Jan 14, 2026
36b468d
Add debug step to find path to xml report for golangci-lint
chainchad Jan 14, 2026
dcb4562
refactor for lint
engnke Jan 14, 2026
46d22f6
Show working dir
chainchad Jan 14, 2026
1cd1ba7
Merge branch 'feature/INFOPLAT-3250-chip-ingress-add-nop-info-lookup-…
chainchad Jan 14, 2026
6f5f5fe
Revert "Show working dir"
chainchad Jan 14, 2026
f0d204f
Revert "Add debug step to find path to xml report for golangci-lint"
chainchad Jan 14, 2026
ba135e2
Revert "refactor for lint"
chainchad Jan 14, 2026
3ca939c
Use updated version of ci-lint-go action with stdout support
chainchad Jan 14, 2026
a62dc01
Add debug step to find path to xml report for golangci-lint
chainchad Jan 14, 2026
c6979fb
Beef up debugging
chainchad Jan 14, 2026
fa439d6
Search for all issues to debug
chainchad Jan 14, 2026
9e56292
Use temporary branch for action whilst debugging
chainchad Jan 14, 2026
e331b53
Add more debugging 2
chainchad Jan 14, 2026
a603194
Set golangci-lint args explicitly
chainchad Jan 14, 2026
29e1948
Use absolute path
chainchad Jan 14, 2026
3b96bdb
Set a uniq artifact name for lint report
chainchad Jan 14, 2026
5a1c7bf
Sanitize artifact name for linting xml report
chainchad Jan 14, 2026
d74980f
Use latest major tag of action
chainchad Jan 15, 2026
2f6e1a5
Merge branch 'develop' into INFOPLAT-3250/test-lint
chainchad Jan 15, 2026
6578122
Merge branch 'main' into INFOPLAT-3250/test-lint
chainchad Jan 15, 2026
b303b53
Fix artifact name
chainchad Jan 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/golangci_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,30 @@
version=$(grep '^golangci-lint ' .tool-versions | awk '{print $2}')
echo "version=${version}" | tee -a "$GITHUB_OUTPUT"

- name: Sanitize artifact name
id: artifact-name
env:
MODULE: ${{ matrix.module }}
run: |
safe_name="${MODULE#./}"
safe_name="${safe_name#/}"
safe_name="${safe_name//\//-}"
if [[ -z "$safe_name" || "$safe_name" = "." ]]; then
safe_name="root"
fi
echo "value=golangci-lint-report-${safe_name}" | tee -a "$GITHUB_OUTPUT"

- name: golangci-lint ${{ matrix.module }}
if: ${{ always() && !contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }}
# NOTE: Keep this version in sync with ACTION_CI_LINT_GO_GIT_TAG in ./script/lint.sh
uses: smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/3.0.0
uses: smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/v4
Comment thread Dismissed
with:
checkout-repo: false
artifact-name: ${{ steps.artifact-name.outputs.value }}
golangci-lint-version: v${{ steps.get-version.outputs.version }}
go-directory: ${{ matrix.module }}
golangci-lint-args: --output.text.path=stdout --output.checkstyle.path=${{ matrix.module }}/golangci-lint-report.xml
golangci-lint-args: "--output.text.path=stdout --output.checkstyle.path=${{ github.workspace }}/${{ matrix.module }}/golangci-lint-report.xml"
only-new-issues: false

golangci-lint:
# Required sink job that waits for all lint jobs to complete
Expand Down
29 changes: 0 additions & 29 deletions pkg/utils/tests/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ package tests

import (
"context"
"os"
"strconv"
"sync"
"testing"
"time"

Expand Down Expand Up @@ -71,29 +68,3 @@ func RequireSignal(t *testing.T, ch <-chan struct{}, failMsg string) {
t.Fatal(failMsg)
}
}

// SkipShort skips tb during -short runs, and notes why.
func SkipShort(tb testing.TB, why string) {
if testing.Short() {
tb.Skipf("skipping: %s", why)
}
}

const envVarRunFlakey = "CL_RUN_FLAKEY"

var runFlakey = sync.OnceValues(func() (bool, error) {
s := os.Getenv(envVarRunFlakey)
if s == "" {
return false, nil
}
return strconv.ParseBool(s)
})

func SkipFlakey(t *testing.T, ticketURL string) {
if ok, err := runFlakey(); !ok {
if err != nil {
t.Logf("Failed to parse %s: %v", envVarRunFlakey, err)
}
t.Skip("Flakey", ticketURL)
}
}
2 changes: 1 addition & 1 deletion script/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if [[ -n "${GOLANGCI_LINT_CONFIG:-}" ]]; then
echo "Using user-provided config: $CONFIG_FILE"
else
# NOTE: Keep this version in sync with the action tag in /.github/workflows/golangci_lint.yml
ACTION_CI_LINT_GO_GIT_TAG="${CI_LINT_GO_VERSION:-ci-lint-go/3.0.0}"
ACTION_CI_LINT_GO_GIT_TAG="${CI_LINT_GO_VERSION:-ci-lint-go/v4}"
# Download remote golangci-lint config to gitignored directory
REMOTE_CONFIG_URL="https://raw.githubusercontent.com/smartcontractkit/.github/refs/tags/${ACTION_CI_LINT_GO_GIT_TAG}/actions/ci-lint-go/files/golangci-default.yml"
CONFIG_FILE="$DIRECTORY/golangci.remote.yml"
Expand Down
Loading