Debian Bug report logs - #849333
faker: Non-determistically FTBFS due to tests sometimes exposing UnboundLocalError

version graph

Package: src:faker; Maintainer for src:faker is Debian Python Team <team+python@tracker.debian.org>;

Reported by: Chris Lamb <lamby@debian.org>

Date: Sun, 25 Dec 2016 18:03:01 UTC

Severity: serious

Tags: fixed-upstream, patch

Found in versions faker/0.7.7-1, faker/0.5.7-1

Fixed in version faker/0.7.7-2

Done: Brian May <bam@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://github.com/joke2k/faker/pull/441

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#849333; Package src:faker. (Sun, 25 Dec 2016 18:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Sun, 25 Dec 2016 18:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: submit@bugs.debian.org
Subject: faker: Non-determistically FTBFS due to tests sometimes exposing UnboundLocalError
Date: Sun, 25 Dec 2016 18:01:56 +0000
[Message part 1 (text/plain, inline)]
Source: faker
Version: 0.7.7-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Dear Maintainer,

faker's testsuite appears to non-deterministically vary in behaviour,
causing a FTBFS when it exposes a programming error:

  […]

  ======================================================================
  ERROR: test_documentor (faker.tests.FactoryTestCase)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "faker/tests/__init__.py", line 207, in test_documentor
      print_doc(output=output)
    File "faker/cli.py", line 110, in print_doc
      excludes=base_provider_formatters):
    File "faker/documentor.py", line 32, in get_formatters
      (provider, self.get_provider_formatters(provider, **kwargs))
    File "faker/documentor.py", line 87, in get_provider_formatters
      example = self.generator.format(name)
    File "faker/generator.py", line 66, in format
      return self.get_formatter(formatter)(*args, **kwargs)
    File "faker/providers/profile/__init__.py", line 47, in profile
      "ssn": self.generator.ssn(),
    File "faker/providers/ssn/fi_FI/__init__.py", line 42, in ssn
      separator += 'A'
  UnboundLocalError: local variable 'separator' referenced before assignment
  
  ----------------------------------------------------------------------
  Ran 45 tests in 2.150s
  
  FAILED (errors=1)
  debian/rules:27: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 1
  make[1]: Leaving directory '«BUILDDIR»'
  debian/rules:10: recipe for target 'build' failed
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  […]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[faker.0.7.7-1.unstable.amd64.log.txt.gz (application/octet-stream, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#849333; Package src:faker. (Sun, 25 Dec 2016 18:09:02 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Sun, 25 Dec 2016 18:09:03 GMT) (full text, mbox, link).


Message #10 received at 849333@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: 849333@bugs.debian.org
Subject: Re: faker: Non-determistically FTBFS due to tests sometimes exposing UnboundLocalError
Date: Sun, 25 Dec 2016 18:05:27 +0000
[Message part 1 (text/plain, inline)]
tags 849333 + patch
thanks

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[849333.diff.txt (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#849333; Package src:faker. (Sun, 25 Dec 2016 18:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>. (Sun, 25 Dec 2016 18:09:04 GMT) (full text, mbox, link).


Message #15 received at 849333@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: 849333@bugs.debian.org
Subject: Re: faker: Non-determistically FTBFS due to tests sometimes exposing UnboundLocalError
Date: Sun, 25 Dec 2016 18:07:27 +0000
forwarded 849333 https://github.com/joke2k/faker/pull/441
thanks

I've forwarded this upstream here:

   https://github.com/joke2k/faker/pull/441


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-



Added tag(s) patch. Request was from Chris Lamb <lamby@debian.org> to control@bugs.debian.org. (Sun, 25 Dec 2016 18:09:05 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://github.com/joke2k/faker/pull/441'. Request was from Chris Lamb <lamby@debian.org> to control@bugs.debian.org. (Sun, 25 Dec 2016 18:09:07 GMT) (full text, mbox, link).


Added tag(s) fixed-upstream. Request was from bts-link-upstream@lists.alioth.debian.org to control@bugs.debian.org. (Thu, 29 Dec 2016 17:33:20 GMT) (full text, mbox, link).


Marked as found in versions faker/0.5.7-1. Request was from Adrian Bunk <bunk@debian.org> to control@bugs.debian.org. (Sun, 22 Jan 2017 19:57:02 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from Brian May <bam@debian.org> to control@bugs.debian.org. (Tue, 31 Jan 2017 06:36:04 GMT) (full text, mbox, link).


Message sent on to Chris Lamb <lamby@debian.org>:
Bug#849333. (Tue, 31 Jan 2017 06:36:08 GMT) (full text, mbox, link).


Message #28 received at 849333-submitter@bugs.debian.org (full text, mbox, reply):

From: Brian May <bam@debian.org>
To: 849333-submitter@bugs.debian.org
Subject: Bug#849333 marked as pending
Date: Tue, 31 Jan 2017 06:32:31 +0000
tag 849333 pending
thanks

Hello,

Bug #849333 reported by you has been fixed in the Git repository. You can
see the changelog below, and you can check the diff of the fix at:

    http://git.debian.org/?p=python-modules/packages/faker.git;a=commitdiff;h=08f626e

---
commit 08f626e51cf15c88213d6b2474bd56156b0b8ee4
Author: Brian May <bam@debian.org>
Date:   Sun Jan 29 08:59:39 2017 +1100

    Add upstream patch for UnboundLocalError

diff --git a/debian/changelog b/debian/changelog
index 84d5377..f07ca2d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+faker (0.7.7-2) UNRELEASED; urgency=medium
+
+  * Fix Non-determistically FTBFS due to tests sometimes exposing
+    UnboundLocalError. Closes: #849333.
+
+ -- Brian May <bam@debian.org>  Sun, 29 Jan 2017 08:58:05 +1100
+
 faker (0.7.7-1) unstable; urgency=medium
 
   * Team upload.



Reply sent to Brian May <bam@debian.org>:
You have taken responsibility. (Tue, 31 Jan 2017 08:51:14 GMT) (full text, mbox, link).


Notification sent to Chris Lamb <lamby@debian.org>:
Bug acknowledged by developer. (Tue, 31 Jan 2017 08:51:14 GMT) (full text, mbox, link).


Message #33 received at 849333-close@bugs.debian.org (full text, mbox, reply):

From: Brian May <bam@debian.org>
To: 849333-close@bugs.debian.org
Subject: Bug#849333: fixed in faker 0.7.7-2
Date: Tue, 31 Jan 2017 08:50:23 +0000
Source: faker
Source-Version: 0.7.7-2

We believe that the bug you reported is fixed in the latest version of
faker, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 849333@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Brian May <bam@debian.org> (supplier of updated faker package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 31 Jan 2017 17:32:59 +1100
Source: faker
Binary: python-fake-factory python3-fake-factory faker
Architecture: source all
Version: 0.7.7-2
Distribution: unstable
Urgency: high
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Brian May <bam@debian.org>
Description:
 faker      - Python program that generates fake data
 python-fake-factory - Faker is a Python library that generates fake data (Python 2)
 python3-fake-factory - Faker is a Python library that generates fake data (Python 3)
Closes: 849333 849652
Changes:
 faker (0.7.7-2) unstable; urgency=high
 .
   * Fix Non-determistically FTBFS due to tests sometimes exposing
     UnboundLocalError. Closes: #849333.
   * Remove century tests. Closes: #849652.
Checksums-Sha1:
 53819ffcfe962e9f27d2b2246beda7b8b292ebeb 2256 faker_0.7.7-2.dsc
 11ed867e7b06e013f70964ba031342e3993f09c5 523672 faker_0.7.7.orig.tar.gz
 8e8a8549acad5252db9316666f7f24686d6e302f 3540 faker_0.7.7-2.debian.tar.xz
 b4e4d0ecdaffe50c538eb0c904b5de0ca23412f0 8168 faker_0.7.7-2_all.deb
 89f339e1a5fdf1a9ff7f1dfe19855999ec613a40 6288 faker_0.7.7-2_amd64.buildinfo
 b3cc2d3d903a55d276c81521bc1f8740009432f1 402642 python-fake-factory_0.7.7-2_all.deb
 70ac572006d584a284adf002cd62816a9c76a668 402752 python3-fake-factory_0.7.7-2_all.deb
Checksums-Sha256:
 0d3221849bdcf26e8ff9f9eb1ea56a6f9cf7c0cc7787e0130038139247d5c20e 2256 faker_0.7.7-2.dsc
 e09b5747f129004c8b16ce78799ba54a0add82af96a5f15ffbb865a755a667ca 523672 faker_0.7.7.orig.tar.gz
 0dddbee4341444f286d226d9ee62aeea47ff6eaa92f6bfe8ffc18f571d51e871 3540 faker_0.7.7-2.debian.tar.xz
 4c06c8fada558516907d35aaf9d03b0293f91bd5b529d25c7b5c97dbd721042d 8168 faker_0.7.7-2_all.deb
 1d724b8eb95e1efbf32a6121c4cce90fa76f3959462a8d595260cd77cae1d4c1 6288 faker_0.7.7-2_amd64.buildinfo
 b85c830e9b4a55bcce44140ca9ed57ad0ecacda98bd6d00bbae202e2679ca175 402642 python-fake-factory_0.7.7-2_all.deb
 7b34cb38f27b5594e6d7aca97806779095f64b287e8524dacce70398f994ead6 402752 python3-fake-factory_0.7.7-2_all.deb
Files:
 e95872d36a0117e8233e32bb5e306dba 2256 python optional faker_0.7.7-2.dsc
 1f70df7a9a3fc9a452bc5dbd8d07fc82 523672 python optional faker_0.7.7.orig.tar.gz
 76767eb41da5823698dbe11595f4527c 3540 python optional faker_0.7.7-2.debian.tar.xz
 6cce7e370e3a648aa1e57fd3e2ac3be5 8168 python optional faker_0.7.7-2_all.deb
 58280578e0314c4e35b009f5463f0dba 6288 python optional faker_0.7.7-2_amd64.buildinfo
 13de0244c24c14b0623eebfa8a6ea420 402642 python optional python-fake-factory_0.7.7-2_all.deb
 c6a30b631a375e96ab597cc539cedccf 402752 python optional python3-fake-factory_0.7.7-2_all.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE1jZRJqkttWDGJ6ztF4RXf4EfbqwFAliQP4wACgkQF4RXf4Ef
bqxwvw//aEmiy5x8+SxEJMMRGFmLnNVasA2mJnMRv8Qw6nJ9JS22VMMf80JhdTYK
e01a6f7XBLfvuPvyHp22rKRyXNfFK8i20wqeYKZ0klJz4dprBmh6OUxSmBXDCba5
Jejsv96YkkXGDCqnyAg6tXET3xLM9JCyL4pDGqkXJ9Lq+cvABaxnlRcBALN94xY1
qA5qClmHMsUZDLwVIGkkNHwJ8I8IQwakAiqIiuiEPQ/OWQqxk/Zrfig2FK1KmhBA
Yj8Fn5bnYL8kbb/7CQX0cZzOUjit8UF68occvA690tBG2sKkpc4qTx7mZ/dBcrIe
oFfiMPw+qS1y2t44kkChLQfzc9QegwfsdbrdpTHdF1NWQVaYO2dhX8RcqGT9BfEG
oZCFQZUSbVUmIBCgbslzju5t06jSdNZmTPHUbh1Sotpf7wgocp8hdyNKAPB5ZAah
muFS4kSUVeSD06bdLK7hzHmDgUmWcQkwfNyqGVuKnXZK5xH9S8fSfO7lx3VaMnrM
LSSTYQs4FaY/G0E5MRJa2G0gUNzYFn0uiTnZKiATBD6OvQYbtgKGIze8SdQayYSQ
9ADI4Tsa5Y0GLMUCJ3X/TZ3/zS9LZggsG7BNVltreOVz/aQJwJi8qLZasVEVfr3H
Mjk6K1Y0ntnQAu7xF40l3WfEvNdGvuT5zUyXWte3wT5u5lr/ha0=
=q438
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 04 Mar 2017 07:29:39 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 14:00:01 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.