pep8 is start to fails on undercloud.py:695:33: W605 invalid escape sequence for instack-undercloud

Bug #1799926 reported by Sofer Athlan-Guyot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Emilien Macchi
Nominated for Queens by Sofer Athlan-Guyot
summary: pep8 is start to fails on undercloud.py:695:33: W605 invalid escape
- sequence
+ sequence for instack-undercloud
Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :

May be related to python becoming stricter on backslash:

 https://bugs.python.org/issue27364

and from https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior

A backslash-character pair that is not a valid escape sequence now generates a DeprecationWarning. Although this will eventually become a SyntaxError, that will not be for several Python releases. (Contributed by Emanuel Barry in bpo-27364.)

can't see what version of pip is used or what version has changed for that matter.

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

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

Changed in tripleo:
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
status: Triaged → In Progress
Changed in tripleo:
assignee: Sofer Athlan-Guyot (sofer-athlan-guyot) → Emilien Macchi (emilienm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (master)

Change abandoned by Athlan-Guyot sofer (<email address hidden>) on branch: master
Review: https://review.openstack.org/613267
Reason: Let's abandon this as instack_undercloud is not used in master anymore. Patches should go directly in stable/* branches.

Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :

So the patch first fails on tox then on lower-constraints (because of incompatibility between instack_undercloud os-client call and openstacksdk) and then on requirements tests.

Let's end this as instack_undercloud should be removed from master. Commit only in stable branches.

Changed in tripleo:
status: In Progress → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/613542

Revision history for this message
Sofer Athlan-Guyot (sofer-athlan-guyot) wrote :

arghh, try to nominate this for queens only series, but it doesn't render a new queens line as it did there https://bugs.launchpad.net/tripleo/+bug/1798553

If anybody can explain how to have that effect ?

Putting this back to in-progress until I know better.

Changed in tripleo:
status: Won't Fix → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (stable/queens)

Change abandoned by Juan Antonio Osorio Robles (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/613542
Reason: clearing up the gate to free up resources.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/queens)

Reviewed: https://review.openstack.org/613542
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=1c58cb1e8c3fb656bc134720f7446c35d82cbdfe
Submitter: Zuul
Branch: stable/queens

commit 1c58cb1e8c3fb656bc134720f7446c35d82cbdfe
Author: Sofer Athlan-Guyot <email address hidden>
Date: Thu Oct 25 12:55:50 2018 +0200

    Fix pep8 stricter requirement about backslash (W605)

    Python will become stricter about backslash requirement and all
    unknown escape sequence will be forbidden. PEP8 adjusted for that and
    raises a W605 error.

    Change-Id: Id9404f4e10bfa7b1b207a40f71832b269f7cfbb6
    Closes-Bug: #1799926

tags: added: in-stable-queens
Changed in tripleo:
milestone: stein-1 → stein-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/619048

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (stable/pike)

Reviewed: https://review.openstack.org/619048
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=3a0e8ae21ba5c0f17b31ec99a2f85f751ae1d2b1
Submitter: Zuul
Branch: stable/pike

commit 3a0e8ae21ba5c0f17b31ec99a2f85f751ae1d2b1
Author: Sofer Athlan-Guyot <email address hidden>
Date: Thu Oct 25 12:55:50 2018 +0200

    Fix pep8 stricter requirement about backslash (W605)

    Python will become stricter about backslash requirement and all
    unknown escape sequence will be forbidden. PEP8 adjusted for that and
    raises a W605 error.

    Change-Id: Id9404f4e10bfa7b1b207a40f71832b269f7cfbb6
    Closes-Bug: #1799926
    (cherry picked from commit 1c58cb1e8c3fb656bc134720f7446c35d82cbdfe)

tags: added: in-stable-pike
Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 8.4.7

This issue was fixed in the openstack/instack-undercloud 8.4.7 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 7.4.15

This issue was fixed in the openstack/instack-undercloud 7.4.15 release.

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.