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

Fix setting redis db path #15698

Merged

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented May 1, 2021

There is a bug setting the redis db in the common nosql manager whereby the db path
always fails.

This PR fixes this.

Fix #15680

Signed-off-by: Andrew Thornton [email protected]

There is a bug setting the redis db in the common nosql manager whereby the db path
always fails.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath
Copy link
Contributor Author

zeripath commented May 1, 2021

Unfortunately a unit test for this isn't really possible without substantial refactor.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 1, 2021
@codecov-commenter
Copy link

Codecov Report

Merging #15698 (9d53f93) into master (ae6d786) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15698      +/-   ##
==========================================
+ Coverage   43.90%   43.93%   +0.02%     
==========================================
  Files         678      678              
  Lines       81827    81827              
==========================================
+ Hits        35926    35948      +22     
+ Misses      40051    40030      -21     
+ Partials     5850     5849       -1     
Impacted Files Coverage Δ
modules/nosql/manager_redis.go 0.00% <0.00%> (ø)
modules/queue/unique_queue_disk_channel.go 53.73% <0.00%> (-1.50%) ⬇️
services/mirror/mirror.go 16.44% <0.00%> (+1.07%) ⬆️
modules/git/repo_commit_nogogit.go 62.50% <0.00%> (+1.56%) ⬆️
modules/log/file.go 75.39% <0.00%> (+1.58%) ⬆️
modules/log/event.go 61.79% <0.00%> (+1.88%) ⬆️
modules/process/manager.go 75.30% <0.00%> (+2.46%) ⬆️
modules/cron/tasks_basic.go 88.34% <0.00%> (+2.91%) ⬆️
modules/indexer/stats/db.go 60.71% <0.00%> (+10.71%) ⬆️
models/repo_mirror.go 28.57% <0.00%> (+11.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae6d786...9d53f93. Read the comment docs.

@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels May 1, 2021
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 3, 2021
@techknowlogick
Copy link
Member

🚀

@techknowlogick techknowlogick merged commit 1b017fe into go-gitea:master May 3, 2021
zeripath added a commit to zeripath/gitea that referenced this pull request May 3, 2021
Backport go-gitea#15698

There is a bug setting the redis db in the common nosql manager whereby the db path
always fails.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added the backport/done All backports for this PR have been created label May 3, 2021
@zeripath zeripath deleted the fix-15680-set-redis-db-properly branch May 3, 2021 18:14
zeripath added a commit that referenced this pull request May 3, 2021
Backport #15698

There is a bug setting the redis db in the common nosql manager whereby the db path
always fails.

This PR fixes this.

Signed-off-by: Andrew Thornton <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Jun 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to connect to database (1-15) other than the default database 0 when using redis
5 participants