Skip to content

Commit 5ce42bf

Browse files
committed
chore: rekres
Rekres and bump deps. Signed-off-by: Noel Georgi <[email protected]>
1 parent 81092b2 commit 5ce42bf

File tree

11 files changed

+534
-517
lines changed

11 files changed

+534
-517
lines changed

.conform.yaml

Lines changed: 44 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,48 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2022-08-24T20:09:47Z by kres latest.
3+
# Generated on 2024-07-03T11:00:57Z by kres 2c4ff8a.
44

5-
---
65
policies:
7-
- type: commit
8-
spec:
9-
dco: true
10-
gpg:
11-
required: true
12-
identity:
13-
gitHubOrganization: siderolabs
14-
spellcheck:
15-
locale: US
16-
maximumOfOneCommit: true
17-
header:
18-
length: 89
19-
imperative: true
20-
case: lower
21-
invalidLastCharacters: .
22-
body:
23-
required: true
24-
conventional:
25-
types: ["chore","docs","perf","refactor","style","test","release"]
26-
scopes: [".*"]
27-
- type: license
28-
spec:
29-
skipPaths:
30-
- .git/
31-
- testdata/
32-
includeSuffixes:
33-
- .go
34-
excludeSuffixes:
35-
- .pb.go
36-
- .pb.gw.go
37-
header: "// This Source Code Form is subject to the terms of the Mozilla Public\u000A// License, v. 2.0. If a copy of the MPL was not distributed with this\u000A// file, You can obtain one at http://mozilla.org/MPL/2.0/.\u000A"
6+
- type: commit
7+
spec:
8+
dco: true
9+
gpg:
10+
required: true
11+
identity:
12+
gitHubOrganization: siderolabs
13+
spellcheck:
14+
locale: US
15+
maximumOfOneCommit: true
16+
header:
17+
length: 89
18+
imperative: true
19+
case: lower
20+
invalidLastCharacters: .
21+
body:
22+
required: true
23+
conventional:
24+
types:
25+
- chore
26+
- docs
27+
- perf
28+
- refactor
29+
- style
30+
- test
31+
- release
32+
scopes:
33+
- .*
34+
- type: license
35+
spec:
36+
root: .
37+
skipPaths:
38+
- .git/
39+
- testdata/
40+
includeSuffixes:
41+
- .go
42+
excludeSuffixes:
43+
- .pb.go
44+
- .pb.gw.go
45+
header: |
46+
// This Source Code Form is subject to the terms of the Mozilla Public
47+
// License, v. 2.0. If a copy of the MPL was not distributed with this
48+
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

.github/workflows/ci.yaml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2023-11-23T13:48:43Z by kres latest.
3+
# Generated on 2024-07-03T12:32:21Z by kres 2c4ff8a.
44

55
name: default
66
concurrency:
@@ -29,26 +29,44 @@ jobs:
2929
- self-hosted
3030
- generic
3131
if: (!startsWith(github.head_ref, 'renovate/') && !startsWith(github.head_ref, 'dependabot/'))
32-
services:
33-
buildkitd:
34-
image: moby/buildkit:v0.12.3
35-
options: --privileged
36-
ports:
37-
- 1234:1234
38-
volumes:
39-
- /var/lib/buildkit/${{ github.repository }}:/var/lib/buildkit
40-
- /usr/etc/buildkit/buildkitd.toml:/etc/buildkit/buildkitd.toml
4132
steps:
33+
- name: gather-system-info
34+
id: system-info
35+
uses: kenchan0130/[email protected]
36+
continue-on-error: true
37+
- name: print-system-info
38+
run: |
39+
MEMORY_GB=$((${{ steps.system-info.outputs.totalmem }}/1024/1024/1024))
40+
41+
OUTPUTS=(
42+
"CPU Core: ${{ steps.system-info.outputs.cpu-core }}"
43+
"CPU Model: ${{ steps.system-info.outputs.cpu-model }}"
44+
"Hostname: ${{ steps.system-info.outputs.hostname }}"
45+
"NodeName: ${NODE_NAME}"
46+
"Kernel release: ${{ steps.system-info.outputs.kernel-release }}"
47+
"Kernel version: ${{ steps.system-info.outputs.kernel-version }}"
48+
"Name: ${{ steps.system-info.outputs.name }}"
49+
"Platform: ${{ steps.system-info.outputs.platform }}"
50+
"Release: ${{ steps.system-info.outputs.release }}"
51+
"Total memory: ${MEMORY_GB} GB"
52+
)
53+
54+
for OUTPUT in "${OUTPUTS[@]}";do
55+
echo "${OUTPUT}"
56+
done
57+
continue-on-error: true
4258
- name: checkout
4359
uses: actions/checkout@v4
4460
- name: Unshallow
4561
run: |
4662
git fetch --prune --unshallow
4763
- name: Set up Docker Buildx
64+
id: setup-buildx
4865
uses: docker/setup-buildx-action@v3
4966
with:
5067
driver: remote
51-
endpoint: tcp://localhost:1234
68+
endpoint: tcp://buildkit-amd64.ci.svc.cluster.local:1234
69+
timeout-minutes: 10
5270
- name: base
5371
run: |
5472
make base
@@ -58,9 +76,6 @@ jobs:
5876
- name: unit-tests-race
5977
run: |
6078
make unit-tests-race
61-
- name: coverage
62-
run: |
63-
make coverage
6479
- name: talos-backup
6580
run: |
6681
make talos-backup
@@ -84,11 +99,11 @@ jobs:
8499
run: |
85100
make image-talos-backup
86101
- name: push-talos-backup-latest
87-
if: github.event_name != 'pull_request'
102+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
88103
env:
89104
PUSH: "true"
90105
run: |
91-
make image-talos-backup TAG=latest
106+
make image-talos-backup IMAGE_TAG=latest
92107
- name: integration
93108
run: |
94109
make integration

.golangci.yml

Lines changed: 38 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2023-11-20T06:19:52Z by kres latest.
3+
# Generated on 2024-07-03T11:00:57Z by kres 2c4ff8a.
44

55
# options for analysis running
66
run:
77
timeout: 10m
88
issues-exit-code: 1
99
tests: true
10-
build-tags: []
11-
skip-dirs: []
12-
skip-dirs-use-default: true
13-
skip-files: []
10+
build-tags: [ ]
1411
modules-download-mode: readonly
1512

1613
# output configuration options
1714
output:
18-
format: colored-line-number
15+
formats:
16+
- format: colored-line-number
17+
path: stdout
1918
print-issued-lines: true
2019
print-linter-name: true
2120
uniq-by-line: true
@@ -32,56 +31,35 @@ linters-settings:
3231
check-blank: true
3332
exhaustive:
3433
default-signifies-exhaustive: false
35-
funlen:
36-
lines: 60
37-
statements: 40
3834
gci:
39-
local-prefixes: github.com/siderolabs/talos-backup/
35+
sections:
36+
- standard # Standard section: captures all standard packages.
37+
- default # Default section: contains all imports that could not be matched to another section type.
38+
- localmodule # Imports from the same module.
4039
gocognit:
4140
min-complexity: 30
42-
ireturn:
43-
allow:
44-
- anon
45-
- error
46-
- empty
47-
- stdlib
48-
- github.com\/talos-systems\/kres\/internal\/dag.Node
4941
nestif:
5042
min-complexity: 5
5143
goconst:
5244
min-len: 3
5345
min-occurrences: 3
5446
gocritic:
55-
disabled-checks: []
47+
disabled-checks: [ ]
5648
gocyclo:
5749
min-complexity: 20
5850
godot:
59-
check-all: false
60-
godox:
61-
keywords: # default keywords are TODO, BUG, and FIXME, these can be overwritten by this setting
62-
- NOTE
63-
- OPTIMIZE # marks code that should be optimized before merging
64-
- HACK # marks hack-arounds that should be removed before merging
51+
scope: declarations
6552
gofmt:
6653
simplify: true
67-
goimports:
68-
local-prefixes: github.com/siderolabs/talos-backup/
69-
golint:
70-
min-confidence: 0.8
71-
gomnd:
72-
settings: {}
73-
gomodguard: {}
54+
gomodguard: { }
7455
govet:
75-
check-shadowing: true
7656
enable-all: true
77-
disable:
78-
- loopclosure
7957
lll:
8058
line-length: 200
8159
tab-width: 4
8260
misspell:
8361
locale: US
84-
ignore-words: []
62+
ignore-words: [ ]
8563
nakedret:
8664
max-func-lines: 30
8765
prealloc:
@@ -90,16 +68,15 @@ linters-settings:
9068
for-loops: false # Report preallocation suggestions on for loops, false by default
9169
nolintlint:
9270
allow-unused: false
93-
allow-leading-space: false
94-
allow-no-explanation: []
71+
allow-no-explanation: [ ]
9572
require-explanation: false
9673
require-specific: true
97-
rowserrcheck: {}
98-
testpackage: {}
74+
rowserrcheck: { }
75+
testpackage: { }
9976
unparam:
10077
check-exported: false
10178
unused:
102-
check-exported: false
79+
local-variables-are-used: false
10380
whitespace:
10481
multi-if: false # Enforces newlines (or comments) after every multi-line if statement
10582
multi-func: false # Enforces newlines (or comments) after every multi-line function signature
@@ -115,59 +92,53 @@ linters-settings:
11592
gofumpt:
11693
extra-rules: false
11794
cyclop:
118-
# the maximal code complexity to report
119-
max-complexity: 20
120-
# depguard:
121-
# Main:
122-
# deny:
123-
# - github.com/OpenPeeDeeP/depguard # this is just an example
95+
# the maximal code complexity to report
96+
max-complexity: 20
97+
depguard:
98+
rules:
99+
prevent_unmaintained_packages:
100+
list-mode: lax # allow unless explicitly denied
101+
files:
102+
- $all
103+
deny:
104+
- pkg: io/ioutil
105+
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
124106

125107
linters:
126108
enable-all: true
127109
disable-all: false
128110
fast: false
129111
disable:
130112
- exhaustruct
131-
- exhaustivestruct
113+
- err113
132114
- forbidigo
133115
- funlen
134-
- gas
135116
- gochecknoglobals
136117
- gochecknoinits
137118
- godox
138-
- goerr113
139119
- gomnd
140120
- gomoddirectives
121+
- gosec
122+
- inamedparam
141123
- ireturn
124+
- mnd
142125
- nestif
143126
- nonamedreturns
144-
- nosnakecase
145127
- paralleltest
128+
- tagalign
146129
- tagliatelle
147130
- thelper
148-
- typecheck
149131
- varnamelen
150132
- wrapcheck
151-
- depguard # Disabled because starting with golangci-lint 1.53.0 it doesn't allow denylist alone anymore
152-
- tagalign
153-
- inamedparam
154133
- testifylint # complains about our assert recorder and has a number of false positives for assert.Greater(t, thing, 1)
155134
- protogetter # complains about us using Value field on typed spec, instead of GetValue which has a different signature
156-
# abandoned linters for which golangci shows the warning that the repo is archived by the owner
157-
- interfacer
158-
- maligned
159-
- golint
160-
- scopelint
161-
- varcheck
162-
- deadcode
163-
- structcheck
164-
- ifshort
165-
# disabled as it seems to be broken - goes into imported libraries and reports issues there
166-
- musttag
135+
- perfsprint # complains about us using fmt.Sprintf in non-performance critical code, updating just kres took too long
136+
- goimports # same as gci
137+
- musttag # seems to be broken - goes into imported libraries and reports issues there
167138

168139
issues:
169-
exclude: []
170-
exclude-rules: []
140+
exclude: [ ]
141+
exclude-rules: [ ]
171142
exclude-use-default: false
172143
exclude-case-sensitive: false
173144
max-issues-per-linter: 10

.kres.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ spec:
1919
inputs:
2020
- base
2121
---
22+
kind: service.CodeCov
23+
spec:
24+
enabled: false
25+
---
2226
kind: custom.Step
2327
name: integration.test
2428
spec:

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"gopls": {
3+
"build.buildFlags": [
4+
"-tags=integration",
5+
]
6+
}
7+
}

0 commit comments

Comments
 (0)