Skip to content

Commit e3adfd8

Browse files
authored
🐛 [job] fix bug with job message browsing (#92)
<!-- Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. SPDX-License-Identifier: Proprietary --> ### Description - bug fix ### Test Coverage <!-- Please put an `x` in the correct box e.g. `[x]` to indicate the testing coverage of this change. --> - [x] This change is covered by existing or additional automated tests. - [ ] Manual testing has been performed (and evidence provided) as automated testing was not feasible. - [ ] Additional tests are not required for this change (e.g. documentation update). --------- Co-authored-by: acabarbaye <[email protected]>
1 parent ad208a6 commit e3adfd8

20 files changed

+374
-240
lines changed

.codeclimate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,5 @@ exclude_patterns:
6262
- "**/vendor/"
6363
- "**/*.d.ts"
6464
- "**/*_test.go"
65+
- "**/*ffjson.go"
66+
- "**/*easyson.go"

.gitleaks.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved.
3-
# SPDX-License-Identifier: Proprietary
3+
# SPDX-License-Identifier: Apache-2.0
44
#
55

66
# Configuration based on gitleaks action default configuration but updated to ignore docs and secret baseline

.golangci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ linters:
2323
- revive
2424
- gocritic
2525
- unconvert
26+
- misspell
2627

2728
linters-settings:
2829
goimports:
@@ -32,3 +33,19 @@ linters-settings:
3233
- Standard
3334
- Default
3435
- Prefix(github.com/ARM-software)
36+
revive:
37+
rules:
38+
- name: exported
39+
severity: warning
40+
disabled: false
41+
arguments:
42+
- "disableStutteringCheck"
43+
misspell:
44+
locale: UK
45+
extra-words:
46+
- typo: "sanetisation"
47+
correction: "sanitisation"
48+
- typo: "sanetise"
49+
correction: "sanitise"
50+
- typo: "sanetising"
51+
correction: "sanitising"

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ changelog:
2727
- '^docs:'
2828
- '^changes:'
2929
- '^test:'
30+
sboms:
31+
- artifacts: source
3032
release:
3133
discussion_category_name: Releases
3234
# If the version tag looks like a pre-release e.g. beta then the GitHub release is set to prerelease

.pre-commit-config.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,19 @@ repos:
1111
types: [go]
1212
pass_filenames: false
1313

14-
#- repo: https://github.com/ARMmbed/continuous-delivery-scripts.git
15-
# rev: 2.5.0
16-
# hooks:
17-
# - id: licensing
14+
- repo: https://github.com/Yelp/detect-secrets
15+
rev: v1.0.3
16+
hooks:
17+
- id: detect-secrets
18+
args: ['--baseline', '.secrets.baseline','--exclude-files "".*go\.sum$"']
19+
20+
21+
- repo: https://github.com/golangci/misspell
22+
rev: v0.6.0
23+
hooks:
24+
- id: misspell
25+
26+
- repo: https://github.com/ARMmbed/continuous-delivery-scripts.git
27+
rev: 2.5.0
28+
hooks:
29+
- id: licensing

changes/20250103154248.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:arrow_up: Upgrade dependencies

changes/20250103154321.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:recycle: Change mocking dependency to `go.uber.org/mock`

changes/20250103154727.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:gear: Update linters configuration

changes/20250103163519.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:bug: `[job]` fix bug with job message browsing

utils/go.mod

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ module github.com/ARM-software/embedded-development-services-client-utils/utils
33
go 1.23
44

55
require (
6-
github.com/ARM-software/embedded-development-services-client/client v1.37.2
7-
github.com/ARM-software/golang-utils/utils v1.75.1
6+
github.com/ARM-software/embedded-development-services-client/client v1.41.1
7+
github.com/ARM-software/golang-utils/utils v1.77.0
88
github.com/go-faker/faker/v4 v4.5.0
99
github.com/go-logr/logr v1.4.2
10-
github.com/golang/mock v1.6.0
1110
github.com/stretchr/testify v1.10.0
1211
go.uber.org/atomic v1.11.0
1312
go.uber.org/goleak v1.3.0
14-
golang.org/x/sync v0.9.0
13+
go.uber.org/mock v0.5.0
14+
golang.org/x/sync v0.10.0
1515
)
1616

1717
require (
@@ -20,59 +20,61 @@ require (
2020
github.com/bmatcuk/doublestar/v3 v3.0.0 // indirect
2121
github.com/bombsimon/logrusr/v4 v4.1.0 // indirect
2222
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
23-
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
23+
github.com/deckarep/golang-set/v2 v2.7.0 // indirect
2424
github.com/djherbis/times v1.6.0 // indirect
2525
github.com/dolmen-go/contextio v1.0.0 // indirect
2626
github.com/ebitengine/purego v0.8.1 // indirect
2727
github.com/evanphx/hclogr v0.2.0 // indirect
28-
github.com/fatih/color v1.16.0 // indirect
29-
github.com/fsnotify/fsnotify v1.7.0 // indirect
28+
github.com/fatih/color v1.18.0 // indirect
29+
github.com/fsnotify/fsnotify v1.8.0 // indirect
3030
github.com/go-logr/stdr v1.2.2 // indirect
3131
github.com/go-logr/zapr v1.3.0 // indirect
32-
github.com/go-ole/go-ole v1.2.6 // indirect
32+
github.com/go-ole/go-ole v1.3.0 // indirect
3333
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
3434
github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f // indirect
35-
github.com/google/cabbie v1.0.2 // indirect
36-
github.com/google/glazier v0.0.0-20211029225403-9f766cca891d // indirect
35+
github.com/google/cabbie v1.0.5 // indirect
36+
github.com/google/glazier v0.0.0-20250102133340-c90d5bf10f5f // indirect
3737
github.com/hashicorp/go-hclog v1.6.3 // indirect
3838
github.com/hashicorp/hcl v1.0.0 // indirect
39-
github.com/iamacarpet/go-win64api v0.0.0-20230324134531-ef6dbdd6db97 // indirect
39+
github.com/iamacarpet/go-win64api v0.0.0-20240507095429-873e84e85847 // indirect
4040
github.com/joho/godotenv v1.5.1 // indirect
41-
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
42-
github.com/magiconair/properties v1.8.7 // indirect
41+
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
42+
github.com/magiconair/properties v1.8.9 // indirect
4343
github.com/mattn/go-colorable v0.1.13 // indirect
4444
github.com/mattn/go-isatty v0.0.20 // indirect
4545
github.com/mitchellh/go-homedir v1.1.0 // indirect
4646
github.com/mitchellh/mapstructure v1.5.0 // indirect
47-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
48-
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
47+
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
48+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
49+
github.com/petermattis/goid v0.0.0-20241211131331-93ee7e083c43 // indirect
4950
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
50-
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
51+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
5152
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5 // indirect
5253
github.com/rs/zerolog v1.33.0 // indirect
53-
github.com/sagikazarmark/locafero v0.4.0 // indirect
54+
github.com/sagikazarmark/locafero v0.6.0 // indirect
5455
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
5556
github.com/sasha-s/go-deadlock v0.3.5 // indirect
56-
github.com/scjalliance/comshim v0.0.0-20190308082608-cf06d2532c4e // indirect
57-
github.com/shirou/gopsutil/v4 v4.24.10 // indirect
57+
github.com/scjalliance/comshim v0.0.0-20240712181150-e070933cb68e // indirect
58+
github.com/shirou/gopsutil/v4 v4.24.12 // indirect
5859
github.com/sirupsen/logrus v1.9.3 // indirect
5960
github.com/sourcegraph/conc v0.3.0 // indirect
6061
github.com/spaolacci/murmur3 v1.1.0 // indirect
6162
github.com/spf13/afero v1.11.0 // indirect
62-
github.com/spf13/cast v1.6.0 // indirect
63+
github.com/spf13/cast v1.7.1 // indirect
6364
github.com/spf13/pflag v1.0.5 // indirect
6465
github.com/spf13/viper v1.19.0 // indirect
6566
github.com/subosito/gotenv v1.6.0 // indirect
66-
github.com/tklauser/go-sysconf v0.3.12 // indirect
67-
github.com/tklauser/numcpus v0.6.1 // indirect
67+
github.com/tklauser/go-sysconf v0.3.14 // indirect
68+
github.com/tklauser/numcpus v0.9.0 // indirect
6869
github.com/yusufpapurcu/wmi v1.2.4 // indirect
6970
github.com/zailic/slogr v0.0.2-alpha // indirect
70-
go.uber.org/multierr v1.10.0 // indirect
71+
go.uber.org/multierr v1.11.0 // indirect
7172
go.uber.org/zap v1.27.0 // indirect
72-
golang.org/x/crypto v0.29.0 // indirect
73-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
74-
golang.org/x/sys v0.27.0 // indirect
75-
golang.org/x/text v0.20.0 // indirect
73+
golang.org/x/crypto v0.31.0 // indirect
74+
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect
75+
golang.org/x/sys v0.28.0 // indirect
76+
golang.org/x/text v0.21.0 // indirect
7677
gopkg.in/ini.v1 v1.67.0 // indirect
78+
gopkg.in/toast.v1 v1.0.0-20180812000517-0a84660828b2 // indirect
7779
gopkg.in/yaml.v3 v3.0.1 // indirect
7880
)

0 commit comments

Comments
 (0)