Skip to content

Commit

Permalink
Release 5.11.1 (#67)
Browse files Browse the repository at this point in the history
* bump deps versions

* Update build.yml

* Update build-dev-image.yml

* Update build-feature-image.yaml

* Update build-rc-image.yaml

* Update dockerhub-release.yaml

* Update release.yml

* Bump google.golang.org/protobuf from 1.31.0 to 1.33.0

Bumps google.golang.org/protobuf from 1.31.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update dependencies

* Update build.yml

* Disable linters and update golangci-lint command in Makefile

* bump deps versions
update compiler version

* parses path prefix the way traefik does

* updates compiler and linter versions across all github actions

* adjust linter configuration
make sure all actions use the same compiler version

* Update according to path handling without rewrite (#65)

* Add jira versions sync workflow

* Bump golang.org/x/net from 0.22.0 to 0.23.0 (#66)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](golang/net@v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update dependencies

* Improve error logging for info endpoint response collection

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Andrei Varabyeu <andrei_varabyeu@epam.com>
Co-authored-by: Vadzim Hushchanskou <HardNorth@users.noreply.github.com>
Co-authored-by: PeeAyBee <pavel_bortnik@epam.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed Jul 4, 2024
1 parent fb31e87 commit 53c37a5
Show file tree
Hide file tree
Showing 18 changed files with 2,135 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-dev-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create variables
id: vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-feature-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
if: (!startsWith(github.head_ref, 'rc/') || !startsWith(github.head_ref, 'hotfix/') || !startsWith(github.head_ref, 'master') || !startsWith(github.head_ref, 'main'))
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create variables
id: vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-rc-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
environment: rc
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Create variables
id: vars
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,22 @@ jobs:
id: date
run: 'echo "BUILD_DATE=`date +%FT%T%z`" >> $GITHUB_ENV'

- uses: actions/checkout@v3
- uses: actions/checkout@v4
id: checkout

- name: Setup Go
id: setup
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19.9'
go-version: '1.22'

- name: Go Linter
id: linter
uses: golangci/golangci-lint-action@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.48.0
args: '--deadline 10m'
version: 'v1.56'
args:
--timeout=10m
--fast

- name: Go Tests
id: tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerhub-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ jobs:
RELEASE_URL: ${{ steps.releaseUrl.outputs.RELEASE_URL }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19.9'
go-version: '1.22.1'

- name: Go Linter
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: v1.48.0
version: v1.56.0
args: '--deadline 10m'

- name: Go Tests
Expand Down Expand Up @@ -86,12 +86,12 @@ jobs:
arch: 'arm64'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19.9'
go-version: '1.22.1'

- name: Get Date
run: 'echo "BUILD_DATE=`date +%FT%T%z`" >> $GITHUB_ENV'
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
needs: 'build'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup git credentials
uses: oleksiyrudenko/gha-git-credentials@v2.1.1
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/sync-jira-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Add GitHub release version to Jira issues

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
call-jira-sync:
name: Call Jira versions update
uses: reportportal/.github/.github/workflows/update-jira-versions.yaml@main
with:
jira-server: ${{ vars.JIRA_SERVER }}
secrets: inherit
47 changes: 26 additions & 21 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0.8
depguard:
rules:
prevent_unmaintained_packages:
list-mode: lax # allow unless explicitely denied
files:
- $all
- "!$test"
allow:
- $gostd
deny:
- pkg: io/ioutil
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
gocyclo:
min-complexity: 10
max-complexity: 12
maligned:
suggest-new: true
dupl:
threshold: 500
goconst:
Expand All @@ -19,6 +25,8 @@ linters-settings:
line-length: 140
goimports:
local-prefixes: github.com/reportportal/service-index
gci:
local-prefixes: github.com/reportportal/service-index
gocritic:
enabled-tags:
- performance
Expand All @@ -34,31 +42,28 @@ linters-settings:
- docStub

linters:
enable-all: true
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- performance
- unused
disable:
- prealloc
- gochecknoglobals
- gocyclo
- godot
- gocritic
- interfacer
- wsl
- funlen
- unused
- gomnd
- godot
- exhaustivestruct
- exhaustruct
- varnamelen
- gci
run:
# default concurrency is a available CPU number
concurrency: 1
# skip-dirs:
# - test/testdata_etc

issues:
# exclude-use-default: false
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec
- gosec
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM} golang:1.19.1-alpine AS builder
FROM --platform=${BUILDPLATFORM} golang:1.22.3-alpine AS builder

ENV APP_DIR=/go/src/github.com/org/repo

Expand All @@ -24,7 +24,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build \
-X ${PACKAGE_COMMONS}/commons.version=${APP_VERSION}" \
-o app ./

FROM --platform=${BUILDPLATFORM} alpine:3.16.2
FROM --platform=${BUILDPLATFORM} alpine:3.20.0
ENV DEPOLY_DIR=/app/service-index
RUN mkdir -p ${DEPOLY_DIR}
WORKDIR ${DEPOLY_DIR}
Expand Down
2 changes: 1 addition & 1 deletion DockerfileDev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16.2
FROM alpine:3.20

MAINTAINER Andrei Varabyeu <andrei_varabyeu@epam.com>
LABEL quay.expires-after=1w
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ test:


checkstyle:
golangci-lint run --deadline 10m
golangci-lint run --fast --disable=errcheck --disable=gas --deadline 10m

lint: checkstyle

fmt:
gofmt -l -w -s ${GOFILES_NOVENDOR}
goimports -local "github.com/reportportal/service-index" -l -w ${GOFILES_NOVENDOR}
gofumpt -l -w ${GOFILES_NOVENDOR}
goimports -local github.com/reportportal/service-index -w ${GOFILES_NOVENDOR}
gci write --skip-generated --section Standard --section Default --section "Prefix(github.com/reportportal/service-index)" ${GOFILES_NOVENDOR}

# Builds server
build:
Expand Down
Loading

0 comments on commit 53c37a5

Please sign in to comment.