-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Attempt to fix Chrome on Travis #5382
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #5382 +/- ##
========================================
Coverage 47.73% 47.73%
========================================
Files 489 489
Lines 28005 28005
Branches 4327 4327
========================================
Hits 13368 13368
Misses 14637 14637 Continue to review full report at Codecov.
|
@@ -69,6 +66,8 @@ before_install: | |||
- export CHROME_BIN=/usr/bin/google-chrome-stable | |||
- export DISPLAY=:99.0 | |||
- bash -e /etc/init.d/xvfb start | |||
- wget --no-verbose -O /tmp/$(basename $CHROME_SOURCE_URL) $CHROME_SOURCE_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to check, what is CHROME_SOURCE_URL? Just wondering if it'll break in the future when Chrome updates again, and if it's possible to use something stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have mentioned it in the PR description. I found a repository which stores deb files of various chrome versions: https://github.com/webnicer/chrome-downloads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry. Where are these "repository settings"? Should we document the procedure for updating to a newer version of Chrome here, in comments?
(We will have to do that eventually. But better that happen under our control, rather than under our feet and breaking us every time.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case there is a problem with the link, we can directly change it by modifying this environment variable in Travis's repo settings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, in this file, you should provide instructions on how exactly to do that (in comments). It's the natural place that people will look.
Maybe in a separate PR after this one, though, since we want to get this one in as quickly as possible to unbreak develop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the Travis repository settings: https://travis-ci.org/oppia/oppia/settings
The environment variables are under the same-named header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks! I've merged this PR. Can you put these instructions in a comment here, as mentioned previously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I will do this. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, @apb7! Feel free to merge whenever you like.
Thanks, Sean! |
@seanlip: The build still seems to fail. I think we will have to go with the add-on provided by Travis. |
It seems to pass for me? |
Like, I'm looking here and it's mostly green |
Oh, I think it failed for the first try and then passed. |
It failed here for the first two attempts. |
Oh, that's interesting. Seems like a different error that may be related to waiting for Angular... |
I think we've had some previous similar problems: #4613 (comment) |
This test just timed out while trying to download Chrome: https://travis-ci.org/oppia/oppia/jobs/409159118#L518 |
Explanation
Changes:
CHROME_SOURCE_URL
as an environment variable in the repository settings.CHROME_SOURCE_URL
to the raw at https://github.com/webnicer/chrome-downloads/blob/master/x64.deb/google-chrome-stable_67.0.3396.99-1_amd64.debChecklist
python scripts/pre_commit_linter.py
andbash scripts/run_frontend_tests.sh
.