Skip to content

Repair github workflow #86

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

Merged
merged 2 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
mypy .

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v3
- name: Set up Python 3
uses: actions/setup-python@v4
with:
python-version: '3.6'
python-version: '3.x'

- name: Install dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage
astroid==2.3.3
pylint==2.4.4
astroid
pylint
bitarray
python-linstor
1 change: 1 addition & 0 deletions drivers/LUNperVDI.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def create(self, sr_uuid, vdi_uuid, size) -> str:
VDIs = util._getVDIs(self.sr)
self.sr._loadvdis()
smallest = 0
v = {}
for vdi in VDIs:
if not vdi['managed'] \
and int(vdi['virtual_size']) >= int(size) \
Expand Down
5 changes: 3 additions & 2 deletions drivers/LVHDSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def load(self, sr_uuid) -> None:
for key in self.lvmCache.lvs.keys():
# if the lvname has a uuid in it
type = None
vdi = None
if contains_uuid_regex.search(key) is not None:
if key.startswith(lvhdutil.LV_PREFIX[vhdutil.VDI_TYPE_VHD]):
type = vhdutil.VDI_TYPE_VHD
Expand Down Expand Up @@ -997,8 +998,8 @@ def _undoCloneOp(self, lvs, origUuid, baseUuid, clonUuid):
self.lvActivator.activate(baseUuid, base.name, False)
origRefcountNormal = 1
vhdInfo = vhdutil.getVHDInfo(basePath, lvhdutil.extractUuid, False)
if base.vdiType == vhdutil.VDI_TYPE_VHD and vhdInfo.hidden:
vhdutil.setHidden(basePath, False)
if vhdInfo.hidden:
vhdutil.setHidden(basePath, False)
elif base.vdiType == vhdutil.VDI_TYPE_RAW and base.hidden:
self.lvmCache.setHidden(base.name, False)

Expand Down
3 changes: 1 addition & 2 deletions drivers/LinstorSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,8 +1205,7 @@ def _load_vdis_ex(self):
if USE_KEY_HASH and vdi.vdi_type == vhdutil.VDI_TYPE_VHD:
# TODO: Replace pylint comment with this feature when possible:
# https://github.com/PyCQA/pylint/pull/2926
vdi.sm_config_override['key_hash'] = \
self._vhdutil.get_key_hash(vdi_uuid) # pylint: disable = E1120
vdi.sm_config_override['key_hash'] = self._vhdutil.get_key_hash(vdi_uuid) # pylint: disable = E1120

# 4.c. Update CBT status of disks either just added
# or already in XAPI.
Expand Down
1 change: 1 addition & 0 deletions drivers/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4174,6 +4174,7 @@ def abort_optional_reenable(uuid):
#
def main():
action = ""
maxAge = 0
uuid = ""
background = False
force = False
Expand Down
2 changes: 1 addition & 1 deletion drivers/iscsilib.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def get_node_config (portal, targetIQN):
ini_sec = "root"
str_fp = io.StringIO("[%s]\n%s" % (ini_sec, stdout))
parser = RawConfigParser()
parser.readfp(str_fp)
parser.read_file(str_fp)
str_fp.close()
return dict(parser.items(ini_sec))

Expand Down
4 changes: 2 additions & 2 deletions drivers/mpathcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def match_pathup(s):
match = re.match(r'.*\d+:\d+:\d+:\d+\s+\S+\s+\S+\s+\S+\s+(\S+)', s)
if match:
path_status = match.group(1)
if path_status in ['faulty', 'shaky', 'failed']:
return False
if path_status in ['faulty', 'shaky', 'failed']:
return False
return True


Expand Down
2 changes: 1 addition & 1 deletion drivers/resetvdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import cleanup
import util
import lock
import sys
import XenAPI # pylint: disable=import-error


Expand Down Expand Up @@ -141,7 +142,6 @@ def usage():
sys.exit(1)

if __name__ == '__main__':
import sys
import atexit

if len(sys.argv) not in [3, 4, 5]:
Expand Down