[s390x] FTBFS golangci-lint appears to hang/time out

Bug #2076157 reported by Frode Nordahl
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
microovn
In Progress
High
Frode Nordahl

Bug Description

Excerpt of build log [0]:
:: + golangci-lint run --verbose
:: level=info msg="golangci-lint has version (devel) built with go1.22.4 from (1a55854aff4ef60cd8c4e709b650b281303ca7aa, modified: true, mod sum: \"\") on 2024-06-08T22:05:49Z"
:: level=info msg="[config_reader] Config search paths: [./ /build/microovn/parts/microovn/build /build/microovn/parts/microovn /build/microovn/parts /build/microovn /build / /root]"
:: level=info msg="[config_reader] Used config file .golangci.yml"
:: level=info msg="[lintersdb] Active 6 linters: [errcheck gosimple govet ineffassign revive staticcheck]"
[05/Aug/2024:19:52:07 +0000] "CONNECT proxy.golang.org:443 HTTP/1.1" 200 11106 "-" "Go-http-client/1.1"
:: level=info msg="[loader] Go packages loading at mode 575 (files|name|types_sizes|compiled_files|deps|exports_file|imports) took 45.104298937s"
:: level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 15.406449ms"
[05/Aug/2024:19:52:49 +0000] "CONNECT proxy.golang.org:443 HTTP/1.1" 200 14984 "-" "Go-http-client/1.1"
:: level=info msg="Memory: 596 samples, avg is 85.8MB, max is 384.1MB"
:: level=info msg="Execution took 1m0.000770144s"
:: level=info msg="[linters_context/goanalysis] analyzers took 50.038051143s with top 10 stages: buildir: 28.321992488s, the_only_name: 16.610086372s, inspect: 1.309701692s, printf: 622.593881ms, ctrlflow: 540.388428ms, fact_deprecated: 500.6398ms, fact_purity: 474.857935ms, nilness: 387.0322ms, SA5012: 266.770031ms, typedness: 237.469682ms"
:: level=info msg="[runner] Issues before processing: 11, after processing: 0"
:: level=info msg="[runner] Processors filtering stat (out/in): skip_dirs: 11/11, identifier_marker: 4/4, skip_files: 11/11, exclude-rules: 0/4, cgo: 11/11, invalid_issue: 11/11, autogenerated_exclude: 4/11, filename_unadjuster: 11/11, path_prettifier: 11/11, exclude: 4/4"
:: level=info msg="[runner] processing took 475.297µs with stages: identifier_marker: 184.07µs, autogenerated_exclude: 120.49µs, path_prettifier: 90.845µs, skip_dirs: 24.12µs, exclude-rules: 23.853µs, cgo: 15.043µs, invalid_issue: 4.856µs, filename_unadjuster: 1.938µs, nolint: 1.724µs, max_same_issues: 1.489µs, uniq_by_line: 1.003µs, skip_files: 956ns, fixer: 756ns, exclude: 671ns, max_from_linter: 638ns, source_code: 606ns, sort_results: 547ns, max_per_file_from_linter: 494ns, path_shortener: 422ns, diff: 399ns, severity-rules: 267ns, path_prefixer: 110ns"
:: level=info msg="[runner] linters took 22.942671779s with stages: goanalysis_metalinter: 22.941778681s"
:: level=info msg="File cache stats: 0 entries of total size 0B"
:: level=error msg="Timeout exceeded: try increasing it by passing --timeout option"
'override-build' in part 'microovn' failed with code 4.
Recommended resolution: Review the scriptlet and make sure it's correct.
Full execution log: '/root/.local/state/snapcraft/log/snapcraft-20240805-195009.504808.log'
Build failed

0: https://launchpadlibrarian.net/742433812/buildlog_snap_ubuntu_noble_s390x_microovn-main_BUILDING.txt.gz

Revision history for this message
Frode Nordahl (fnordahl) wrote (last edit ):

When checking the build manually it does succeed.

By default, `golangci-lint` operates with a timeout for execution of 1 minute [1]. That is a pretty low number when taking into account the size of the project and its dependencies and the potential load of the various build environments this project is exposed to.

I suggest we resolve this issue by just bumping the timeout to a more reasonable value.

1: https://golangci-lint.run/usage/configuration/

Revision history for this message
Frode Nordahl (fnordahl) wrote :
Changed in microovn:
assignee: nobody → Frode Nordahl (fnordahl)
importance: Undecided → High
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.