Repository navigation
mgr/vol: fix flake8 warnings - #54308
Conversation
|
|
|
jenkins test make check |
0290341 to
e73707a
Compare
|
jenkins test make check |
|
@rishabh-d-dave please run this through teuthology since an updated has been pushed lately. |
e73707a to
ead0005
Compare
|
jenkins test make check |
neesingh-rh
left a comment
There was a problem hiding this comment.
We can add this change https://github.com/ceph/ceph/pull/54396/files#r1386317911 into this. Rest LGTM
|
@rishabh-d-dave ping? |
I created a separate PR because I wanted this one to be merged sooner. |
|
jenkins test make check |
80eb18a to
151ee12
Compare
649531a to
114fa34
Compare
Writing guest keyring to CWD's file named "keyring" will over-write build/keyring on developer's machine which will make the cluster inoperatable and also fail the test. Fixes: https://tracker.ceph.com/issues/63506 Signed-off-by: Rishabh Dave <[email protected]>
Fix warnings printed by the command "flake8 --select=F,E9 --exclude=venv,.tox src/pybind/mgr/volumes/". While working with mgr/vol, syntax errors are not printed anywhere. Any attempt to run vstart.sh after such faulty patch causes vstart.sh to go in a infinite loop. And running "ceph fs volume" command prints "no such command exists". This doesn't tell the actual issue and causes confusion. When flake8 is run, the issue is not immediately apparent due to so many warnings. Therefore, fix these warnings so that it becomes easier to spot such critical issues here onwards. Note: mypy uses comments like "#type: Dict" for type checking and therefore counts 'from typechecking import Dict' as not unsued. But flake8 doesn't recognize type hints embedded in comment. Therfore, switch to actually using type hints instead of adding type hints to comments. Signed-off-by: Rishabh Dave <[email protected]>
114fa34 to
95dac20
Compare
|
|
jenkins test windows |
Fix warnings printed by the command "flake8 --select=F,E9
--exclude=venv,.tox src/pybind/mgr/volumes/".
While working with mgr/vol, syntax errors are not printed anywhere. Any
attempt to run vstart.sh after such faulty patch causes vstart.sh to go
in a infinite loop. And running "ceph fs volume" command prints "no such
command exists". This doesn't tell the actual issue and causes
confusion.
When a flake8 is run, the issue is not apparent due to so many warnings.
Therefore, fix these warnings so that it becomes easier to spot such
critical issues here onwards.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows