Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Fix fake payment instruction #4224

Merged
merged 2 commits into from
Dec 7, 2016
Merged

Fix fake payment instruction #4224

merged 2 commits into from
Dec 7, 2016

Conversation

chadwhitacre
Copy link
Contributor

@chadwhitacre
Copy link
Contributor Author

Assuming this lands in master first, the whitespace trim will affect #4214, which also makes that move.

@chadwhitacre chadwhitacre mentioned this pull request Dec 6, 2016
4 tasks
@chadwhitacre
Copy link
Contributor Author

Will it fail here? :]

@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Dec 6, 2016

fake.date_time_between(start_date="-30y", end_date="now", tzinfo=None)
# datetime(2005, 5, 23, 20, 47, 45)

http://faker.readthedocs.io/en/master/providers/faker.providers.date_time.html

@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Dec 6, 2016

Seemingly(?) fixed under #4130 (comment) by 3dda2a1. Not what I would have expected since "now" is supposedly the default.

If the presence of the bug varies with the time of day, then rerunning the build on #4157 that doesn't have the fix #4130 has—we might expect that to also pass.

@chadwhitacre
Copy link
Contributor Author

Build restarted.

@chadwhitacre
Copy link
Contributor Author

Build passes! I don't think we're out of the woods yet.

@chadwhitacre
Copy link
Contributor Author

We're using an old version of the library that was tagged in 2013, before joke2k/faker#282 was fixed. It seems that an upgrade to Faker is in order! :-)

@chadwhitacre
Copy link
Contributor Author

Harumph. Passing locally. Can I blame it on caching at Travis?

@chadwhitacre
Copy link
Contributor Author

/me restarts build ...

@chadwhitacre chadwhitacre mentioned this pull request Dec 7, 2016
2 tasks
@mattbk
Copy link
Contributor

mattbk commented Dec 7, 2016

Man, I just figured we had the right version of faker. Huh.

@chadwhitacre
Copy link
Contributor Author

I just figured we had the right version of faker. Huh.

We upgrade dependencies manually, to avoid the risk that newer versions break things we were depending on. We could certainly do a better job of upgrading dependencies on a schedule as opposed to haphazardly when stuff like this happens—the generalized case of gratipay/inside.gratipay.com#776.

@chadwhitacre
Copy link
Contributor Author

Can I blame it on caching at Travis?

Apparently not.

@@ -33,7 +33,10 @@
./vendor/contextlib2-0.5.4.tar.gz
./vendor/raven-5.32.0.tar.gz

./vendor/fake-factory-0.3.2.tar.gz
./vendor/six-1.8.0.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already in the next section?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it needs to be installed before Faker since Faker depends on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with the next two lines, actually.

@mattbk
Copy link
Contributor

mattbk commented Dec 7, 2016

E AttributeError: 'module' object has no attribute 'Provider'

joke2k/faker#332 is this issue, but we're installing from .tar.gz.

@chadwhitacre
Copy link
Contributor Author

Heh ... COS fixed it in CenterForOpenScience/osf.io@381c851 by pinning to version 0.5.3. Does that version include the bugfix we need for our own presenting issue?

@chadwhitacre
Copy link
Contributor Author

___________________ ERROR collecting tests/py/test_stats.py ____________________
tests/py/test_stats.py:8: in <module>
    from gratipay.utils import fake_data
gratipay/utils/fake_data.py:19: in <module>
    faker = Factory.create()
env/lib/python2.7/site-packages/faker/factory.py:39: in create
    prov_cls, lang_found = cls._get_provider_class(prov_name, locale)
env/lib/python2.7/site-packages/faker/factory.py:50: in _get_provider_class
    provider_class = cls._find_provider_class(provider, locale)
env/lib/python2.7/site-packages/faker/factory.py:98: in _find_provider_class
    return provider_module.Provider
E   AttributeError: 'module' object has no attribute 'Provider'
------------------------------- Captured stdout --------------------------------
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.address
FAKER: using localized provider module
FAKER: available locales: ['cs_CZ', 'de_DE', 'el_GR', 'en', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'es', 'es_ES', 'es_MX', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hi_IN', 'hr_HR', 'it_IT', 'ja_JP', 'ko_KR', 'ne_NP', 'nl_NL', 'no_NO', 'pl_PL', 'pt_BR', 'pt_PT', 'sk_SK', 'sl_SI', 'sv_SE', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.address.en_US
FAKER: provider_module: <module 'faker.providers.address.en_US' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/address/en_US/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.barcode
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.barcode
FAKER: provider_module: <module 'faker.providers.barcode' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/barcode/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.color
FAKER: using localized provider module
FAKER: available locales: ['en_US']
FAKER: path: faker.providers.color.en_US
FAKER: provider_module: <module 'faker.providers.color.en_US' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/color/en_US/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.company
FAKER: using localized provider module
FAKER: available locales: ['bg_BG', 'cs_CZ', 'de_DE', 'en_US', 'es_MX', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hr_HR', 'it_IT', 'ja_JP', 'ko_KR', 'no_NO', 'pt_BR', 'pt_PT', 'sk_SK', 'sl_SI', 'sv_SE', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.company.en_US
FAKER: provider_module: <module 'faker.providers.company.en_US' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/company/en_US/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.credit_card
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.credit_card
FAKER: provider_module: <module 'faker.providers.credit_card' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/credit_card/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.currency
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.currency
FAKER: provider_module: <module 'faker.providers.currency' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/currency/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.date_time
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.date_time
FAKER: provider_module: <module 'faker.providers.date_time' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/date_time/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.en_US
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.en_US
FAKER: provider_module: <module 'faker.providers.en_US' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/en_US/__init__.pyc'>

@chadwhitacre
Copy link
Contributor Author

Local working envtest tests/py/test_stats.py:

FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.address
FAKER: using localized provider module
FAKER: available locales: ['cs_CZ', 'de_DE', 'el_GR', 'en', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'es', 'es_ES', 'es_MX', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hi_IN', 'hr_HR', 'it_IT', 'ja_JP', 'ko_KR', 'ne_NP', 'nl_NL', 'no_NO', 'pl_PL', 'pt_BR', 'pt_PT', 'sk_SK', 'sl_SI', 'sv_SE', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.address.en_US
FAKER: provider_module: <module 'faker.providers.address.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/address/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.barcode
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.barcode
FAKER: provider_module: <module 'faker.providers.barcode' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/barcode/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.color
FAKER: using localized provider module
FAKER: available locales: ['en_US']
FAKER: path: faker.providers.color.en_US
FAKER: provider_module: <module 'faker.providers.color.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/color/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.company
FAKER: using localized provider module
FAKER: available locales: ['bg_BG', 'cs_CZ', 'de_DE', 'en_US', 'es_MX', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hr_HR', 'it_IT', 'ja_JP', 'ko_KR', 'no_NO', 'pt_BR', 'pt_PT', 'sk_SK', 'sl_SI', 'sv_SE', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.company.en_US
FAKER: provider_module: <module 'faker.providers.company.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/company/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.credit_card
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.credit_card
FAKER: provider_module: <module 'faker.providers.credit_card' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/credit_card/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.currency
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.currency
FAKER: provider_module: <module 'faker.providers.currency' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/currency/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.date_time
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.date_time
FAKER: provider_module: <module 'faker.providers.date_time' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/date_time/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.file
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.file
FAKER: provider_module: <module 'faker.providers.file' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/file/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.internet
FAKER: using localized provider module
FAKER: available locales: ['bg_BG', 'bs_BA', 'cs_CZ', 'de_AT', 'de_DE', 'el_GR', 'en_AU', 'en_US', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hr_HR', 'ja_JP', 'ko_KR', 'no_NO', 'pt_BR', 'pt_PT', 'sk_SK', 'sl_SI', 'sv_SE', 'zh_CN']
FAKER: path: faker.providers.internet.en_US
FAKER: provider_module: <module 'faker.providers.internet.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/internet/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.job
FAKER: using localized provider module
FAKER: available locales: ['en_US', 'fa_IR', 'fr_CH', 'fr_FR', 'hr_HR', 'pl_PL', 'ru_RU', 'uk_UA', 'zh_TW']
FAKER: path: faker.providers.job.en_US
FAKER: provider_module: <module 'faker.providers.job.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/job/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.lorem
FAKER: using localized provider module
FAKER: available locales: ['el_GR', 'la', 'ru_RU']
FAKER: path: faker.providers.lorem.la
FAKER: provider_module: <module 'faker.providers.lorem.la' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/lorem/la/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.misc
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.misc
FAKER: provider_module: <module 'faker.providers.misc' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/misc/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.person
FAKER: using localized provider module
FAKER: available locales: ['bg_BG', 'cs_CZ', 'de_AT', 'de_DE', 'dk_DK', 'el_GR', 'en', 'en_GB', 'en_US', 'es_ES', 'es_MX', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hi_IN', 'hr_HR', 'it_IT', 'ja_JP', 'ko_KR', 'lt_LT', 'lv_LV', 'ne_NP', 'nl_NL', 'no_NO', 'pl_PL', 'pt_BR', 'pt_PT', 'ru_RU', 'sl_SI', 'sv_SE', 'tr_TR', 'uk_UA', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.person.en_US
FAKER: provider_module: <module 'faker.providers.person.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/person/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.phone_number
FAKER: using localized provider module
FAKER: available locales: ['bg_BG', 'bs_BA', 'cs_CZ', 'de_DE', 'dk_DK', 'el_GR', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'es_ES', 'es_MX', 'fa_IR', 'fi_FI', 'fr_CH', 'fr_FR', 'hi_IN', 'hr_HR', 'it_IT', 'ja_JP', 'ko_KR', 'lt_LT', 'lv_LV', 'ne_NP', 'nl_NL', 'no_NO', 'pl_PL', 'pt_BR', 'pt_PT', 'ru_RU', 'sk_SK', 'sl_SI', 'sv_SE', 'tr_TR', 'uk_UA', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.phone_number.en_US
FAKER: provider_module: <module 'faker.providers.phone_number.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/phone_number/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.profile
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.profile
FAKER: provider_module: <module 'faker.providers.profile' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/profile/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.python
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.python
FAKER: provider_module: <module 'faker.providers.python' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/python/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.ssn
FAKER: using localized provider module
FAKER: available locales: ['en_CA', 'en_US', 'fi_FI', 'fr_CH', 'hr_HR', 'it_IT', 'ko_KR', 'nl_NL', 'pt_BR', 'sv_SE', 'uk_UA', 'zh_CN', 'zh_TW']
FAKER: path: faker.providers.ssn.en_US
FAKER: provider_module: <module 'faker.providers.ssn.en_US' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/ssn/en_US/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.user_agent
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.user_agent
FAKER: provider_module: <module 'faker.providers.user_agent' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/user_agent/__init__.py'>

@chadwhitacre
Copy link
Contributor Author

Here's where the breakdown occurs:

Working Locally

FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.date_time
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.date_time
FAKER: provider_module: <module 'faker.providers.date_time' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/date_time/__init__.py'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.file
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.file
FAKER: provider_module: <module 'faker.providers.file' from '/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/file/__init__.py'>

Broken at Travis

FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.date_time
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.date_time
FAKER: provider_module: <module 'faker.providers.date_time' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/date_time/__init__.pyc'>
FAKER: ------------------------------------------------------------------------------
FAKER: provider path: faker.providers.en_US
FAKER: not using localized provider module
FAKER: locale is not None; faker.providers.en_US
FAKER: provider_module: <module 'faker.providers.en_US' from '/home/travis/build/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers/en_US/__init__.pyc'>

@chadwhitacre
Copy link
Contributor Author

With dffcac0:

Working Locally

envtest tests/py/test_stats.py

FAKER: ***************************************************************************
FAKER: providers: None
FAKER: PROVIDERS: ['faker.providers.address', 'faker.providers.barcode', 'faker.providers.color', 'faker.providers.company', 'faker.providers.credit_card', 'faker.providers.currency', 'faker.providers.date_time', 'faker.providers.file', 'faker.providers.internet', 'faker.providers.job', 'faker.providers.lorem', 'faker.providers.misc', 'faker.providers.person', 'faker.providers.phone_number', 'faker.providers.profile', 'faker.providers.python', 'faker.providers.ssn', 'faker.providers.user_agent']
FAKER: includes: []

Broken at Travis

___________________ ERROR collecting tests/py/test_stats.py ____________________
tests/py/test_stats.py:8: in <module>
    from gratipay.utils import fake_data
gratipay/utils/fake_data.py:19: in <module>
    faker = Factory.create()
env/lib/python2.7/site-packages/faker/factory.py:45: in create
    prov_cls, lang_found = cls._get_provider_class(prov_name, locale)
env/lib/python2.7/site-packages/faker/factory.py:56: in _get_provider_class
    provider_class = cls._find_provider_class(provider, locale)
env/lib/python2.7/site-packages/faker/factory.py:104: in _find_provider_class
    return provider_module.Provider
E   AttributeError: 'module' object has no attribute 'Provider'
------------------------------- Captured stdout --------------------------------
FAKER: ***************************************************************************
FAKER: providers: None
FAKER: PROVIDERS: ['faker.providers.address', 'faker.providers.barcode', 'faker.providers.color', 'faker.providers.company', 'faker.providers.credit_card', 'faker.providers.currency', 'faker.providers.date_time', 'faker.providers.en_US', 'faker.providers.file', 'faker.providers.fr_FR', 'faker.providers.internet', 'faker.providers.it_IT', 'faker.providers.job', 'faker.providers.lorem', 'faker.providers.misc', 'faker.providers.person', 'faker.providers.phone_number', 'faker.providers.profile', 'faker.providers.pt_BR', 'faker.providers.python', 'faker.providers.ssn', 'faker.providers.user_agent']
FAKER: includes: []

@chadwhitacre
Copy link
Contributor Author

The broken version at Travis includes faker.providers.en_US in PROVIDERS, whereas the local working version does not. Is this a caching issue after all? Is this a vestige from the previous version install?

https://docs.travis-ci.com/user/caching/#Clearing-Caches

@chadwhitacre
Copy link
Contributor Author

Cache cleared and build restarted ... 🙈

@chadwhitacre
Copy link
Contributor Author

Not a cache issue. Hmm ... 8faba0e to confirm joke2k/faker#332 (comment) ...

@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Dec 7, 2016

Confirmed.

$ ls -FGl env/lib/python2.7/site-packages/faker/providers/
total 312
drwxrwxr-x 33 travis  4096 Dec  7 17:27 address/
-rw-rw-r--  1 travis  2455 Dec  5 00:08 address.py
-rw-rw-r--  1 travis  4644 Dec  5 00:09 address.pyc
drwxrwxr-x  3 travis  4096 Dec  7 17:27 barcode/
drwxrwxr-x  3 travis  4096 Dec  7 17:27 color/
drwxrwxr-x 23 travis  4096 Dec  7 17:27 company/
-rw-rw-r--  1 travis   509 Dec  5 00:08 company.py
-rw-rw-r--  1 travis  1278 Dec  5 00:09 company.pyc
drwxrwxr-x  3 travis  4096 Dec  7 17:27 credit_card/
-rw-rw-r--  1 travis  6733 Dec  5 00:08 credit_card.py
-rw-rw-r--  1 travis  7160 Dec  5 00:09 credit_card.pyc
drwxrwxr-x  3 travis  4096 Dec  7 17:27 currency/
drwxrwxr-x  3 travis  4096 Dec  7 17:27 date_time/
-rw-rw-r--  1 travis 32355 Dec  5 00:08 date_time.py
-rw-rw-r--  1 travis 30867 Dec  5 00:09 date_time.pyc
drwxrwxr-x  2 travis  4096 Dec  5 00:09 en_US/
drwxrwxr-x  3 travis  4096 Dec  7 17:27 file/
-rw-rw-r--  1 travis  8070 Dec  5 00:08 file.py
-rw-rw-r--  1 travis  4165 Dec  5 00:09 file.pyc
drwxrwxr-x  2 travis  4096 Dec  5 00:09 fr_FR/
-rw-rw-r--  1 travis  6330 Dec  7 17:27 __init__.py
-rw-rw-r--  1 travis  9647 Dec  7 17:27 __init__.pyc
drwxrwxr-x 24 travis  4096 Dec  7 17:27 internet/
-rw-rw-r--  1 travis  4044 Dec  5 00:08 internet.py
-rw-rw-r--  1 travis  8051 Dec  5 00:09 internet.pyc
drwxrwxr-x  2 travis  4096 Dec  5 00:09 it_IT/
drwxrwxr-x 11 travis  4096 Dec  7 17:27 job/
drwxrwxr-x  5 travis  4096 Dec  7 17:27 lorem/
-rw-rw-r--  1 travis  7250 Dec  5 00:08 lorem.py
-rw-rw-r--  1 travis  9957 Dec  5 00:09 lorem.pyc
drwxrwxr-x  3 travis  4096 Dec  7 17:27 misc/
-rw-rw-r--  1 travis  1859 Dec  5 00:08 miscelleneous.py
-rw-rw-r--  1 travis  3632 Dec  5 00:09 miscelleneous.pyc
drwxrwxr-x 37 travis  4096 Dec  7 17:27 person/
-rw-rw-r--  1 travis   568 Dec  5 00:08 person.py
-rw-rw-r--  1 travis  1498 Dec  5 00:09 person.pyc
drwxrwxr-x 39 travis  4096 Dec  7 17:27 phone_number/
-rw-rw-r--  1 travis   235 Dec  5 00:08 phone_number.py
-rw-rw-r--  1 travis   911 Dec  5 00:09 phone_number.pyc
drwxrwxr-x  3 travis  4096 Dec  7 17:27 profile/
drwxrwxr-x  2 travis  4096 Dec  5 00:09 pt_BR/
drwxrwxr-x  3 travis  4096 Dec  7 17:27 python/
-rw-rw-r--  1 travis  4355 Dec  5 00:08 python.py
-rw-rw-r--  1 travis  5768 Dec  5 00:09 python.pyc
drwxrwxr-x 15 travis  4096 Dec  7 17:27 ssn/
drwxrwxr-x  3 travis  4096 Dec  7 17:27 user_agent/
-rw-rw-r--  1 travis  5274 Dec  5 00:08 user_agent.py
-rw-rw-r--  1 travis  6778 Dec  5 00:09 user_agent.pyc

@chadwhitacre
Copy link
Contributor Author

Local:

/Users/whit537/personal/gratipay/gratipay.com/env/lib/python2.7/site-packages/faker/providers
total 8
drwxr-xr-x  21 whit537  staff   714 Dec  6 17:19 ./
drwxr-xr-x  14 whit537  staff   476 Dec  7 11:54 ../
-rw-r--r--   1 whit537  staff  6330 Sep 16 00:57 __init__.py
drwxr-xr-x  34 whit537  staff  1156 Dec  6 17:19 address/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 barcode/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 color/
drwxr-xr-x  24 whit537  staff   816 Dec  6 17:19 company/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 credit_card/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 currency/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 date_time/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 file/
drwxr-xr-x  25 whit537  staff   850 Dec  6 17:19 internet/
drwxr-xr-x  12 whit537  staff   408 Dec  6 17:19 job/
drwxr-xr-x   6 whit537  staff   204 Dec  6 17:19 lorem/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 misc/
drwxr-xr-x  38 whit537  staff  1292 Dec  6 17:19 person/
drwxr-xr-x  40 whit537  staff  1360 Dec  6 17:19 phone_number/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 profile/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 python/
drwxr-xr-x  16 whit537  staff   544 Dec  6 17:19 ssn/
drwxr-xr-x   4 whit537  staff   136 Dec  6 17:19 user_agent/
$

@chadwhitacre
Copy link
Contributor Author

I note that there are also address.py, etc. files at Travis, though no color.py ... because we never import that?

@chadwhitacre
Copy link
Contributor Author

Wait! 8311327 is green!?

@chadwhitacre
Copy link
Contributor Author

But 93b5099 is red again? 😖

@chadwhitacre
Copy link
Contributor Author

Different red.

@chadwhitacre
Copy link
Contributor Author

Green! Does caching predict the result?

@mattbk
Copy link
Contributor

mattbk commented Dec 7, 2016

image

@chadwhitacre
Copy link
Contributor Author

chadwhitacre commented Dec 7, 2016

If a branch does not have its own cache, Travis CI fetches the master branch cache.

https://docs.travis-ci.com/user/caching/

@chadwhitacre
Copy link
Contributor Author

I'm going to try removing all caches.

@chadwhitacre
Copy link
Contributor Author

My hypothesis is that when we don't specify the cache directory for the branch, Travis is falling back to a spoiled cache from master or something like that.

@chadwhitacre
Copy link
Contributor Author

Well, that should be green, but it won't give us info about the hypothesis that a fall-through is causing failures to persist. For that I think we would need to remove all caches after all.

@chadwhitacre
Copy link
Contributor Author

No caches have been created yet,
read more on how to setup caching with your build.

@chadwhitacre
Copy link
Contributor Author

Here we go!

@chadwhitacre
Copy link
Contributor Author

💃

@chadwhitacre chadwhitacre force-pushed the fix-fake-payment-instruction branch from 3dff9ab to 45cb68d Compare December 7, 2016 19:27
@chadwhitacre
Copy link
Contributor Author

Debugging commits rebased off. Was b2a33f9.

@chadwhitacre
Copy link
Contributor Author

Build restarted for 45cb68d ...

@chadwhitacre
Copy link
Contributor Author

Green! Ready to declare victory here, @mattbk?

@mattbk
Copy link
Contributor

mattbk commented Dec 7, 2016

Nice work!

@mattbk mattbk merged commit 013fef9 into master Dec 7, 2016
@mattbk mattbk deleted the fix-fake-payment-instruction branch December 7, 2016 19:50
This was referenced Dec 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants