Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

for #541: run compare-locales validate on Travis #544

Merged
merged 2 commits into from
Oct 23, 2018

Conversation

groovecoder
Copy link
Member

No description provided.

@Pike
Copy link

Pike commented Oct 22, 2018

I see that you're already doing the --validate that I suggested in #541.

Now we just need gh to tell travis to actually do something ;-)

@groovecoder
Copy link
Member Author

Still just waiting on GitHub ... "We are working through the backlogs of webhook deliveries"

@Pike
Copy link

Pike commented Oct 23, 2018

OK, this doesn't work in the node build.

We'll need a matrix of python builds for compare-locales and node builds for the rest.

https://stackoverflow.com/questions/27644586/how-to-set-up-travis-ci-with-multiple-languages is what I've found on the tubes.

@pdehaan
Copy link
Collaborator

pdehaan commented Oct 23, 2018

I think the failed build is due to some old Python 2.7 version on Travis CI.

Error seems to be related to https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

SSL Warnings

...
SNIMissingWarning
This happens on Python 2 versions older than 2.7.9. These older versions lack SNI support. This can cause servers to present a certificate that the client thinks is invalid. Follow the pyOpenSSL guide to resolve this warning.

I can't see anywhere in the output where it says what exact version of Python we're using, apart from vague references to "2.7":

$ pip install compare-locales
Collecting compare-locales

/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning

/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning

Although https://docs.travis-ci.com/user/languages/python/#travis-ci-uses-isolated-virtualenvs seems to say that for "Trusty", this means Python 2.7.6 and 3.4.3.

I haven't found a good answer on how to force Circle/Ubuntu to use the Python3 executable by default yet, apart from switching to a matrix of containers.
I'll also read a bit more on it and see if there is a way we can just ignore these TLS errors, because whatever.

@pdehaan
Copy link
Collaborator

pdehaan commented Oct 23, 2018

Actually, the error message was this, and I think the other messages are warnings:

OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pytoml'

@@ -6,7 +6,11 @@ services:
- postgresql
env:
- NODE_ENV=tests
install:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Interesting, now we're getting the following error:

sh: 1: npm-run-all: not found

I wonder if this is causing $ npm install (or $ npm ci) to not get called, and maybe we should rename this to "before_install:", similar to https://docs.travis-ci.com/user/languages/javascript-with-nodejs/#using-a-specific-npm-version

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, just updated install to do both pip and npm

@groovecoder
Copy link
Member Author

Yay! now with both pip install and npm install during install

@groovecoder
Copy link
Member Author

Cool, I added a commit that introduced a parse error in the locales/en/app.ftl file and Travis failed it.

So I think this is good to go!

@groovecoder groovecoder merged commit 125075a into master Oct 23, 2018
@groovecoder groovecoder deleted the travis-validate-locales-541 branch October 23, 2018 20:56
Copy link

@Pike Pike left a comment

Choose a reason for hiding this comment

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

I think we should change the l10n check to not do ls but instead add the list of locales to l10n.ini.

That's going to make it easier to switch things on, and infer l10n status from the configuration files.

And yes, in bug 1501220 I'm tracking to add validation to that data based on local data.

@pdehaan
Copy link
Collaborator

pdehaan commented Oct 23, 2018

I think we should change the l10n check to not do ls but instead add the list of locales to l10n.ini.

That's going to make it easier to switch things on, and infer l10n status from the configuration files.

And yes, in bug 1501220 I'm tracking to add validation to that data based on local data.

Filed new bug #553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants