Add hacking check to ensure not use xrange()

Bug #1538118 reported by caoyue
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Deeksha Sachdeva
OpenStack Shared File Systems Service (Manila)
Fix Released
Low
Tin Lam
octavia
Fix Released
Medium
Tin Lam

Bug Description

xrange() does not exist in python3. Add hacking check rule so that codes with xragne() never passby test.

caoyue (yue-cao)
Changed in octavia:
assignee: nobody → caoyue (yue-cao)
Changed in manila:
assignee: nobody → caoyue (yue-cao)
Changed in magnum:
assignee: nobody → caoyue (yue-cao)
Changed in octavia:
importance: Undecided → Medium
Changed in manila:
importance: Undecided → Low
milestone: none → newton-1
Tin Lam (lamt)
Changed in octavia:
assignee: caoyue (yue-cao) → Tin Lam (tl3438)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to octavia (master)

Reviewed: https://review.openstack.org/291502
Committed: https://git.openstack.org/cgit/openstack/octavia/commit/?id=8d0b16292d0bb00f9fb61c6a05cb7f01ff610f34
Submitter: Jenkins
Branch: master

commit 8d0b16292d0bb00f9fb61c6a05cb7f01ff610f34
Author: Tin Lam <email address hidden>
Date: Thu Mar 10 19:10:46 2016 -0600

    Add hacking check to ensure not use xrange()

    Added hacking check to ensure not to use xrange. Also,
    fixed issues with EoF missing newline [W391].

    Change-Id: Iba8d240c042e46cb34eb6ed057534d62efb6f903
    Closes-Bug: #1538118

Changed in octavia:
status: In Progress → Fix Released
Changed in magnum:
assignee: caoyue (yue-cao) → Sonali Goyal (sonaligoyal654321)
assignee: Sonali Goyal (sonaligoyal654321) → nobody
Changed in magnum:
assignee: nobody → Deeksha Sachdeva (sachdevadeeksha5)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

Fix proposed to branch: master
Review: https://review.openstack.org/292042

Changed in magnum:
status: Confirmed → In Progress
Tin Lam (lamt)
Changed in manila:
assignee: caoyue (yue-cao) → Tin Lam (tl3438)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/294124
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=bcb0f3133ff3be605688c717f5252e0f4960c9a9
Submitter: Jenkins
Branch: master

commit bcb0f3133ff3be605688c717f5252e0f4960c9a9
Author: Tin Lam <email address hidden>
Date: Thu Mar 17 15:57:06 2016 +0000

    Add hacking check to ensure not to use xrange()

    Added hacking check to ensure not to use xrange for python3
    compatibility.

    Change-Id: I1aa510660a25936dbf1b2fc5971e7571090a42d0
    Closes-Bug: #1538118

Changed in manila:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to magnum (master)

Reviewed: https://review.openstack.org/292042
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=4205f39a0082a291cd4cfb2d89f5d9227b36f690
Submitter: Jenkins
Branch: master

commit 4205f39a0082a291cd4cfb2d89f5d9227b36f690
Author: Deeksha <email address hidden>
Date: Sun Mar 13 01:54:31 2016 +0530

    Add hacking check to ensure not use xrange()

    Added hacking check to ensure not to use xrange.

    Change-Id: I28731e16cf0636f004bf96795c85eecbdf2f8fbd
    Closes-Bug: #1538118

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/manila 3.0.0.0b1

This issue was fixed in the openstack/manila 3.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ceilometer (master)

Fix proposed to branch: master
Review: https://review.openstack.org/482392

Changed in ceilometer:
assignee: nobody → Tuan (tuanla)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ceilometer (master)

Change abandoned by Tuan Luong-Anh (<email address hidden>) on branch: master
Review: https://review.openstack.org/482392

gordon chung (chungg)
no longer affects: ceilometer
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.