5d79abe523
[ #1608 ] shard: Add IO tag for rebuild
...
DCO action / DCO (pull_request) Successful in 44s
Vulncheck / Vulncheck (pull_request) Successful in 1m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m32s
Build / Build Components (pull_request) Successful in 1m40s
Tests and linters / Staticcheck (pull_request) Successful in 2m53s
Tests and linters / Tests with -race (pull_request) Successful in 3m10s
Tests and linters / Run gofumpt (pull_request) Successful in 3m10s
Tests and linters / Lint (pull_request) Successful in 3m42s
Tests and linters / Tests (pull_request) Successful in 4m13s
Tests and linters / gopls check (pull_request) Successful in 4m21s
Vulncheck / Vulncheck (push) Successful in 1m6s
Pre-commit hooks / Pre-commit (push) Successful in 1m30s
Build / Build Components (push) Successful in 2m8s
Tests and linters / Staticcheck (push) Successful in 2m54s
Tests and linters / Run gofumpt (push) Successful in 3m42s
Tests and linters / Lint (push) Successful in 3m53s
Tests and linters / gopls check (push) Successful in 4m3s
Tests and linters / Tests (push) Successful in 3m28s
OCI image / Build container images (push) Successful in 4m24s
Tests and linters / Tests with -race (push) Successful in 4m59s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:07 +03:00
0671c277db
[ #1608 ] tree: Add IO tag for tree sync requests
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:06 +03:00
92450a76ba
[ #1608 ] shard: Add IO tag to GC
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:06 +03:00
abba5b2089
[ #1608 ] writecache: Add IO tag to flush worker
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:06 +03:00
fd0c6c461d
[ #1608 ] cli: Drop redundant interceptors
...
There is no metrics or IO tags in cli.
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:05 +03:00
bfe325e61d
[ #1608 ] policer: Add IO tag to context
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:05 +03:00
acec938b2d
[ #1608 ] qos: Add client grpc interceptors
...
`qos` client interceptors replace internal IO tags `writecache`,
`policer` and `background` with `internal` IO tag for outcomming RPC.
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:04 +03:00
dc6aea7b79
[ #1608 ] control: Use IO tag critical
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:04 +03:00
170860c14a
[ #1608 ] logger: Add IO tag logging
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:03 +03:00
12da2f8262
[ #1608 ] object: Add IO tag adjustment layer
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:03 +03:00
f6b3f79e89
[ #1608 ] qos: Add qos service to adjust incoming IO tags
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:43:03 +03:00
9729f31e5c
[ #1608 ] grpc: Add QoS interceptors for server and clients
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:41:06 +03:00
155f9eecb0
[ #1608 ] config: Add QoS section and config
...
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-07 15:41:06 +03:00
69c35b1d61
[ #1637 ] govulncheck: Use patch release with security fixes
...
DCO action / DCO (pull_request) Successful in 46s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m16s
Build / Build Components (pull_request) Successful in 1m39s
Tests and linters / Run gofumpt (pull_request) Successful in 1m36s
Vulncheck / Vulncheck (pull_request) Successful in 1m47s
Tests and linters / Staticcheck (pull_request) Successful in 2m8s
Tests and linters / Lint (pull_request) Successful in 2m49s
Tests and linters / Tests (pull_request) Successful in 3m44s
Tests and linters / Tests with -race (pull_request) Successful in 4m14s
Tests and linters / gopls check (pull_request) Successful in 4m46s
Vulncheck / Vulncheck (push) Successful in 50s
Pre-commit hooks / Pre-commit (push) Successful in 2m4s
Tests and linters / Run gofumpt (push) Successful in 1m58s
Build / Build Components (push) Successful in 2m29s
Tests and linters / Staticcheck (push) Successful in 2m26s
Tests and linters / Lint (push) Successful in 3m10s
Tests and linters / Tests with -race (push) Successful in 4m18s
Tests and linters / Tests (push) Successful in 4m24s
OCI image / Build container images (push) Successful in 4m33s
Tests and linters / gopls check (push) Successful in 4m38s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2025-02-06 21:19:24 +03:00
9b113c3156
[ #1613 ] morph: Add tracing for morph queries to neo-go
...
DCO action / DCO (pull_request) Successful in 59s
Vulncheck / Vulncheck (pull_request) Successful in 1m4s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m55s
Build / Build Components (pull_request) Successful in 2m4s
Tests and linters / Staticcheck (pull_request) Successful in 2m38s
Tests and linters / Lint (pull_request) Successful in 3m16s
Tests and linters / Run gofumpt (pull_request) Successful in 3m54s
Tests and linters / Tests (pull_request) Successful in 4m12s
Tests and linters / gopls check (pull_request) Successful in 4m31s
Tests and linters / Tests with -race (pull_request) Successful in 4m38s
OCI image / Build container images (push) Failing after 18s
Vulncheck / Vulncheck (push) Successful in 1m2s
Pre-commit hooks / Pre-commit (push) Successful in 1m39s
Build / Build Components (push) Successful in 1m45s
Tests and linters / Staticcheck (push) Successful in 2m18s
Tests and linters / Run gofumpt (push) Successful in 2m46s
Tests and linters / Lint (push) Successful in 3m5s
Tests and linters / Tests with -race (push) Successful in 3m23s
Tests and linters / Tests (push) Successful in 3m52s
Tests and linters / gopls check (push) Successful in 4m18s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2025-02-05 16:38:20 +03:00
4de5fca547
[ #1624 ] blobovniczatree: Return source error from Init()
...
DCO action / DCO (pull_request) Successful in 39s
Vulncheck / Vulncheck (pull_request) Successful in 54s
Build / Build Components (pull_request) Successful in 1m23s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m24s
Tests and linters / Run gofumpt (pull_request) Successful in 1m32s
Tests and linters / Staticcheck (pull_request) Successful in 1m56s
Tests and linters / Tests (pull_request) Successful in 2m28s
Tests and linters / Lint (pull_request) Successful in 2m38s
Tests and linters / Tests with -race (pull_request) Successful in 3m47s
Tests and linters / gopls check (pull_request) Successful in 3m49s
Vulncheck / Vulncheck (push) Successful in 1m7s
Pre-commit hooks / Pre-commit (push) Successful in 1m28s
Tests and linters / Run gofumpt (push) Successful in 1m42s
Build / Build Components (push) Successful in 2m9s
Tests and linters / Staticcheck (push) Successful in 2m16s
Tests and linters / Tests (push) Successful in 2m32s
Tests and linters / Lint (push) Successful in 3m6s
Tests and linters / Tests with -race (push) Successful in 3m36s
Tests and linters / gopls check (push) Successful in 3m47s
OCI image / Build container images (push) Successful in 4m28s
As it was before: when the database was opened, an error returned,
but along with the original error, the `context cancelled`` error returned,
because `iterateIncompletedRebuildDBPaths` method has `ctx.Done()` check
and egCtx passed to `iterateIncompletedRebuildDBPaths` method.
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-03 17:36:21 +03:00
9c4c5a5262
[ #1602 ] go.mod: Update sdk-go
...
DCO action / DCO (pull_request) Successful in 35s
Build / Build Components (pull_request) Successful in 1m34s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m40s
Tests and linters / Tests (pull_request) Successful in 2m8s
Tests and linters / Staticcheck (pull_request) Successful in 2m12s
Tests and linters / Lint (pull_request) Successful in 2m55s
Tests and linters / Tests with -race (pull_request) Successful in 4m46s
Tests and linters / Run gofumpt (pull_request) Successful in 29s
Vulncheck / Vulncheck (pull_request) Successful in 46s
Tests and linters / gopls check (pull_request) Successful in 3m50s
Tests and linters / Run gofumpt (push) Successful in 1m37s
Build / Build Components (push) Successful in 2m1s
Pre-commit hooks / Pre-commit (push) Successful in 2m3s
Tests and linters / Lint (push) Successful in 2m52s
Tests and linters / gopls check (push) Successful in 3m3s
Tests and linters / Tests with -race (push) Successful in 3m44s
OCI image / Build container images (push) Successful in 4m51s
Vulncheck / Vulncheck (push) Successful in 46s
Tests and linters / Staticcheck (push) Successful in 1m57s
Tests and linters / Tests (push) Successful in 2m40s
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2025-02-03 14:28:23 +03:00
6fcae9f75a
[ #1621 ] treesvc: Cancel background sync on failure
...
Vulncheck / Vulncheck (push) Successful in 1m3s
Pre-commit hooks / Pre-commit (push) Successful in 1m39s
Build / Build Components (push) Successful in 2m4s
Tests and linters / Tests (push) Successful in 1m55s
Tests and linters / Tests with -race (push) Successful in 3m35s
Tests and linters / Run gofumpt (push) Successful in 3m36s
Tests and linters / Staticcheck (push) Successful in 3m52s
Tests and linters / Lint (push) Successful in 4m0s
OCI image / Build container images (push) Successful in 4m53s
Tests and linters / gopls check (push) Failing after 13m1s
If applyOperationStream() exits prematurely, other goroutines will block
on send and errgroup will never finish waiting. In this commit we also
check whether context is cancelled.
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-02-03 09:37:55 +00:00
1df64c5cab
[ #1621 ] treesvc: Move variable initialization to top in mergeOperationStreams()
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-02-03 09:37:55 +00:00
6a580db55e
[ #1626 ] go.mod: Bump frostfs-sdk-go
...
Vulncheck / Vulncheck (pull_request) Successful in 1m3s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m43s
Build / Build Components (pull_request) Successful in 1m59s
Tests and linters / Run gofumpt (pull_request) Successful in 1m57s
Tests and linters / Lint (pull_request) Successful in 2m36s
Tests and linters / gopls check (pull_request) Successful in 2m33s
Tests and linters / Staticcheck (pull_request) Successful in 2m49s
Tests and linters / Tests (pull_request) Successful in 3m3s
Tests and linters / Tests with -race (pull_request) Successful in 3m33s
DCO action / DCO (pull_request) Successful in 33s
Vulncheck / Vulncheck (push) Successful in 51s
Pre-commit hooks / Pre-commit (push) Successful in 1m46s
Tests and linters / Run gofumpt (push) Successful in 1m43s
Tests and linters / Staticcheck (push) Successful in 1m48s
Build / Build Components (push) Successful in 1m57s
Tests and linters / Tests (push) Successful in 2m9s
Tests and linters / Lint (push) Successful in 2m48s
Tests and linters / gopls check (push) Successful in 2m59s
Tests and linters / Tests with -race (push) Successful in 3m18s
OCI image / Build container images (push) Successful in 4m9s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-01-30 16:23:00 +03:00
24054cf6f4
[ #1618 ] pkg: Refactor user.ID.ScriptHash()
usage
...
Tests and linters / Run gofumpt (push) Successful in 48s
Vulncheck / Vulncheck (push) Successful in 1m37s
Pre-commit hooks / Pre-commit (push) Successful in 2m52s
Build / Build Components (push) Successful in 2m47s
Tests and linters / gopls check (push) Successful in 3m18s
Tests and linters / Staticcheck (push) Successful in 3m30s
Tests and linters / Tests with -race (push) Successful in 3m37s
Tests and linters / Lint (push) Successful in 4m27s
Tests and linters / Tests (push) Successful in 4m47s
OCI image / Build container images (push) Successful in 6m53s
`user.ID.ScriptHash()` does not return an error anymore.
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2025-01-30 13:18:37 +00:00
9ee3dd4e91
[ #1618 ] ape: Fix object service request tests
...
Constant string `testOwnerID` for these tests has an invalid
format. It has 11 bytes instead of required 25 for `user.ID`.
It worked because:
1. `user.ID` was a byte slice and didn't check length
and format of byte slices decoded from strings.
2. in these tests `testOwnerID` was used only to decode
container owner id and to compare it with owner id encoded
back to string.
Since `user.ID implementation has changed`, the problem arised.
Now `testOwnerID` is valid.
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2025-01-30 13:18:37 +00:00
78bfd12229
[ #1622 ] adm: Return non zero return code if metabase upgrade failed
...
DCO action / DCO (pull_request) Successful in 46s
Tests and linters / Run gofumpt (pull_request) Successful in 49s
Vulncheck / Vulncheck (pull_request) Successful in 1m16s
Build / Build Components (pull_request) Successful in 2m18s
Tests and linters / Staticcheck (pull_request) Successful in 2m12s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m20s
Tests and linters / Tests (pull_request) Successful in 2m21s
Tests and linters / Lint (pull_request) Successful in 5m29s
Tests and linters / Tests with -race (pull_request) Successful in 5m31s
Tests and linters / gopls check (pull_request) Successful in 5m57s
Tests and linters / Run gofumpt (push) Successful in 37s
Vulncheck / Vulncheck (push) Successful in 52s
Pre-commit hooks / Pre-commit (push) Successful in 1m32s
Build / Build Components (push) Successful in 2m4s
Tests and linters / Staticcheck (push) Successful in 2m31s
Tests and linters / Lint (push) Successful in 3m20s
Tests and linters / Tests (push) Successful in 4m3s
OCI image / Build container images (push) Successful in 4m10s
Tests and linters / Tests with -race (push) Successful in 5m13s
Tests and linters / gopls check (push) Successful in 5m19s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-01-30 15:31:25 +03:00
57dc0a8e9e
[ #1616 ] getsvc: Move break condition from body to the loop condition
...
Tests and linters / Run gofumpt (push) Successful in 35s
Vulncheck / Vulncheck (push) Successful in 1m1s
Pre-commit hooks / Pre-commit (push) Successful in 1m44s
Build / Build Components (push) Successful in 2m5s
Tests and linters / Staticcheck (push) Successful in 2m28s
Tests and linters / Lint (push) Successful in 3m17s
OCI image / Build container images (push) Successful in 4m16s
Tests and linters / Tests (push) Successful in 4m50s
Tests and linters / gopls check (push) Successful in 5m50s
Tests and linters / Tests with -race (push) Successful in 5m56s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-30 06:50:37 +00:00
b309b34bfc
[ #1616 ] getsvc: Simplify buildChainRange()
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-30 06:50:37 +00:00
c8acdf40bb
[ #1616 ] getsvc: Use slices.Reverse() where possible
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-30 06:50:37 +00:00
6410542d19
[ #1616 ] getsvc: Move range assembling to a separate file
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-30 06:50:37 +00:00
c0a341a7f6
[ #1616 ] getsvc: Move head assembling to a separate file
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-30 06:50:37 +00:00
e1a984e9d8
[ #1620 ] logs: Drop redundant trace_id fields
...
DCO action / DCO (pull_request) Successful in 39s
Tests and linters / Run gofumpt (pull_request) Successful in 38s
Vulncheck / Vulncheck (pull_request) Successful in 52s
Tests and linters / Staticcheck (pull_request) Successful in 2m4s
Build / Build Components (pull_request) Successful in 2m21s
Pre-commit hooks / Pre-commit (pull_request) Successful in 2m23s
Tests and linters / Tests with -race (pull_request) Successful in 4m8s
Tests and linters / Lint (pull_request) Successful in 5m47s
Tests and linters / Tests (pull_request) Successful in 6m31s
Tests and linters / gopls check (pull_request) Successful in 2m37s
Tests and linters / Run gofumpt (push) Successful in 32s
Vulncheck / Vulncheck (push) Successful in 58s
Pre-commit hooks / Pre-commit (push) Successful in 1m23s
Build / Build Components (push) Successful in 1m43s
Tests and linters / Staticcheck (push) Successful in 2m24s
Tests and linters / Lint (push) Successful in 3m43s
OCI image / Build container images (push) Successful in 4m34s
Tests and linters / Tests (push) Successful in 4m37s
Tests and linters / Tests with -race (push) Successful in 5m21s
Tests and linters / gopls check (push) Successful in 5m29s
`trace_id` is taken from context.
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-01-29 16:13:51 +03:00
abfd9657f9
[ #1617 ] govulncheck: Use patch release with security fixes
...
DCO action / DCO (pull_request) Successful in 2m4s
Vulncheck / Vulncheck (pull_request) Successful in 1m38s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m2s
Tests and linters / Run gofumpt (push) Successful in 34s
Vulncheck / Vulncheck (push) Successful in 1m3s
Pre-commit hooks / Pre-commit (push) Successful in 1m38s
Build / Build Components (push) Successful in 2m47s
Tests and linters / Staticcheck (push) Successful in 3m0s
Tests and linters / Lint (push) Successful in 3m58s
Tests and linters / gopls check (push) Successful in 4m34s
OCI image / Build container images (push) Successful in 4m51s
Tests and linters / Tests (push) Successful in 4m52s
Tests and linters / Tests with -race (push) Successful in 4m54s
Build / Build Components (pull_request) Successful in 1m38s
Tests and linters / gopls check (pull_request) Successful in 2m45s
Tests and linters / Run gofumpt (pull_request) Successful in 4m43s
Tests and linters / Lint (pull_request) Successful in 5m12s
Tests and linters / Staticcheck (pull_request) Successful in 5m18s
Tests and linters / Tests with -race (pull_request) Successful in 5m26s
Tests and linters / Tests (pull_request) Successful in 5m51s
https://go.dev/doc/devel/release#go1.23.minor
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2025-01-28 18:02:57 +03:00
a788d44773
[ #1570 ] cli: Use array type for attributes parameters
...
DCO action / DCO (pull_request) Successful in 32s
Vulncheck / Vulncheck (pull_request) Failing after 59s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m25s
Build / Build Components (pull_request) Successful in 1m37s
Tests and linters / Run gofumpt (pull_request) Successful in 2m14s
Tests and linters / gopls check (pull_request) Successful in 2m19s
Tests and linters / Staticcheck (pull_request) Successful in 2m39s
Tests and linters / Tests (pull_request) Successful in 3m0s
Tests and linters / Lint (pull_request) Successful in 3m22s
Tests and linters / Tests with -race (pull_request) Successful in 3m51s
Tests and linters / Run gofumpt (push) Successful in 24s
Vulncheck / Vulncheck (push) Failing after 1m8s
Pre-commit hooks / Pre-commit (push) Successful in 1m20s
Build / Build Components (push) Successful in 2m13s
Tests and linters / Staticcheck (push) Successful in 2m26s
Tests and linters / Tests (push) Successful in 3m6s
Tests and linters / Lint (push) Successful in 3m13s
Tests and linters / Tests with -race (push) Successful in 3m23s
Tests and linters / gopls check (push) Successful in 3m47s
OCI image / Build container images (push) Successful in 4m28s
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2025-01-28 11:15:30 +03:00
603015d029
[ #1570 ] cli: Use array type for --range parameter to object hash
...
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
2025-01-28 11:15:30 +03:00
30e14d50ef
[ #1612 ] Makefile: Update golangci-lint
...
Tests and linters / Run gofumpt (pull_request) Successful in 29s
DCO action / DCO (pull_request) Successful in 38s
Vulncheck / Vulncheck (pull_request) Successful in 53s
Build / Build Components (pull_request) Successful in 1m29s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m27s
Tests and linters / Staticcheck (pull_request) Successful in 2m4s
Tests and linters / Lint (pull_request) Successful in 2m46s
Tests and linters / Tests (pull_request) Successful in 3m36s
Tests and linters / Tests with -race (pull_request) Successful in 3m42s
Tests and linters / gopls check (pull_request) Successful in 4m14s
Tests and linters / Run gofumpt (push) Successful in 27s
Vulncheck / Vulncheck (push) Successful in 1m6s
Pre-commit hooks / Pre-commit (push) Successful in 1m28s
Build / Build Components (push) Successful in 2m13s
Tests and linters / Staticcheck (push) Successful in 2m27s
Tests and linters / Lint (push) Successful in 3m22s
Tests and linters / Tests (push) Successful in 3m38s
Tests and linters / Tests with -race (push) Successful in 4m19s
Tests and linters / gopls check (push) Successful in 4m21s
OCI image / Build container images (push) Successful in 4m32s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2025-01-24 11:58:21 +03:00
951a7ee1c7
[ #1605 ] policer: Do not mutate slice under iteration
...
Tests and linters / Run gofumpt (push) Successful in 28s
Vulncheck / Vulncheck (push) Successful in 1m4s
Pre-commit hooks / Pre-commit (push) Successful in 1m24s
Build / Build Components (push) Successful in 2m4s
Tests and linters / Staticcheck (push) Successful in 1m57s
Tests and linters / Lint (push) Successful in 3m15s
Tests and linters / Tests (push) Successful in 4m0s
Tests and linters / Tests with -race (push) Successful in 4m13s
Tests and linters / gopls check (push) Successful in 4m23s
OCI image / Build container images (push) Successful in 4m39s
Nothing wrong with it, besides being difficult to read.
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-21 05:34:54 +00:00
0bcbeb26b2
[ #1605 ] policer: Simplify processRepNodes() checks
...
Current flow is hard to reason about, #1601 is a notorious example of
accidental complexity.
1. Remove multiple nested ifs, use depth=1.
2. Process each status exactly once, hopefully preventing bugs like
#1601 .
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-21 05:34:54 +00:00
c98357606b
[ #1606 ] Use slices.Clone()/bytes.Clone() where possible
...
Tests and linters / Run gofumpt (pull_request) Successful in 28s
DCO action / DCO (pull_request) Successful in 42s
Vulncheck / Vulncheck (pull_request) Successful in 1m0s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m33s
Build / Build Components (pull_request) Successful in 1m46s
Tests and linters / Staticcheck (pull_request) Successful in 2m0s
Tests and linters / Lint (pull_request) Successful in 2m55s
Tests and linters / Tests (pull_request) Successful in 4m17s
Tests and linters / Tests with -race (pull_request) Successful in 5m14s
Tests and linters / gopls check (pull_request) Successful in 5m17s
Tests and linters / Run gofumpt (push) Successful in 27s
Vulncheck / Vulncheck (push) Successful in 51s
Pre-commit hooks / Pre-commit (push) Successful in 1m25s
Build / Build Components (push) Successful in 2m10s
Tests and linters / Staticcheck (push) Successful in 2m25s
Tests and linters / Lint (push) Successful in 3m24s
Tests and linters / Tests (push) Successful in 4m4s
OCI image / Build container images (push) Successful in 4m21s
Tests and linters / Tests with -race (push) Successful in 4m25s
Tests and linters / gopls check (push) Successful in 4m49s
gopatch:
```
@@
var from, to expression
@@
+import "bytes"
-to := make([]byte, len(from))
-copy(to, from)
+to := bytes.Clone(from)
@@
var from, to expression
@@
+import "bytes"
-to = make([]byte, len(from))
-copy(to, from)
+to = bytes.Clone(from)
@@
var from, to, typ expression
@@
+import "slices"
-to := make([]typ, len(from))
-copy(to, from)
+to := slices.Clone(from)
@@
var from, to, typ expression
@@
+import "slices"
-to = make([]typ, len(from))
-copy(to, from)
+to = slices.Clone(from)
```
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-17 14:50:14 +03:00
80de5d70bf
[ #1593 ] node: Fix initialization of ape_chain cache
...
Tests and linters / Run gofumpt (push) Successful in 24s
Vulncheck / Vulncheck (push) Successful in 53s
Pre-commit hooks / Pre-commit (push) Successful in 1m29s
Build / Build Components (push) Successful in 1m54s
Tests and linters / Staticcheck (push) Successful in 2m20s
Tests and linters / Lint (push) Successful in 3m13s
Tests and linters / Tests (push) Successful in 3m49s
Tests and linters / Tests with -race (push) Successful in 4m34s
OCI image / Build container images (push) Successful in 4m43s
Tests and linters / gopls check (push) Successful in 4m37s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
2025-01-17 08:58:47 +00:00
57efa0bc8e
[ #1604 ] policer: Properly handle maintenance nodes
...
DCO action / DCO (pull_request) Successful in 41s
Vulncheck / Vulncheck (pull_request) Successful in 57s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m42s
Build / Build Components (pull_request) Successful in 1m48s
Tests and linters / gopls check (pull_request) Successful in 2m15s
Tests and linters / Lint (pull_request) Successful in 2m50s
Tests and linters / Staticcheck (pull_request) Successful in 3m2s
Tests and linters / Run gofumpt (pull_request) Successful in 3m4s
Tests and linters / Tests with -race (pull_request) Successful in 3m36s
Tests and linters / Tests (pull_request) Successful in 4m6s
Tests and linters / Run gofumpt (push) Successful in 29s
Vulncheck / Vulncheck (push) Successful in 51s
Pre-commit hooks / Pre-commit (push) Successful in 1m26s
Build / Build Components (push) Successful in 2m14s
Tests and linters / Staticcheck (push) Successful in 2m20s
Tests and linters / Lint (push) Successful in 3m17s
Tests and linters / Tests (push) Successful in 3m47s
OCI image / Build container images (push) Successful in 4m28s
Tests and linters / gopls check (push) Successful in 4m44s
Tests and linters / Tests with -race (push) Successful in 4m49s
Consider `REP 1 REP 1` placement (selects/filters are omitted).
The placement is `[1, 2], [1, 0]`. We are the 0-th node.
Node 1 is under maintenance, so we do not replicate object
on the node 2. In the second replication group node 1 is under maintenance,
but current caching logic considers it as "replica holder" and removes
local copy. Voilà, we have DL if the object is missing from the node 1.
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-16 16:37:52 +03:00
26e0c82fb8
[ #1604 ] policer/test: Add test for MAINTENANCE runtime status
...
The node can have MAINTENANCE status in the network map, but can also be
ONLINE while responding with MAINTENANCE. These are 2 different code
paths, let's test them separately.
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-16 16:37:16 +03:00
4538ccb12a
[ #1604 ] policer: Do not process the same node twice
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-16 16:37:16 +03:00
84e1599997
[ #1604 ] policer: Remove one-line helpers
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-16 16:37:16 +03:00
5a270e2e61
[ #1604 ] policer: Use status instead of bool value in node cache
...
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-16 16:37:16 +03:00
436d65d784
[ #1591 ] Build and host OCI images on our own infra
...
Tests and linters / Run gofumpt (push) Successful in 25s
Vulncheck / Vulncheck (push) Successful in 54s
Build / Build Components (push) Successful in 1m38s
Pre-commit hooks / Pre-commit (push) Successful in 1m36s
Tests and linters / Staticcheck (push) Successful in 2m23s
Tests and linters / Lint (push) Successful in 3m18s
Tests and linters / Tests (push) Successful in 4m15s
Tests and linters / Tests with -race (push) Successful in 4m37s
OCI image / Build container images (push) Successful in 4m53s
Tests and linters / gopls check (push) Successful in 4m59s
Similar to TrueCloudLab/frostfs-s3-gw#587
this PR introduces a CI pipeline that builds Docker images and pushes them
to our selfhosted registry.
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
2025-01-16 07:46:53 +00:00
c3c034ecca
[ #1601 ] util: Correctly parse 'root' name for container resources
...
Vulncheck / Vulncheck (push) Successful in 56s
Pre-commit hooks / Pre-commit (push) Successful in 1m20s
Build / Build Components (push) Successful in 1m39s
Tests and linters / gopls check (push) Successful in 2m15s
Tests and linters / Run gofumpt (push) Successful in 2m51s
Tests and linters / Tests (push) Successful in 3m0s
Tests and linters / Staticcheck (push) Successful in 3m11s
Tests and linters / Lint (push) Successful in 3m20s
Tests and linters / Tests with -race (push) Successful in 3m28s
* Convert `root/*` to `//`;
* Add unit-test case for parses to check parsing correctness.
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2025-01-15 12:13:02 +00:00
05fd999162
[ #1600 ] fstree: Handle incomplete writes
...
DCO action / DCO (pull_request) Successful in 37s
Vulncheck / Vulncheck (pull_request) Successful in 59s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m22s
Build / Build Components (pull_request) Successful in 1m40s
Tests and linters / gopls check (pull_request) Successful in 2m16s
Tests and linters / Run gofumpt (pull_request) Successful in 2m51s
Tests and linters / Tests (pull_request) Successful in 3m23s
Tests and linters / Lint (pull_request) Successful in 3m40s
Tests and linters / Staticcheck (pull_request) Successful in 3m36s
Tests and linters / Tests with -race (pull_request) Successful in 4m14s
Tests and linters / Run gofumpt (push) Successful in 33s
Vulncheck / Vulncheck (push) Successful in 50s
Pre-commit hooks / Pre-commit (push) Successful in 1m28s
Build / Build Components (push) Successful in 1m37s
Tests and linters / Staticcheck (push) Successful in 3m12s
Tests and linters / Lint (push) Successful in 3m23s
Tests and linters / Tests with -race (push) Successful in 4m55s
Tests and linters / Tests (push) Successful in 1m46s
Tests and linters / gopls check (push) Successful in 2m23s
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-01-14 14:52:35 +03:00
eff95bd632
[ #1598 ] engine: Drop unnecessary result structs
...
DCO action / DCO (pull_request) Successful in 31s
Tests and linters / Run gofumpt (pull_request) Successful in 29s
Vulncheck / Vulncheck (pull_request) Successful in 54s
Build / Build Components (pull_request) Successful in 1m29s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m28s
Tests and linters / gopls check (pull_request) Successful in 2m15s
Tests and linters / Lint (pull_request) Successful in 2m41s
Tests and linters / Staticcheck (pull_request) Successful in 2m49s
Tests and linters / Tests (pull_request) Successful in 3m52s
Tests and linters / Tests with -race (pull_request) Successful in 5m1s
Vulncheck / Vulncheck (push) Successful in 1m5s
Pre-commit hooks / Pre-commit (push) Successful in 1m19s
Build / Build Components (push) Successful in 1m36s
Tests and linters / gopls check (push) Successful in 2m16s
Tests and linters / Run gofumpt (push) Successful in 2m32s
Tests and linters / Staticcheck (push) Successful in 2m49s
Tests and linters / Lint (push) Successful in 3m10s
Tests and linters / Tests (push) Successful in 3m12s
Tests and linters / Tests with -race (push) Successful in 4m15s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-01-14 11:15:21 +03:00
fb928616cc
[ #1598 ] golangci: Enable unparam linter
...
DCO action / DCO (pull_request) Successful in 35s
Vulncheck / Vulncheck (pull_request) Successful in 1m6s
Build / Build Components (pull_request) Successful in 1m45s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m44s
Tests and linters / Staticcheck (pull_request) Successful in 1m59s
Tests and linters / gopls check (pull_request) Successful in 2m19s
Tests and linters / Run gofumpt (pull_request) Successful in 2m35s
Tests and linters / Lint (pull_request) Successful in 2m56s
Tests and linters / Tests with -race (pull_request) Successful in 3m48s
Tests and linters / Tests (pull_request) Successful in 3m58s
To drop unnecessary parameters and return values.
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-01-14 09:06:47 +03:00
4d5ae59a52
[ #1598 ] golangci: Enable unconvert linters
...
To drop unnecessary conversions.
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-01-14 09:06:40 +03:00
a9f27e074b
[ #1243 ] object: Look for X-Headers within origin before APE check
...
Vulncheck / Vulncheck (push) Successful in 50s
Pre-commit hooks / Pre-commit (push) Successful in 1m24s
Build / Build Components (push) Successful in 1m30s
Tests and linters / gopls check (push) Successful in 2m20s
Tests and linters / Run gofumpt (push) Successful in 2m55s
Tests and linters / Staticcheck (push) Successful in 3m8s
Tests and linters / Tests (push) Successful in 3m14s
Tests and linters / Lint (push) Successful in 3m20s
Tests and linters / Tests with -race (push) Successful in 3m39s
* X-Headers can be found in `origin` field of `MetaHeader` if the request
has been forwarded from non-container node.
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
2025-01-13 12:07:27 +00:00
6c51f48aab
[ #1596 ] metrics: Create public aliases for internal engine
metrics
...
Vulncheck / Vulncheck (push) Successful in 58s
Pre-commit hooks / Pre-commit (push) Successful in 1m21s
Build / Build Components (push) Successful in 1m33s
Tests and linters / gopls check (push) Successful in 2m14s
Tests and linters / Run gofumpt (push) Successful in 2m55s
Tests and linters / Tests (push) Successful in 2m59s
Tests and linters / Staticcheck (push) Successful in 3m7s
Tests and linters / Lint (push) Successful in 3m15s
Tests and linters / Tests with -race (push) Successful in 3m44s
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
2025-01-13 10:05:01 +00:00