Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable forcetypeassert linter #1138

Closed
wants to merge 232 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
bc2c248
enable gomnd
11Petrov Feb 1, 2024
5019fe1
fix gomnd issues
11Petrov Feb 14, 2024
e84ec4a
fix gomnd issues in tests/slo
11Petrov Feb 14, 2024
27435cc
fix gomnd issues in examples
11Petrov Feb 15, 2024
c910948
sync local repository
11Petrov Feb 15, 2024
2849611
Merge branch 'master' into master
asmyasnikov Feb 20, 2024
8d471ed
Update .golangci.yml
asmyasnikov Feb 20, 2024
bf29a9a
Update .golangci.yml
asmyasnikov Feb 20, 2024
cb708f8
excluded the examples folder from gomnd checks
11Petrov Feb 21, 2024
d134a39
remove unused nolint directive for gomnd linter
11Petrov Feb 21, 2024
b532c43
fix gomnd issues
11Petrov Feb 22, 2024
c3edf95
Add codegeneration for stack.FunctionID
Mar 8, 2024
1198ca6
refactor funlen linter
Mar 13, 2024
f4fcb43
Replace codegen to internal/cmd/gstack
Mar 14, 2024
71e1c6b
enable_forcetypeassert_lint
korovindenis Mar 16, 2024
09b9df6
add_forcetypeassert_lint
korovindenis Mar 17, 2024
887609f
Merge branch 'ydb-platform:master' into codegen_function_id
anatoly32322 Mar 19, 2024
f3318fb
Add CI flow
Mar 19, 2024
3e18430
added log msgs for create and attach session
asmyasnikov Mar 19, 2024
5e1396a
slo only
asmyasnikov Mar 20, 2024
302f738
ban only selected grpc codes (ResourceExhausted and Unavailable)
asmyasnikov Mar 20, 2024
f131241
* Removed `ydb.WithSessionPoolSizeLimit()` option
asmyasnikov Mar 20, 2024
c9efa08
* Dropped intermediate callbacks from `trace.{Table,Retry,Query}` events
asmyasnikov Mar 20, 2024
f27f92f
exclude processing transport/operation/context errors on query client…
asmyasnikov Mar 21, 2024
79d3cfc
change log level to ERROR
asmyasnikov Mar 21, 2024
af1dcf7
fix closing slo over query service
asmyasnikov Mar 21, 2024
31ce98c
remove 'slo only' label condition
asmyasnikov Mar 22, 2024
0da89c9
improve pg type stringification
rekby Mar 22, 2024
472e63f
fix los apps
asmyasnikov Mar 22, 2024
f066f3f
revert
asmyasnikov Mar 22, 2024
49be796
Merge branch 'master' into master
asmyasnikov Mar 22, 2024
85ae7ce
Update breaking.yml
asmyasnikov Mar 22, 2024
a910587
Merge pull request #1149 from ydb-platform/asmyasnikov-patch-2
asmyasnikov Mar 22, 2024
156a1cb
fix race + add test for detect race
asmyasnikov Mar 22, 2024
b3b6870
Merge pull request #1148 from ydb-platform/improve-pg-types
asmyasnikov Mar 22, 2024
f9e22e1
Merge branch 'master' into slo-logs
asmyasnikov Mar 22, 2024
4f05b21
Add github path
Mar 22, 2024
9200740
Merge pull request #1145 from ydb-platform/slo-logs
asmyasnikov Mar 22, 2024
3a37fc5
feat: added `Struct` support for `ydb.ParamsBuilder()`
dlc-01 Mar 22, 2024
6ceed97
fix: TzDatetime and TzDate
dlc-01 Mar 22, 2024
a5b649a
test: added tests for TzDate, TzDatetime, TzTimestamp
dlc-01 Mar 22, 2024
ef0cc0a
style: fix import format
dlc-01 Mar 22, 2024
365b96d
style: fix code style
dlc-01 Mar 22, 2024
229d834
README.md
asmyasnikov Mar 22, 2024
56ac5fb
refactor after PR review
Mar 22, 2024
9fc1a5e
Revert commit of conns parking
asmyasnikov Mar 22, 2024
07da2be
print API changes breaking action
asmyasnikov Mar 22, 2024
148de8d
fix for internal/bind/numeric_args.go RewriteQuery function from PR r…
Mar 22, 2024
168e57c
fix linter issues
asmyasnikov Mar 22, 2024
158bc6a
Merge pull request #1150 from dlc-01/master
asmyasnikov Mar 22, 2024
1252c72
Merge pull request #1151 from ydb-platform/revert-parking
asmyasnikov Mar 22, 2024
1a5ac7c
revert integration tests
asmyasnikov Mar 22, 2024
e03421f
Merge pull request #1152 from ydb-platform/parking-integration-test
asmyasnikov Mar 22, 2024
6102156
Release v3.59.0
Mar 22, 2024
3229f66
added lastUsage locked time
asmyasnikov Mar 22, 2024
5143cf5
Update .github/workflows/check-codegen.yml
asmyasnikov Mar 22, 2024
1de7ad2
Update .github/workflows/check-codegen.yml
asmyasnikov Mar 22, 2024
103a0e0
Update .github/workflows/check-codegen.yml
asmyasnikov Mar 22, 2024
97c0f6c
Update CHANGELOG.md
asmyasnikov Mar 22, 2024
9e5ba0e
Merge branch 'master' into codegen_function_id
asmyasnikov Mar 22, 2024
d4892c4
Merge pull request #1153 from ydb-platform/last-usage
asmyasnikov Mar 22, 2024
f185e3f
Merge branch 'master' into codegen_function_id
asmyasnikov Mar 22, 2024
895d516
Release v3.59.1
Mar 22, 2024
a2e40f0
Fix linters
Mar 23, 2024
88ccf0b
Add call info instead of ""
Mar 23, 2024
eca954d
Merge branch 'master' into codegen_function_id
anatoly32322 Mar 23, 2024
de98eb7
Add CI flow
Mar 19, 2024
32bee0b
Rollback changes
Mar 23, 2024
c28ddc7
simplify lastUsage code
rekby Mar 24, 2024
e079f4f
SharedLock -> Touch
asmyasnikov Mar 24, 2024
0e4cf0a
Merge pull request #1155 from ydb-platform/simplify
asmyasnikov Mar 24, 2024
29a65aa
Fix lll
Mar 24, 2024
ffd3ee0
Fix linters
Mar 24, 2024
a5457ef
pid singletone
asmyasnikov Mar 24, 2024
8e6ec46
Merge pull request #1114 from anatoly32322/codegen_function_id
asmyasnikov Mar 24, 2024
7dcfcc2
fix code style
asmyasnikov Mar 24, 2024
dca816e
fix
asmyasnikov Mar 24, 2024
3295b68
Merge pull request #1156 from ydb-platform/pid
asmyasnikov Mar 24, 2024
ee906a3
Merge pull request #1157 from ydb-platform/style-fix
asmyasnikov Mar 24, 2024
77d50fd
Release v3.59.2
Mar 24, 2024
b563970
Fix gstack
Mar 24, 2024
4d74b25
fix changelog
Mar 24, 2024
93219ae
Merge pull request #1158 from anatoly32322/fix-function-id
asmyasnikov Mar 24, 2024
a68ebcf
rollback changes of call stack.FunctionID("") inside select block
asmyasnikov Mar 24, 2024
1feb11a
Release v3.59.3
Mar 24, 2024
899c8c4
Update README.md
asmyasnikov Mar 24, 2024
afd4228
Update README.md
asmyasnikov Mar 24, 2024
8f774c7
rename lastUsage.Touch() => lastUsage.Start()
asmyasnikov Mar 25, 2024
173e976
Merge pull request #1159 from ydb-platform/start-stop
asmyasnikov Mar 25, 2024
72aca06
added xtest.ToJSON()
asmyasnikov Mar 25, 2024
4efbc7a
Merge pull request #1162 from ydb-platform/xtest-to-json
asmyasnikov Mar 25, 2024
f1b35d5
feat: add coordination session client API
arkhipov Sep 20, 2023
36ade47
feat: implement coordination session client
arkhipov Sep 20, 2023
7f27842
feat: add coordination service client examples
arkhipov Sep 22, 2023
0ac1df3
fix linter issues
asmyasnikov Mar 25, 2024
490edf1
ordering of coordination example and integration test
asmyasnikov Mar 25, 2024
46e6d07
fix linter issues + use signal.NotifyContext
asmyasnikov Mar 25, 2024
0c078a7
defer wg.Done() in coordination example
asmyasnikov Mar 25, 2024
9778cb2
fix linter issues
asmyasnikov Mar 25, 2024
39901ee
fix examples linter issue
asmyasnikov Mar 25, 2024
86f036b
example semaphore
asmyasnikov Mar 25, 2024
1bc3e9f
added unit test for create node using mock
asmyasnikov Mar 25, 2024
c1eb556
test for createNode and createNodeRequest
asmyasnikov Mar 25, 2024
a900145
Added experimental support of semaphores over coordination service cl…
asmyasnikov Mar 25, 2024
84c05d7
refactor: refine coordination service client
arkhipov Mar 25, 2024
c9ae1ad
added test for describe node
asmyasnikov Mar 25, 2024
96e361f
Merge pull request #1160 from ydb-platform/coordination
asmyasnikov Mar 25, 2024
fc2f0eb
Release v3.60.0
Mar 25, 2024
3f6d5ae
trace.CoordinationOnNew event
asmyasnikov Mar 26, 2024
a6776b3
trace.CoordinationOnCreateNode event
asmyasnikov Mar 26, 2024
c6d8e60
trace.CoordinationOnAlterNode event
asmyasnikov Mar 26, 2024
e1102ae
trace.CoordinationOnDropNode event
asmyasnikov Mar 26, 2024
2f41f51
trace.CoordinationOnDescribeNode event
asmyasnikov Mar 26, 2024
9ed47ff
fix linter issues
asmyasnikov Mar 26, 2024
98e028f
ogs over new coordination events
asmyasnikov Mar 26, 2024
59c3e40
fix integration test for semaphore
asmyasnikov Mar 26, 2024
fa30b18
trace.CoordinationOnCreateSession event
asmyasnikov Mar 26, 2024
f4b2763
CHANGELOG.md
asmyasnikov Mar 26, 2024
228c7de
Merge pull request #1163 from ydb-platform/coordination-traces
asmyasnikov Mar 26, 2024
30d0d7f
Release v3.60.1
Mar 26, 2024
091ba5b
draft variant tuple
size12 Mar 26, 2024
3001e7e
variant tuple implemented
size12 Mar 26, 2024
447b859
tests for variant tuple
size12 Mar 26, 2024
7648c83
updated changelog
size12 Mar 26, 2024
59e5e7a
Merge branch 'master' into variant-tuple
size12 Mar 26, 2024
1fec927
fixed linter warnings + updated some methods
size12 Mar 26, 2024
0ffb7af
Merge pull request #1164 from size12/variant-tuple
asmyasnikov Mar 26, 2024
66d2102
Release v3.61.0
Mar 26, 2024
8bc29cd
parent context
asmyasnikov Mar 26, 2024
b117bb2
* Renamed `db.Coordination().CreateSession()` to `db.Coordination().S…
asmyasnikov Mar 26, 2024
02aaa6e
Merge pull request #1165 from ydb-platform/create-session
asmyasnikov Mar 26, 2024
491367d
Release v3.61.1
Mar 26, 2024
9254b79
* Changed default transaction control to `NoTx` for execute query thr…
asmyasnikov Mar 26, 2024
a7527a2
Merge pull request #1166 from ydb-platform/default-tx-control
asmyasnikov Mar 26, 2024
e959a37
Release v3.61.2
Mar 26, 2024
10d715a
fix logget test
asmyasnikov Mar 26, 2024
b837471
merging with main
Mar 26, 2024
e66f15b
Merge pull request #1167 from ydb-platform/fix-test
asmyasnikov Mar 27, 2024
a0abd92
Merge pull request #1126 from brojeg/master
asmyasnikov Mar 27, 2024
352a207
fix: scopelint linter
dlc-01 Mar 27, 2024
fb93c5f
fix: stacktrace_test.go
dlc-01 Mar 27, 2024
b665c91
fix: scopelint for test files
dlc-01 Mar 28, 2024
624498f
fix: remove scopelint for test files
dlc-01 Mar 28, 2024
3578e8b
fix: scopelint for examples files
dlc-01 Mar 28, 2024
8c78b93
variant struct params builder implemented
size12 Mar 28, 2024
72000e0
Merge pull request #1172 from size12/variant-struct
asmyasnikov Mar 29, 2024
12a90c9
Add go with anonymous function case in gstack
Mar 30, 2024
1a46618
Add test for calling stack.FunctionID from anonymous go call
Mar 30, 2024
00c8d7e
Fix race
Mar 30, 2024
746814e
Merge pull request #1175 from anatoly32322/fix-function-id
asmyasnikov Mar 30, 2024
b2b3dd2
fix: CR
dlc-01 Mar 30, 2024
e825cab
Default timeout for topic writer connection is infinite
rekby Apr 1, 2024
f41615b
Merge pull request #1176 Default timeout for topic writer connection …
rekby Apr 1, 2024
894d91b
Fixed timers leaks
rekby Apr 1, 2024
304cde8
Merge pull request #1178 Fixed timers leaks
rekby Apr 1, 2024
de86479
restored WithSessionPoolKeepAliveMinSize & WithSessionPoolKeepAliveTi…
size12 Apr 1, 2024
8bb2c68
restored WithSessionPoolKeepAliveMinSize & WithSessionPoolKeepAliveTi…
size12 Apr 1, 2024
c667551
Merge branch 'master' into back-comp
size12 Apr 1, 2024
2cd28c9
Merge pull request #1179 from size12/back-comp
asmyasnikov Apr 1, 2024
9bf7545
resolve conflicts
11Petrov Apr 4, 2024
5d5dff4
Release v3.62.0
Apr 4, 2024
6f7b6cd
Merge remote-tracking branch 'upstream/master'
11Petrov Apr 4, 2024
281a3f8
fix conflicts
11Petrov Apr 4, 2024
ddd9902
Versioning policy
asmyasnikov Apr 5, 2024
b87e704
Update VERSIONING.md
asmyasnikov Apr 5, 2024
b1c965b
Update VERSIONING.md
asmyasnikov Apr 5, 2024
43b4841
Update VERSIONING.md
asmyasnikov Apr 5, 2024
bbfa6ee
Apply suggestions from code review
asmyasnikov Apr 5, 2024
cc83c0a
Update VERSIONING.md
asmyasnikov Apr 5, 2024
3c52bb6
Apply suggestions from code review
asmyasnikov Apr 5, 2024
e035f80
Update VERSIONING.md
asmyasnikov Apr 5, 2024
1da3828
Update VERSIONING.md
asmyasnikov Apr 5, 2024
d2054b1
Update VERSIONING.md
asmyasnikov Apr 5, 2024
06059e9
Update VERSIONING.md
asmyasnikov Apr 5, 2024
aec7917
Update VERSIONING.md
asmyasnikov Apr 5, 2024
624c310
Apply suggestions from code review
asmyasnikov Apr 5, 2024
c1f9be3
Comments Experimental, Deprecated, Unstable
asmyasnikov Apr 5, 2024
8fe8849
README.md
asmyasnikov Apr 5, 2024
c70d651
fix
asmyasnikov Apr 5, 2024
961b160
CHANGELOG.md
asmyasnikov Apr 8, 2024
ac576fa
fix URL for versioning policy
asmyasnikov Apr 8, 2024
2f35f37
restore LocalDC interface func
asmyasnikov Apr 8, 2024
c0c3905
revert comments for deprecated
asmyasnikov Apr 8, 2024
3649a9f
VERSIONING.md
asmyasnikov Apr 8, 2024
c13c1ae
mark as internals some traces
asmyasnikov Apr 8, 2024
043ba77
added to gtrace util comment internals
asmyasnikov Apr 8, 2024
c460968
fix usage deprecations in examples
asmyasnikov Apr 8, 2024
bc79fd1
add internals comments to trace package
rekby Apr 8, 2024
66ea269
fix linter
rekby Apr 8, 2024
c5410e1
Merge pull request #1181 from ydb-platform/versioning
asmyasnikov Apr 8, 2024
008137f
Release v3.63.0
Apr 8, 2024
51a70e2
* Updated the indirect dependencies `golang.org/x/net` to `v0.17.0` a…
asmyasnikov Apr 9, 2024
918f67e
use errgroup for close internal/pool
asmyasnikov Apr 9, 2024
02c7e29
Merge pull request #1186 from ydb-platform/pool-errgroup
asmyasnikov Apr 9, 2024
6d061d5
Merge pull request #1185 from ydb-platform/golang.org/x/[email protected]
asmyasnikov Apr 9, 2024
8197947
* Fixed out of range panic if next query result set part is empty
asmyasnikov Apr 9, 2024
4ebada8
Merge pull request #1187 from ydb-platform/empty-part
asmyasnikov Apr 9, 2024
a243f13
added xcontext.CancelsGuard
asmyasnikov Apr 9, 2024
235864e
Merge pull request #1188 from ydb-platform/cancels-guard
asmyasnikov Apr 9, 2024
6bfd9d6
updated actions checkout, setup-go and upload-artifact
asmyasnikov Apr 9, 2024
3a83552
updated codeql actions
asmyasnikov Apr 9, 2024
42c8bde
updated golangci-lint-action
asmyasnikov Apr 9, 2024
63dea55
Fix comment for `retry.Retry` function
vitalyisaev2 Apr 9, 2024
24cd81a
Merge pull request #1190 from vitalyisaev2/patch-1
asmyasnikov Apr 9, 2024
f36255b
Merge pull request #1189 from ydb-platform/update-actions
asmyasnikov Apr 9, 2024
9cfc4c2
* Supported `table.Session.RenameTables` method
asmyasnikov Apr 9, 2024
7cd0206
Merge pull request #1192 from ydb-platform/rename-tables
asmyasnikov Apr 9, 2024
0d257a1
Release v3.64.0
Apr 9, 2024
85a1d34
moved internal/conn.lastUsage into internal/xsync package
asmyasnikov Apr 9, 2024
6e51a12
Merge pull request #1193 from ydb-platform/last-usage
asmyasnikov Apr 10, 2024
f8b0b48
Merge pull request #1048 from 11Petrov/master
asmyasnikov Apr 10, 2024
eda0033
Update internal/cmd/gtrace/writer.go
asmyasnikov Apr 10, 2024
f27b85b
fix scopelint issues
asmyasnikov Apr 10, 2024
d38f4ec
Merge pull request #1170 from dlc-01/master
asmyasnikov Apr 10, 2024
5aabdd3
Implement OAuth 2.0 Token Exchange credentials provider in Go SDK
UgnineSirdis Apr 9, 2024
20ac4f4
fixes
asmyasnikov Apr 11, 2024
2e02292
Fix linter errors
UgnineSirdis Apr 11, 2024
ba30e4a
Fixes
UgnineSirdis Apr 11, 2024
d459129
Add token source to interface
UgnineSirdis Apr 11, 2024
fe4baec
Add changelog
UgnineSirdis Apr 11, 2024
8371f8d
Improve error handling
UgnineSirdis Apr 11, 2024
9813cfd
Additional options
UgnineSirdis Apr 11, 2024
6756dd4
Add comments
UgnineSirdis Apr 11, 2024
408a443
Fix comment
UgnineSirdis Apr 11, 2024
c4c7b09
Example
UgnineSirdis Apr 12, 2024
62940fe
Fix style
UgnineSirdis Apr 12, 2024
b7a9b51
Update CHANGELOG.md
asmyasnikov Apr 12, 2024
c7d27aa
Merge pull request #1194 from UgnineSirdis/oauth2-token-exchange
asmyasnikov Apr 12, 2024
0a476c3
Release v3.65.0
Apr 12, 2024
e0e8723
enable_forcetypeassert_lint
korovindenis Mar 16, 2024
74fed01
add_forcetypeassert_lint
korovindenis Mar 17, 2024
39f607a
Merge branch 'master' of https://github.com/korovindenis/ydb-go-sdk
korovindenis Apr 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/breaking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ jobs:
cancel-in-progress: true
runs-on: ubuntu-latest
permissions:
pull-requests: write
pull-requests: write
contents: read
steps:
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install gorelease
run: test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest
- name: Check broken API changes
run: gorelease -base=$GITHUB_BASE_REF 2>&1 > changes.txt | true
- name: Print API changes
run: cat changes.txt
- name: Comment Report
if: always()
uses: marocchino/sticky-pull-request-comment@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Changelog updated
uses: Zomzog/[email protected]
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/check-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -32,6 +32,7 @@ jobs:
- name: Build
run: |
go install ./internal/cmd/gtrace
go install ./internal/cmd/gstack
go install go.uber.org/mock/[email protected]

- name: Clean and re-generate *_gtrace.go files
Expand All @@ -40,5 +41,9 @@ jobs:
go generate ./trace
go generate ./...

- name: Re-generate stack.FunctionID calls
run: |
gstack .

- name: Check repository diff
run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "code-generation not equal with committed"
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -63,7 +63,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -76,4 +76,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
12 changes: 6 additions & 6 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
YDB_VERSION: ${{ matrix.ydb-version }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
cache: true
- name: Run basic example ${{ matrix.application }}
Expand Down Expand Up @@ -74,9 +74,9 @@ jobs:
POSTGRES_CONNECTION_STRING: postgres://postgres:postgres@localhost:5432/basic?sslmode=disable
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
cache: true
- name: Run basic example ${{ matrix.application }} with postgres
Expand All @@ -97,9 +97,9 @@ jobs:
SQLITE_CONNECTION_STRING: ${{ matrix.application }}.db
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
cache: true
- name: Run basic example ${{ matrix.application }} with sqlite
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout=5m
Expand All @@ -29,11 +29,11 @@ jobs:
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: generate examples golangci-lint config
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/examples/g' .golangci.yml > examples/.golangci.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout=5m
Expand All @@ -45,11 +45,11 @@ jobs:
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: generate slo golangci-lint config
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml > tests/slo/.golangci.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v4
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout=5m
Expand All @@ -61,9 +61,9 @@ jobs:
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Install utilities
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
CHANGELOG_FILE: CHANGELOG.md
GITHUB_TOKEN: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
fetch-depth: 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/slo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Run SLO
uses: ydb-platform/slo-tests@js-version
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
workload_build_context4: ../..
workload_build_options4: -f Dockerfile --build-arg SRC_PATH=xorm --build-arg JOB_NAME=workload-xorm

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: slo-logs
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Test
run: go test -race -coverprofile unit.txt -covermode atomic ./...
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./unit.txt
flags: unit,${{ matrix.os }},go-${{ matrix.go-version }}
Expand Down Expand Up @@ -71,16 +71,16 @@ jobs:
HIDE_APPLICATION_OUTPUT: 1
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Integration test
run: go test -race -tags integration -coverpkg=./... -coverprofile integration-secure.txt -covermode atomic ./tests/integration
- name: Upload Test secure connection coverage report to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
file: ./integration-secure.txt
flags: integration,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }}
Expand Down
8 changes: 5 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,21 +227,18 @@ linters:
- exhaustivestruct
- exhaustruct
- forbidigo
- forcetypeassert
- funlen
- gochecknoglobals
- gocognit
- godot
- goerr113
- golint
- gomnd
- ifshort
- interfacebloat
- ireturn
- maintidx
- nonamedreturns
- paralleltest
- scopelint
- structcheck
- testableexamples
- testpackage
Expand Down Expand Up @@ -295,6 +292,8 @@ issues:
- predeclared
- path: _test\.go
linters:
- scopelint
- funlen
- unused
- unparam
- gocritic
Expand All @@ -303,6 +302,9 @@ issues:
- staticcheck
- path: _test\.go
text: "ydb.Connection is deprecated"
- path: examples
linters:
- gomnd

# Allow underscore and capital camel case for readability
# Examples: Type_PRIMITIVE_TYPE_ID_UNSPECIFIED, Ydb_Discovery_V1, _voidValue
Expand Down
54 changes: 52 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,58 @@
## v3.65.0
* Supported OAuth 2.0 Token Exchange credentials provider

## v3.64.0
* Supported `table.Session.RenameTables` method
* Fixed out of range panic if next query result set part is empty
* Updated the indirect dependencies `golang.org/x/net` to `v0.17.0` and `golang.org/x/sys` to `v0.13.0` due to vulnerability issue

## v3.63.0
* Added versioning policy

## v3.62.0
* Restored `WithSessionPoolKeepAliveMinSize` and `WithSessionPoolKeepAliveTimeout` for backward compatibility.
* Fixed leak timers
* Changed default StartTime (time of retries for connect to server) for topic writer from 1 minute to infinite (can be overrided by WithWriterStartTimeout topic option)
* Added `Struct` support for `Variant` in `ydb.ParamsBuilder()`
* Added `go` with anonymous function case in `gstack`

## v3.61.2
* Changed default transaction control to `NoTx` for execute query through query service client

## v3.61.1
* Renamed `db.Coordination().CreateSession()` to `db.Coordination().Session()` for compatibility with protos

## v3.61.0
* Added `Tuple` support for `Variant` in `ydb.ParamsBuilder()`

## v3.60.1
* Added additional traces for coordination service client internals

## v3.60.0
* Added experimental support of semaphores over coordination service client

## v3.59.3
* Fixed `gstack` logic for parsing `ast.BlockStmt`

## v3.59.2
* Added internal `gstack` codegen tool for filling `stack.FunctionID` with value from call stack

## v3.59.1
* Fixed updating last usage timestamp for smart parking of the conns

## v3.59.0
* Added `Struct` support for `ydb.ParamsBuilder()`
* Added support of `TzDate`,`TzDateTime`,`TzTimestamp` types in `ydb.ParamsBuilder()`
* Added `trace.Query.OnTransactionExecute` event
* Added query pool metrics
* Fixed logic of query session pool
* Changed initialization of internal driver clients to lazy
* Disabled the logic of background grpc-connection parking
* Removed `ydb.WithSessionPoolSizeLimit()` option
* Added async put session into pool if external context is done
* Dropped intermediate callbacks from `trace.{Table,Retry,Query}` events
* Wrapped errors from `internal/pool.Pool.getItem` as retryable
* Disabled the logic of background grpc-connection parking
* Improved stringification for postgres types

## v3.58.2
* Added `trace.Query.OnSessionBegin` event
Expand All @@ -27,6 +76,7 @@
* Updated `google.golang.org/protobuf` from `v1.31.0` to `v.33.0`
* Added `ydb.ParamsBuilder().Pg().{Value,Int4,Int8,Unknown}` for postgres arguments
* Added `Tuple` support for `ydb.ParamsBuilder()`
* Added type assertion checks to enhance type safety and prevent unexpected panics in critical sections of the codebase

## v3.57.4
* Added client pid to each gRPC requests to YDB over header `x-ydb-client-pid`
Expand All @@ -51,7 +101,7 @@
* Fixed sometime panic on topic writer closing
* Added experimental query parameters builder `ydb.ParamsBuilder()`
* Changed types of `table/table.{QueryParameters,ParameterOption}` to aliases on `internal/params.{Parameters,NamedValue}`
* Fixed bug with optional decimal serialization
* Fixed bug with optional decimal serialization

## v3.56.2
* Fixed return private error for commit to stopped partition in topic reader.
Expand Down
Loading
Loading