Skip to content

Commit

Permalink
🐛 [job] fix bug with job message browsing (#92)
Browse files Browse the repository at this point in the history
<!--
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]>
  • Loading branch information
acabarbaye and acabarbaye authored Jan 3, 2025
1 parent ad208a6 commit e3adfd8
Show file tree
Hide file tree
Showing 20 changed files with 374 additions and 240 deletions.
2 changes: 2 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ exclude_patterns:
- "**/vendor/"
- "**/*.d.ts"
- "**/*_test.go"
- "**/*ffjson.go"
- "**/*easyson.go"
2 changes: 1 addition & 1 deletion .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved.
# SPDX-License-Identifier: Proprietary
# SPDX-License-Identifier: Apache-2.0
#

# Configuration based on gitleaks action default configuration but updated to ignore docs and secret baseline
Expand Down
17 changes: 17 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linters:
- revive
- gocritic
- unconvert
- misspell

linters-settings:
goimports:
Expand All @@ -32,3 +33,19 @@ linters-settings:
- Standard
- Default
- Prefix(github.com/ARM-software)
revive:
rules:
- name: exported
severity: warning
disabled: false
arguments:
- "disableStutteringCheck"
misspell:
locale: UK
extra-words:
- typo: "sanetisation"
correction: "sanitisation"
- typo: "sanetise"
correction: "sanitise"
- typo: "sanetising"
correction: "sanitising"
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ changelog:
- '^docs:'
- '^changes:'
- '^test:'
sboms:
- artifacts: source
release:
discussion_category_name: Releases
# If the version tag looks like a pre-release e.g. beta then the GitHub release is set to prerelease
Expand Down
20 changes: 16 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ repos:
types: [go]
pass_filenames: false

#- repo: https://github.com/ARMmbed/continuous-delivery-scripts.git
# rev: 2.5.0
# hooks:
# - id: licensing
- repo: https://github.com/Yelp/detect-secrets
rev: v1.0.3
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline','--exclude-files "".*go\.sum$"']


- repo: https://github.com/golangci/misspell
rev: v0.6.0
hooks:
- id: misspell

- repo: https://github.com/ARMmbed/continuous-delivery-scripts.git
rev: 2.5.0
hooks:
- id: licensing
1 change: 1 addition & 0 deletions changes/20250103154248.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:arrow_up: Upgrade dependencies
1 change: 1 addition & 0 deletions changes/20250103154321.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:recycle: Change mocking dependency to `go.uber.org/mock`
1 change: 1 addition & 0 deletions changes/20250103154727.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:gear: Update linters configuration
1 change: 1 addition & 0 deletions changes/20250103163519.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:bug: `[job]` fix bug with job message browsing
56 changes: 29 additions & 27 deletions utils/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ module github.com/ARM-software/embedded-development-services-client-utils/utils
go 1.23

require (
github.com/ARM-software/embedded-development-services-client/client v1.37.2
github.com/ARM-software/golang-utils/utils v1.75.1
github.com/ARM-software/embedded-development-services-client/client v1.41.1
github.com/ARM-software/golang-utils/utils v1.77.0
github.com/go-faker/faker/v4 v4.5.0
github.com/go-logr/logr v1.4.2
github.com/golang/mock v1.6.0
github.com/stretchr/testify v1.10.0
go.uber.org/atomic v1.11.0
go.uber.org/goleak v1.3.0
golang.org/x/sync v0.9.0
go.uber.org/mock v0.5.0
golang.org/x/sync v0.10.0
)

require (
Expand All @@ -20,59 +20,61 @@ require (
github.com/bmatcuk/doublestar/v3 v3.0.0 // indirect
github.com/bombsimon/logrusr/v4 v4.1.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/deckarep/golang-set/v2 v2.6.0 // indirect
github.com/deckarep/golang-set/v2 v2.7.0 // indirect
github.com/djherbis/times v1.6.0 // indirect
github.com/dolmen-go/contextio v1.0.0 // indirect
github.com/ebitengine/purego v0.8.1 // indirect
github.com/evanphx/hclogr v0.2.0 // indirect
github.com/fatih/color v1.16.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/fsnotify/fsnotify v1.8.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-logr/zapr v1.3.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
github.com/gogs/chardet v0.0.0-20211120154057-b7413eaefb8f // indirect
github.com/google/cabbie v1.0.2 // indirect
github.com/google/glazier v0.0.0-20211029225403-9f766cca891d // indirect
github.com/google/cabbie v1.0.5 // indirect
github.com/google/glazier v0.0.0-20250102133340-c90d5bf10f5f // indirect
github.com/hashicorp/go-hclog v1.6.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/iamacarpet/go-win64api v0.0.0-20230324134531-ef6dbdd6db97 // indirect
github.com/iamacarpet/go-win64api v0.0.0-20240507095429-873e84e85847 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/lufia/plan9stats v0.0.0-20240909124753-873cd0166683 // indirect
github.com/magiconair/properties v1.8.9 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7 // indirect
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
github.com/petermattis/goid v0.0.0-20241211131331-93ee7e083c43 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
github.com/rifflock/lfshook v0.0.0-20180920164130-b9218ef580f5 // indirect
github.com/rs/zerolog v1.33.0 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/locafero v0.6.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sasha-s/go-deadlock v0.3.5 // indirect
github.com/scjalliance/comshim v0.0.0-20190308082608-cf06d2532c4e // indirect
github.com/shirou/gopsutil/v4 v4.24.10 // indirect
github.com/scjalliance/comshim v0.0.0-20240712181150-e070933cb68e // indirect
github.com/shirou/gopsutil/v4 v4.24.12 // indirect
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.19.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/tklauser/go-sysconf v0.3.14 // indirect
github.com/tklauser/numcpus v0.9.0 // indirect
github.com/yusufpapurcu/wmi v1.2.4 // indirect
github.com/zailic/slogr v0.0.2-alpha // indirect
go.uber.org/multierr v1.10.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.20.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20241217172543-b2144cdd0a67 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/toast.v1 v1.0.0-20180812000517-0a84660828b2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit e3adfd8

Please sign in to comment.