← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1699509] Re: NoReverseMatch: Reverse for 'jsi18n' with arguments '('', )' and keyword arguments '{}' not found. 1 pattern(s) tried: ['i18n/js/(?P<packages>\\S+?)/$'] in plugin tests

 

Reviewed:  https://review.openstack.org/476154
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ce82c1f80520fee7b748538ab10ad2a0475bc8bb
Submitter: Jenkins
Branch:    master

commit ce82c1f80520fee7b748538ab10ad2a0475bc8bb
Author: Akihiro Motoki <amotoki@xxxxxxxxx>
Date:   Wed Jun 21 14:00:27 2017 +0000

    test helper: Ensure to populate JS_CATALOG in context
    
    _script_i18n.html which tries to access 'jsi18n' url assumes
    context['JS_CATALOG'] is populated, but openstack_dashboard test
    helper clears it by mocking a context processor.
    This leads to a error in rendering templates in unit tests.
    Note that template rendering error is caught by a rendering engine
    so unit test itself succeeds even when this happens.
    
    Change-Id: I0f5013c4e9ed7b166c527b1aacd0302413948d51
    Closes-Bug: #1699509


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1699509

Title:
  NoReverseMatch: Reverse for 'jsi18n' with arguments '('',)' and
  keyword arguments '{}' not found. 1 pattern(s) tried:
  ['i18n/js/(?P<packages>\\S+?)/$'] in plugin tests

Status in OpenStack Dashboard (Horizon):
  Fix Released

Bug description:
  when running horizon plugin tests, we sometimes get an warning:

  NoReverseMatch: Reverse for 'jsi18n' with arguments '('',)' and
  keyword arguments '{}' not found. 1 pattern(s) tried:
  ['i18n/js/(?P<packages>\\S+?)/$'] in plugin tests

  http://paste.openstack.org/show/613289/

  As far as I tested, it depends on PYTHONHASHSEED.
  I am not sure this can happen in the horizon repo test.

  One example is http://logs.openstack.org/05/476005/1/check/gate-
  neutron-vpnaas-dashboard-python27-ubuntu-
  xenial/e06a366/console.html#_2017-06-21_05_21_19_820301

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1699509/+subscriptions


References