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

Dashboard SQLException and Travis system test fail #8186

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d225a3a
full group
keshavsethi Jul 24, 2020
b25944b
chrome driver issue
keshavsethi Jul 24, 2020
a1d291c
travis issue
keshavsethi Jul 24, 2020
9244360
system test issue
keshavsethi Jul 24, 2020
a13a9d7
chrome driver version
keshavsethi Jul 24, 2020
50ce7a1
chrome version issue
keshavsethi Jul 24, 2020
63e7489
version change
keshavsethi Jul 24, 2020
8aeca49
use same version as in Dockerfile
cesswairimu Jul 24, 2020
e802fdd
specify chrome version
cesswairimu Jul 24, 2020
0be66a0
try another version 83
cesswairimu Jul 24, 2020
7f62cfe
specify chrome
cesswairimu Jul 24, 2020
f3811c6
use chrome-driver helper
cesswairimu Jul 24, 2020
13fad3a
:confused:
cesswairimu Jul 24, 2020
ad58758
try a different version of 83
cesswairimu Jul 26, 2020
9fb36a0
add chrome to sources
cesswairimu Jul 26, 2020
a7cdf63
:confused
cesswairimu Jul 26, 2020
cae8328
travis system test
keshavsethi Jul 27, 2020
0edd2d0
google chrome
keshavsethi Jul 27, 2020
fb4d60a
google chorme version
keshavsethi Jul 27, 2020
e0e1a73
revert
keshavsethi Jul 27, 2020
a409f0e
chrome
keshavsethi Jul 27, 2020
e01814c
chrome driver
keshavsethi Jul 27, 2020
ab3e534
flag change for chrome
keshavsethi Jul 27, 2020
6ed9d60
old version of chrome
keshavsethi Jul 27, 2020
1e22abd
chrome version change
keshavsethi Jul 27, 2020
6d3d92b
chrome version
keshavsethi Jul 27, 2020
ea4bfb9
chrome
keshavsethi Jul 27, 2020
b52eaaf
remove cache
keshavsethi Jul 27, 2020
c08f21d
cache added again
keshavsethi Jul 27, 2020
35be0e5
Merge branch 'main' into spam2_queue
keshavsethi Jul 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ env:
- RAILS_SYSTEM_TESTING_SCREENSHOT=simple

before_install:

- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'`
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
- sudo wget https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip
- sudo unzip chromedriver_linux64.zip -d /usr/local/bin/
- sudo chmod +x /usr/local/bin/chromedriver
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- sudo chmod +x /usr/bin/google-chrome-stable
- google-chrome-stable --version
- google-chrome-stable --headless --no-sandbox --disable-dev-shm-usage --disable-gpu --remote-debugging-port=9222 http://localhost &
- yes | gem update --system --force
- gem install bundler

Expand Down
2 changes: 1 addition & 1 deletion app/models/tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def followers_who_dont_follow_tags(tags)

# https://github.com/publiclab/plots2/pull/4266
def self.trending(limit = 5, start_date = DateTime.now - 1.month, end_date = DateTime.now)
Tag.select('term_data.name, plots.term_data.count') # ONLY_FULL_GROUP_BY, issue #8152 & #3120
Tag.select('term_data.name, term_data.count') # ONLY_FULL_GROUP_BY, issue #8152 & #3120
.joins(:node_tag, :node)
.where('node.status = ?', 1)
.where('node.created > ?', start_date.to_i)
Expand Down
1 change: 1 addition & 0 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase

chromeOptions = %w(no-sandbox disable-dev-shm-usage headless disable-gpu remote-debugging-port=9222)
caps = Selenium::WebDriver::Remote::Capabilities.chrome("goog:chromeOptions" => {"args" => chromeOptions})
driven_by :selenium, using: :chrome, screen_size: [1400, 1400], options: { desired_capabilities: caps }
Expand Down