cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

pre-commit: enable Python Flake8 rule `E713`

Open jbampton opened this issue 9 months ago • 7 comments

https://www.flake8rules.com/rules/E713.html

Description

This PR adds another check or test to our Python linting framework.

Sets a consistent code standard and stops regressions.

"Test for membership should be 'not in' (E713)"

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Bug fix (non-breaking change which fixes an issue)
  • [ ] Enhancement (improves an existing feature and functionality)
  • [X] Cleanup (Code refactoring and cleanup, that may add test cases)
  • [ ] build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • [ ] Major
  • [ ] Minor

Bug Severity

  • [ ] BLOCKER
  • [ ] Critical
  • [ ] Major
  • [ ] Minor
  • [ ] Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Ran:

pre-commit run --all-files

How did you try to break this feature and the system with this change?

jbampton avatar Apr 30 '24 14:04 jbampton

@blueorangutan package

DaanHoogland avatar Apr 30 '24 14:04 DaanHoogland

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Apr 30 '24 14:04 blueorangutan

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 15.53%. Comparing base (3c9bc07) to head (403d410).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9016      +/-   ##
============================================
- Coverage     15.53%   15.53%   -0.01%     
  Complexity    11967    11967              
============================================
  Files          5492     5492              
  Lines        480914   480914              
  Branches      59037    59620     +583     
============================================
- Hits          74711    74709       -2     
- Misses       397942   397943       +1     
- Partials       8261     8262       +1     
Flag Coverage Δ
uitests 4.17% <ø> (ø)
unittests 16.30% <ø> (-0.01%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Apr 30 '24 14:04 codecov-commenter

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9488

blueorangutan avatar Apr 30 '24 15:04 blueorangutan

@blueorangutan package

jbampton avatar May 07 '24 20:05 jbampton

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar May 07 '24 20:05 blueorangutan

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9569

blueorangutan avatar May 07 '24 22:05 blueorangutan

@blueorangutan test

DaanHoogland avatar May 18 '24 18:05 DaanHoogland

@blueorangutan test

DaanHoogland avatar May 18 '24 18:05 DaanHoogland

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar May 18 '24 18:05 blueorangutan

[SF] Trillian Build Failed (tid-10210)

blueorangutan avatar May 18 '24 19:05 blueorangutan

@blueorangutan test

DaanHoogland avatar May 22 '24 08:05 DaanHoogland

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

blueorangutan avatar May 22 '24 08:05 blueorangutan

[SF] Trillian test result (tid-10241) Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 48008 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9016-t10241-kvm-centos7.zip Smoke tests completed. 129 look OK, 2 have errors, 0 did not run Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_events_resource Error 418.10 test_events_resource.py
test_08_arping_in_ssvm Failure 5.21 test_diagnostics.py
test_09_arping_in_cpvm Failure 5.20 test_diagnostics.py

blueorangutan avatar May 22 '24 22:05 blueorangutan

@blueorangutan package

jbampton avatar Jul 08 '24 02:07 jbampton

@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

blueorangutan avatar Jul 08 '24 02:07 blueorangutan

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10277

blueorangutan avatar Jul 08 '24 03:07 blueorangutan