Skip to content

Windows tests - #79

Open
robertmin1 wants to merge 1 commit into
namecoin:masterfrom
robertmin1:windows-tests
Open

Windows tests#79
robertmin1 wants to merge 1 commit into
namecoin:masterfrom
robertmin1:windows-tests

Add AIA functional tests and fix server lint warnings (windows)

409d91c
Select commit
Loading
Failed to load commit list.
Cirrus CI / Go Lint linux completed Apr 10, 2026 in 41s

Task Summary

Instruction lint failed in 00:29

Details

⚠️ Not enough compute credits to prioritize tasks!
ℹ️ Scheduling was delayed due to a concurrency limit on community tasks

✅ 00:00 clone
✅ 00:03 install
✅ 00:01 path
✅ 00:01 kingpin
✅ 00:03 fetch
❌ 00:29 lint

cd $(go env GOPATH)/src/github.com/$CIRRUS_REPO_FULL_NAME/
golangci-lint run $GOLANGCI_ARGS -v --timeout 5m --output.json.path $CIRRUS_WORKING_DIR/lint-report.json
level=info msg="golangci-lint has version 2.11.4 built with go1.26.1 from 8f3b0c7e on 2026-03-22T17:35:14Z"
level=info msg="[config_reader] Config search paths: [./ /go/src/github.com/namecoin/encaya /go/src/github.com/namecoin /go/src/github.com /go/src /go / /root]"
level=info msg="[config_reader] Used config file .golangci.yml"
level=info msg="[config_reader] Module name \"github.com/namecoin/encaya\""
level=info msg="[goenv] Read go env for 4.03586ms: map[string]string{\"GOCACHE\":\"/root/.cache/go-build\", \"GOROOT\":\"/usr/local/go\"}"
level=info msg="[lintersdb] Active 17 linters: [cyclop err113 errcheck forcetypeassert funlen gocognit goconst gocritic gosec govet ineffassign mnd modernize nlreturn staticcheck unused wsl_v5]"
level=info msg="[loader] Go packages loading at mode 8767 (exports_file|name|types_sizes|deps|files|imports|compiled_files) took 22.748203143s"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 1.29356ms"
level=info msg="[linters_context/goanalysis] analyzers took 10.71226553s with top 10 stages: buildir: 6.693269963s, printf: 736.930441ms, fact_purity: 509.390276ms, typedness: 489.671336ms, nilness: 488.277781ms, SA5012: 464.226327ms, newexpr: 359.915078ms, fact_deprecated: 277.973942ms, ctrlflow: 215.330872ms, inspect: 185.973921ms"
level=info msg="[runner/max_same_issues] 13/16 issues with text \"return with no blank line before\" were hidden, use --max-same-issues"
level=info msg="[runner/max_same_issues] 3/6 issues with text \"G120: Parsing form data without limiting request body size can allow memory exhaustion (use http.MaxBytesReader)\" were hidden, use --max-same-issues"
level=info msg="[runner/max_same_issues] 2/5 issues with text \"continue with no blank line before\" were hidden, use --max-same-issues"
level=info msg="[runner/max_same_issues] 1/4 issues with text \"Magic number: 0600, in <argument> detected\" were hidden, use --max-same-issues"
level=info msg="[runner] Issues before processing: 80, after processing: 48"
level=info msg="[runner] Processors filtering stat (in/out): max_from_linter: 48/48, severity-rules: 48/48, path_prettifier: 48/48, sort_results: 48/48, exclusion_rules: 80/80, max_per_file_from_linter: 67/67, path_shortener: 48/48, path_absoluter: 80/80, cgo: 80/80, invalid_issue: 80/80, path_relativity: 80/80, exclusion_paths: 80/80, nolint_filter: 80/76, diff: 76/76, uniq_by_line: 76/67, generated_file_filter: 80/80, max_same_issues: 67/48, source_code: 48/48, filename_unadjuster: 80/80, fixer: 76/76"
level=info msg="[runner] processing took 1.95291ms with stages: nolint_filter: 1.62954ms, source_code: 90.68µs, generated_file_filter: 90.6µs, max_same_issues: 54.75µs, path_relativity: 42.86µs, uniq_by_line: 14.06µs, sort_results: 8.04µs, max_from_linter: 5.56µs, path_shortener: 5.33µs, invalid_issue: 2.21µs, cgo: 2.19µs, max_per_file_from_linter: 1.97µs, path_absoluter: 1.51µs, filename_unadjuster: 900ns, fixer: 570ns, diff: 550ns, path_prettifier: 530ns, exclusion_paths: 480ns, exclusion_rules: 460ns, severity-rules: 120ns"
level=info msg="[runner] linters took 6.908440691s with stages: goanalysis_metalinter: 6.906427481s"
48 issues:
* cyclop: 3
* err113: 4
* forcetypeassert: 1
* gocognit: 1
* goconst: 1
* gocritic: 3
* gosec: 4
* mnd: 13
* modernize: 4
* nlreturn: 6
* wsl_v5: 8
level=info msg="File cache stats: 3 entries of total size 29.7KiB"
level=info msg="Memory: 298 samples, avg is 103.5MB, max is 400.4MB"
level=info msg="Execution took 29.662649704s"
������������

Annotations

Check failure on line 579 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L579

calculated cyclomatic complexity for function lookupCert is 14, max is 10 (cyclop)

Check failure on line 846 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L846

calculated cyclomatic complexity for function GenerateCerts is 13, max is 10 (cyclop)

Check failure on line 35 in verifystapled/verify.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

verifystapled/verify.go#L35

calculated cyclomatic complexity for function Verify is 19, max is 10 (cyclop)

Check failure on line 459 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L459

do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"qlib error: nil response\")" (err113)

Check failure on line 465 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L465

do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"qlib error: return code not Success or NXDOMAIN\")" (err113)

Check failure on line 38 in verifystapled/verify.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

verifystapled/verify.go#L38

do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"empty message header\")" (err113)

Check failure on line 43 in verifystapled/verify.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

verifystapled/verify.go#L43

do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"empty pubtype\")" (err113)

Check failure on line 755 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L755

right hand must be only type assertion (forcetypeassert)

Check failure on line 431 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L431

cognitive complexity 52 of func `(*Server).lookupDNS` is high (> 30) (gocognit)

Check failure on line 582 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L582

string `Namecoin Root CA` has 3 occurrences, make it a constant (goconst)

Check failure on line 514 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L514

ifElseChain: rewrite if-else to switch statement (gocritic)

Check failure on line 531 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L531

commentFormatting: put a space between `//` and comment text (gocritic)

Check failure on line 59 in verifystapled/verify.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

verifystapled/verify.go#L59

ifElseChain: rewrite if-else to switch statement (gocritic)

Check failure on line 664 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L664

G120: Parsing form data without limiting request body size can allow memory exhaustion (use http.MaxBytesReader) (gosec)

Check failure on line 712 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L712

G120: Parsing form data without limiting request body size can allow memory exhaustion (use http.MaxBytesReader) (gosec)

Check failure on line 737 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L737

G705: XSS via taint analysis (gosec)

Check failure on line 838 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L838

G120: Parsing form data without limiting request body size can allow memory exhaustion (use http.MaxBytesReader) (gosec)

Check failure on line 231 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L231

Magic number: 5, in <assign> detected (mnd)

Check failure on line 232 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L232

Magic number: 10, in <assign> detected (mnd)

Check failure on line 241 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L241

Magic number: 5, in <assign> detected (mnd)

Check failure on line 242 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L242

Magic number: 10, in <assign> detected (mnd)

Check failure on line 423 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L423

Magic number: 600, in <assign> detected (mnd)

Check failure on line 424 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L424

Magic number: 2, in <assign> detected (mnd)

Check failure on line 551 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L551

Magic number: 2, in <condition> detected (mnd)

Check failure on line 731 in server/server.go

See this annotation in the file changed.

@cirrus-ci cirrus-ci / Go Lint linux

server/server.go#L731

Magic number: 2, in <operation> detected (mnd)