Validate Database/MultipleDatabases offenses in specs (ActiveRecord::Base)
We should check the offenses for spec/*
in .rubocop_todo/database/multiple_databases.yml do not cause real problems
Designs
- Show closed items
Relates to
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Thong Kuah added ci-decomposition-followup grouptenant scale labels
added ci-decomposition-followup grouptenant scale labels
- Thong Kuah marked this issue as related to #359952 (closed)
marked this issue as related to #359952 (closed)
- Author Maintainer
Perhaps this can be a good one for @OmarQunsulGitlab to validate ? /cc @DylanGriffith
Collapse replies - Maintainer
@tkuah as I understand this is ci-decomposition-followup so should not be as high priority as what @OmarQunsulGitlab is working on now which is #361603 (closed) .
@OmarQunsulGitlab this may be a good one to do in parallel with your other changes when waiting for reviews etc. and may expose you to some more lower level database connection logic that would be useful to understand.
2 - Maintainer
@DylanGriffith sounds good, I will assign it to myself.
@tkuah can you elaborate more on the issue here, maybe with some example(s)? also, what a Real Problem can mean here?
do I understand correctly that we should check for all the offenses in the Excluded files, and aim to fix them all?
- Author Maintainer
@OmarQunsulGitlab Sure.
For example, in spec/tasks/gitlab/backup_rake_spec.rb, we see :
allow(ActiveRecord::Base.connection).to receive(:reconnect!)
This could indicate that the code that this spec is testing is only reconnecting for the
main
connection. Should theci
connection be reconnected too ?If it's a simple fix, feel free to fix. If not, please open issues and ping the relevant group for them to investigate.
If it's not a legitimate offense, add a
rubocop:disable Databases/MultipleDatabases
magic comment. 1
- Omar Qunsul assigned to @OmarQunsulGitlab
assigned to @OmarQunsulGitlab
- Maintainer
Setting label(s) ~"Category:Sharding" devopsenablement sectionenablement based on groupsharding.
- 🤖 GitLab Bot 🤖 added Category:Cell devopssystems sectioncore platform labels
added Category:Cell devopssystems sectioncore platform labels
- Maintainer
@tkuah, please can you add a type label to this issue to help with issue discovery in issue reports.
- 🤖 GitLab Bot 🤖 added auto updated label
added auto updated label
- Thong Kuah mentioned in issue #359952 (closed)
mentioned in issue #359952 (closed)
- Omar Qunsul mentioned in commit 21bb3cda
mentioned in commit 21bb3cda
- Omar Qunsul mentioned in merge request !87654 (closed)
mentioned in merge request !87654 (closed)
- Omar Qunsul added workflowin dev label
added workflowin dev label
- 🤖 GitLab Bot 🤖 added devopsdata stores label and removed devopssystems label
added devopsdata stores label and removed devopssystems label
- Omar Qunsul mentioned in commit 27b9de48
mentioned in commit 27b9de48
- Omar Qunsul mentioned in commit 9a275040
mentioned in commit 9a275040
- Omar Qunsul mentioned in commit eff4a72b
mentioned in commit eff4a72b
- Omar Qunsul mentioned in commit 16355f30
mentioned in commit 16355f30
- Omar Qunsul mentioned in commit 30d1638e
mentioned in commit 30d1638e
- Omar Qunsul mentioned in commit 572a94cf
mentioned in commit 572a94cf
- Omar Qunsul mentioned in commit cc1792ca
mentioned in commit cc1792ca
- Omar Qunsul mentioned in commit 2de05c4c
mentioned in commit 2de05c4c
- Omar Qunsul added workflowin review label and removed workflowin dev label
added workflowin review label and removed workflowin dev label
- Omar Qunsul changed milestone to %15.1
changed milestone to %15.1
- Omar Qunsul changed milestone to %15.2
changed milestone to %15.2
- 🤖 GitLab Bot 🤖 changed milestone to %15.3
changed milestone to %15.3
- 🤖 GitLab Bot 🤖 added missed:15.2 label
added missed:15.2 label
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
@OmarQunsulGitlab @gitlabbarry Please add a
type::xyz
label to this issue. Thanks! /cc @nhxnguyen 1- Omar Qunsul added typemaintenance label
added typemaintenance label
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- Maintainer
Setting label(s) ~"Category:Pods (formerly Sharding)" based on ~"group::pods".
- 🤖 GitLab Bot 🤖 changed milestone to %15.4
changed milestone to %15.4
- 🤖 GitLab Bot 🤖 added missed:15.3 label
added missed:15.3 label
- Thong Kuah added to epic &6718 (closed)
added to epic &6718 (closed)
- Barry Firman added 1 deleted label
added 1 deleted label
- Omar Qunsul added workflowready for development label and removed workflowin review label
added workflowready for development label and removed workflowin review label
- 🤖 GitLab Bot 🤖 changed milestone to %15.5
changed milestone to %15.5
- 🤖 GitLab Bot 🤖 added missed:15.4 label
added missed:15.4 label
- 🤖 GitLab Bot 🤖 changed milestone to %15.6
changed milestone to %15.6
- 🤖 GitLab Bot 🤖 added missed:15.5 label
added missed:15.5 label
- Fabian Zimmer changed epic to &8438
changed epic to &8438
- Fabian Zimmer marked this issue as related to #362341
marked this issue as related to #362341
- Author Maintainer
@OmarQunsulGitlab I saw this brief conversation about this in the "Discussion about Decomposition for Self Managed Users and general Backlog clean up of Pods Issues" recording.
The intent is to find any actual problems (like backups not backing up the
ci
problem). Fixing any specs is secondary.On a different note, would it be helpful to pair on this ?
Collapse replies - Maintainer
I agree
Even though I tried to find if there any other problems back then (like the backups), I am not sure if I oversaw any other big problems.It would be great to pair on this. But I also suggest to split it into difference parts, to avoid losing focus and ending up with a big MR, like this draft MR.
- 🤖 GitLab Bot 🤖 changed milestone to %15.7
changed milestone to %15.7
- 🤖 GitLab Bot 🤖 added missed:15.6 label
added missed:15.6 label
- Omar Qunsul added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Omar Qunsul mentioned in commit 8d39ed36
mentioned in commit 8d39ed36
- Omar Qunsul mentioned in merge request !104886 (merged)
mentioned in merge request !104886 (merged)
- Omar Qunsul mentioned in commit e4fea3f5
mentioned in commit e4fea3f5
- Omar Qunsul mentioned in commit 36f9c31f
mentioned in commit 36f9c31f
- Omar Qunsul mentioned in commit 56e66269
mentioned in commit 56e66269
- Omar Qunsul added workflowin review label and removed workflowin dev label
added workflowin review label and removed workflowin dev label
- Omar Qunsul mentioned in commit 4bd07ffe
mentioned in commit 4bd07ffe
- Omar Qunsul added workflowready for development label and removed workflowin review label
added workflowready for development label and removed workflowin review label
- 🤖 GitLab Bot 🤖 changed milestone to %15.8
changed milestone to %15.8
- 🤖 GitLab Bot 🤖 added missed:15.7 label
added missed:15.7 label
- Thong Kuah added workflowin dev label and removed workflowready for development label
added workflowin dev label and removed workflowready for development label
- Omar Qunsul mentioned in commit 7a177e81
mentioned in commit 7a177e81
- Omar Qunsul mentioned in merge request !107967 (merged)
mentioned in merge request !107967 (merged)
- Omar Qunsul mentioned in commit 0659d6c6
mentioned in commit 0659d6c6
- Omar Qunsul mentioned in commit b57b31dd
mentioned in commit b57b31dd
- Omar Qunsul added workflowin review label and removed workflowin dev label
added workflowin review label and removed workflowin dev label
- Omar Qunsul closed
closed
- Omar Qunsul mentioned in commit f09069dd
mentioned in commit f09069dd
- Omar Qunsul mentioned in merge request !108216 (merged)
mentioned in merge request !108216 (merged)
- Omar Qunsul mentioned in commit 609da852
mentioned in commit 609da852
- Nick Nguyen removed 1 deleted label
removed 1 deleted label
added devopstenant scale groupcells infrastructure sectioninfrastructure platforms labels and removed devopsdata stores grouptenant scale [DEPRECATED] sectioncore platform labels