Restricting shell scripts to sh only kills productivity

Bug #1440824 reported by Maru Newby
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Maru Newby

Bug Description

Neutron's pep8 tox env checks for bash usage [1], but it's increasingly common to ignore the check because sh doesn't support very useful things like arrays. Given that bash usage is almost entirely dev-only, I'm not sure why we should be requiring lowest-common-denominator vs simply requiring that dev platforms have bash. netbsd includes bash in its ports collection, after all.

1: https://github.com/openstack/neutron/blob/master/tools/misc-sanity-checks.sh#L26

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

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

Changed in neutron:
assignee: nobody → Maru Newby (maru)
status: New → In Progress
Changed in neutron:
importance: Undecided → High
milestone: none → kilo-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-vpnaas (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/171256

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

Reviewed: https://review.openstack.org/170939
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e37dcd4c76e3ab61c585b116c34d32382c592b9f
Submitter: Jenkins
Branch: master

commit e37dcd4c76e3ab61c585b116c34d32382c592b9f
Author: Maru Newby <email address hidden>
Date: Tue Apr 7 15:00:25 2015 +0000

    Remove check for bash usage

    Arbitrarily restricting ourselves from using bash because developers on
    platforms like netbsd don't want to install bash from ports doesn't
    make sense. Any non-trivial shell script is likely to use features
    like arrays or string manipulation that are poorly supported (if at
    all) by sh, and the continued bumping of the number of expected bash
    scripts is an indication that the check is not serving its purpose
    anyway.

    Along with removing the check, all shebang references to /bin/bash
    have been replaced with /usr/bin/env bash in an attempt to be more
    compatible across different hosts.

    Change-Id: Ief72dc380cc88af38959c330897e2c127e33c332
    Closes-Bug: #1440824

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-rc1 → 2015.1.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (neutron-pecan)

Fix proposed to branch: neutron-pecan
Review: https://review.openstack.org/185072

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.