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

Upgrade rails to 6.1 and migrate nodejs to mini_racer #2093

Merged
merged 51 commits into from
Aug 11, 2021
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
50eef54
Upgraded to rails 6.1.4
saghoshprogress Jul 22, 2021
a350a26
Omnibus Fix
saghoshprogress Jul 29, 2021
fe70427
Modified the gemlock
saghoshprogress Jul 29, 2021
dbe951a
Updfated the ruby js runtime
saghoshprogress Jul 29, 2021
6f3b534
Modified the all flag
saghoshprogress Jul 29, 2021
01e075e
Updated the Gemfile.lock
saghoshprogress Jul 30, 2021
0ac7da0
Fixed the omnibuc build
saghoshprogress Aug 2, 2021
7e05fa8
Upgraded to rails 6.1.4
saghoshprogress Jul 22, 2021
e8ab3b8
Omnibus Fix
saghoshprogress Jul 29, 2021
fc14057
Modified the gemlock
saghoshprogress Jul 29, 2021
ca8848c
Updfated the ruby js runtime
saghoshprogress Jul 29, 2021
e191dd7
Modified the all flag
saghoshprogress Jul 29, 2021
4f1586d
Updated the Gemfile.lock
saghoshprogress Jul 30, 2021
f634b06
Fixed the omnibuc build
saghoshprogress Aug 2, 2021
4d4ef4e
Update omnibus
tas50 Aug 4, 2021
a71e8b3
Pin chef and mini_racer
tas50 Aug 4, 2021
298f251
Rebase with master
saghoshprogress Aug 4, 2021
3f90a8a
Updated the ruby version
saghoshprogress Aug 4, 2021
4077d12
Fixed the gemfile lock conflicts
saghoshprogress Aug 4, 2021
ac66877
Updated gemfile lock
saghoshprogress Aug 4, 2021
0ee433d
Removed the nodejs installation
saghoshprogress Aug 4, 2021
cad9ba7
Modified the bundler version
saghoshprogress Aug 4, 2021
9ebf744
Added Barkshelf gem
saghoshprogress Aug 4, 2021
afbb3d2
removed the nodejs
saghoshprogress Aug 5, 2021
95cf68e
Updated the bundler version
saghoshprogress Aug 6, 2021
d5b917e
Added rubyracer
saghoshprogress Aug 6, 2021
f14f49e
Added rubyracer
saghoshprogress Aug 6, 2021
95a7ecc
Added rubyracer
saghoshprogress Aug 6, 2021
15e9a07
Updated for test
saghoshprogress Aug 9, 2021
4eff154
Update gem file
saghoshprogress Aug 9, 2021
ff127c8
Updated execjs
saghoshprogress Aug 9, 2021
da53ac9
Updated execjs
saghoshprogress Aug 9, 2021
59f53ba
Updated the env
saghoshprogress Aug 9, 2021
8c2c40a
Modified the code for nodejs
saghoshprogress Aug 9, 2021
0fc5c8b
Revert back the production.rb
saghoshprogress Aug 9, 2021
1a30943
Updated Gem file
saghoshprogress Aug 9, 2021
6299818
Updated the Gem files
saghoshprogress Aug 9, 2021
26daa99
bundle install with binstubs for supermarket-ctl
Aug 9, 2021
693f217
Updated the gem file
saghoshprogress Aug 9, 2021
8747451
Updated the Gem file
saghoshprogress Aug 9, 2021
d294339
Updated the Gem files
saghoshprogress Aug 9, 2021
0d4ee53
Updated the unsed codes
saghoshprogress Aug 10, 2021
ca75be1
Resolve the conflicts
saghoshprogress Aug 11, 2021
c329e68
Merge branch 'master' into saghoshprogress/rails_6_omnibus_fix
saghoshprogress Aug 11, 2021
bcadcfd
Updated the lint error
saghoshprogress Aug 11, 2021
d99716e
removed few unnecessary code
saghoshprogress Aug 11, 2021
48da9ed
Updated the lint errors
saghoshprogress Aug 11, 2021
955cb22
Updated the engile DB adaptar settings
saghoshprogress Aug 11, 2021
6aab8bc
Update omnibus/Gemfile
tas50 Aug 11, 2021
5cc29f2
Update omnibus/config/software/supermarket.rb
tas50 Aug 11, 2021
f363439
Update omnibus/config/software/supermarket.rb
tas50 Aug 11, 2021
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
1 change: 1 addition & 0 deletions omnibus/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gem 'omnibus-software', git: 'https://github.com/chef/omnibus-software.git'
# Install artifactory. Used for publishing packages.
gem 'artifactory'

# gem 'inspec-core', '~> 4.38'
tas50 marked this conversation as resolved.
Show resolved Hide resolved
# This development group is installed by default when you run `bundle install`,
# but if you are using Omnibus in a CI-based infrastructure, you do not need
# the Test Kitchen-based build lab. You can skip these unnecessary dependencies
Expand Down
14 changes: 7 additions & 7 deletions omnibus/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
GIT
remote: https://github.com/chef/omnibus-software.git
revision: c172afb1399eb676e86f6f8c155fe747e0312f38
revision: a4fab5f0c2314f73fc79dfb77bde63e45588dfc0
specs:
omnibus-software (4.0.0)
omnibus (>= 8.0.0)

GIT
remote: https://github.com/chef/omnibus.git
revision: a4bf7ea04b0d3689f9b8d172535f3976d07ecc1b
revision: 62bf487e4361c856e18f89e00ece1d980558b33a
specs:
omnibus (8.1.15)
omnibus (8.1.16)
aws-sdk-s3 (~> 1)
chef-cleanroom (~> 1.0)
chef-utils (>= 15.4)
Expand Down Expand Up @@ -100,9 +100,9 @@ GEM
tty-table (~> 0.11)
uuidtools (>= 2.1.5, < 3.0)
chef-cleanroom (1.0.2)
chef-cli (5.3.1)
chef-cli (5.4.1)
addressable (>= 2.3.5, < 2.9)
chef (>= 15.0)
chef (>= 16.0)
cookbook-omnifetch (~> 0.5)
diff-lcs (>= 1.0, < 1.4)
ffi-yajl (>= 1.0, < 3.0)
Expand Down Expand Up @@ -162,7 +162,7 @@ GEM
faraday-excon (1.1.0)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday_middleware (1.0.0)
faraday_middleware (1.1.0)
faraday (~> 1.0)
fauxhai-ng (9.0.0)
net-ssh
Expand Down Expand Up @@ -424,4 +424,4 @@ DEPENDENCIES
test-kitchen

BUNDLED WITH
2.1.2
2.1.4
3 changes: 2 additions & 1 deletion omnibus/config/software/supermarket-cookbooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
build do
cookbooks_path = "#{install_dir}/embedded/cookbooks"
env = with_standard_compiler_flags(with_embedded_path)

gem "install berkshelf"

command "berks vendor #{cookbooks_path}", env: env

block do
Expand Down
2 changes: 1 addition & 1 deletion omnibus/config/software/supermarket-ctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
build do
env = with_standard_compiler_flags(with_embedded_path)

#bundle "install", env: env
bundle "install --binstubs", env: env

block do
erb source: "supermarket-ctl.erb",
Expand Down
9 changes: 4 additions & 5 deletions omnibus/config/software/supermarket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
dependency "chef-gem"
dependency "git"
dependency "nginx"
# dependency "nodejs"
# dependency "nodejs-binary"
dependency "nodejs-binary"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this still?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

everything I have removed.

dependency "postgresql"
dependency "redis"
dependency "ruby"
Expand All @@ -39,9 +38,9 @@
env['PATH'] = "#{env['PATH']}:#{install_dir}/embedded/nodejs/bin"

if Bundler.feature_flag.cache_all?
bundle "package --no-install"
bundle "package --no-install", env: env
else
bundle "package --all --no-install"
bundle "package --all --no-install", env: env
end

bundle "install" \
Expand All @@ -55,7 +54,7 @@

# This fails because we're installing Ruby C extensions in the wrong place!
# bundle "exec rake assets:precompile", env: env.merge('RAILS_ENV' => 'production')
tas50 marked this conversation as resolved.
Show resolved Hide resolved
bundle "exec rake assets:precompile"
bundle "exec rake assets:precompile", env: env

sync project_dir, "#{install_dir}/embedded/service/supermarket/",
exclude: %w( .cookbooks .direnv .envrc .env.* .gitignore .kitchen*
Expand Down
1 change: 1 addition & 0 deletions omnibus/cookbooks/omnibus-supermarket/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ source 'https://rubygems.org'

gem 'inspec'
gem 'inspec-bin'
gem 'mini_racer', "~> 0.3.1", platforms: :ruby

# gems for testing the build cookbooks
# once we get the ctl omnibus def using its own gemspec this whole file can die
Expand Down
5 changes: 2 additions & 3 deletions src/supermarket/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gem "sidekiq", "~> 4.2"
gem "sidekiq-cron"

gem "aws-sdk-s3"
gem "chef", require: false
gem "chef", "~> 16.13", require: false
gem "compass-rails"
gem "ddtrace", require: false
gem "dotenv"
Expand Down Expand Up @@ -52,9 +52,8 @@ gem "validate_url"
gem "virtus", "1.0.2", require: false # Pin to a version before the handling of nil in collection coercion was fixed.
gem "yajl-ruby"

gem 'mini_racer'
gem 'execjs'
gem 'listen'
gem 'therubyracer', platforms: :ruby

group :doc do
gem "yard", require: false
Expand Down
61 changes: 40 additions & 21 deletions src/supermarket/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ GEM
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
bcrypt_pbkdf (1.1.0)
brakeman (5.1.1)
builder (3.2.4)
byebug (11.1.3)
Expand All @@ -112,15 +113,18 @@ GEM
capybara-screenshot (1.0.25)
capybara (>= 1.0, < 4)
launchy
chef (17.2.29)
chef (16.14.1)
addressable
chef-config (= 17.2.29)
chef-utils (= 17.2.29)
bcrypt_pbkdf (~> 1.1)
bundler (>= 1.10)
chef-config (= 16.14.1)
chef-utils (= 16.14.1)
chef-vault
chef-zero (>= 14.0.11)
diff-lcs (>= 1.2.4, < 1.4.0)
ed25519 (~> 1.2)
erubis (~> 2.7)
ffi (>= 1.5.0)
ffi (>= 1.9.25)
ffi-libarchive (~> 1.0, >= 1.0.3)
ffi-yajl (~> 2.2)
iniparse (~> 1.4)
Expand All @@ -132,25 +136,30 @@ GEM
mixlib-log (>= 2.0.3, < 4.0)
mixlib-shellout (>= 3.1.1, < 4.0)
net-sftp (>= 2.1.2, < 4.0)
ohai (~> 17.0)
net-ssh (>= 5.1, < 7)
net-ssh-multi (~> 1.2, >= 1.2.1)
ohai (~> 16.0)
pastel
plist (~> 3.2)
proxifier (~> 1.0)
syslog-logger (~> 1.6)
train-core (~> 3.2, >= 3.2.28)
train-winrm (>= 0.2.5)
tty-prompt (~> 0.21)
tty-screen (~> 0.6)
tty-table (~> 0.11)
uuidtools (>= 2.1.5, < 3.0)
chef-config (17.2.29)
chef-config (16.14.1)
addressable
chef-utils (= 17.2.29)
chef-utils (= 16.14.1)
fuzzyurl
mixlib-config (>= 2.2.12, < 4.0)
mixlib-shellout (>= 2.0, < 4.0)
tomlrb (~> 1.2)
chef-telemetry (1.0.29)
chef-telemetry (1.1.1)
chef-config
concurrent-ruby (~> 1.0)
chef-utils (17.2.29)
concurrent-ruby
chef-utils (16.14.1)
chef-vault (4.1.0)
chef-zero (15.0.7)
ffi-yajl (~> 2.2)
Expand Down Expand Up @@ -201,7 +210,7 @@ GEM
msgpack
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
diff-lcs (1.4.4)
diff-lcs (1.3)
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.7.6)
Expand All @@ -214,7 +223,7 @@ GEM
et-orbi (1.2.4)
tzinfo
excon (0.84.0)
execjs (2.8.1)
execjs (2.7.0)
factory_bot (6.2.0)
activesupport (>= 5.0.0)
factory_bot_rails (6.2.0)
Expand All @@ -235,7 +244,7 @@ GEM
faraday-excon (1.1.0)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday_middleware (1.0.0)
faraday_middleware (1.1.0)
faraday (~> 1.0)
ffi (1.15.3)
ffi-compiler (1.0.1)
Expand Down Expand Up @@ -303,7 +312,7 @@ GEM
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
iniparse (1.5.0)
inspec-core (4.38.3)
inspec-core (4.38.9)
addressable (~> 2.4)
chef-telemetry (~> 1.0, >= 1.0.8)
faraday (>= 0.9.0, < 1.5)
Expand Down Expand Up @@ -351,7 +360,7 @@ GEM
addressable (~> 2.0)
excon
http (>= 2.0, < 5.0)
libv8-node (15.14.0.1)
libv8 (3.16.14.19)
libyajl2 (2.1.0)
license-acceptance (2.1.13)
pastel (~> 0.7)
Expand Down Expand Up @@ -412,6 +421,11 @@ GEM
net-sftp (3.0.0)
net-ssh (>= 5.0.0, < 7.0.0)
net-ssh (6.1.0)
net-ssh-gateway (2.0.0)
net-ssh (>= 4.0.0)
net-ssh-multi (1.2.1)
net-ssh (>= 2.6.5)
net-ssh-gateway (>= 1.2.0)
newrelic_rpm (7.2.0)
nio4r (2.5.7)
nokogiri (1.11.7)
Expand All @@ -430,9 +444,9 @@ GEM
octokit (4.21.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
ohai (17.1.0)
chef-config (>= 14.12, < 18)
chef-utils (>= 16.0, < 18)
ohai (16.13.0)
chef-config (>= 12.8, < 17)
chef-utils (>= 16.0, < 17)
ffi (~> 1.9)
ffi-yajl (~> 2.2)
ipaddress
Expand Down Expand Up @@ -563,6 +577,7 @@ GEM
redis-store (>= 1.2, < 2)
redis-store (1.6.0)
redis (>= 2.2, < 5)
ref (2.0.0)
regexp_parser (2.1.1)
rexml (3.2.5)
rinku (2.0.6)
Expand Down Expand Up @@ -608,7 +623,7 @@ GEM
rubocop (>= 1.7.0, < 2.0)
ruby-filemagic (0.7.2)
ruby-progressbar (1.11.0)
ruby2_keywords (0.0.4)
ruby2_keywords (0.0.5)
rubyntlm (0.6.3)
rubyzip (2.3.2)
rufus-lru (1.1.0)
Expand Down Expand Up @@ -664,11 +679,14 @@ GEM
syslog-logger (1.6.8)
terrapin (0.6.0)
climate_control (>= 0.0.3, < 1.0)
therubyracer (0.12.3)
libv8 (~> 3.16.14.15)
ref
thor (1.0.1)
thread_safe (0.3.6)
tilt (2.0.10)
tomlrb (1.3.0)
train-core (3.7.4)
train-core (3.8.1)
addressable (~> 2.5)
ffi (!= 1.13.0)
json (>= 1.8, < 3.0)
Expand Down Expand Up @@ -772,7 +790,7 @@ DEPENDENCIES
brakeman
capybara
capybara-screenshot
chef
chef (~> 16.13)
chefstyle
compass-rails
database_cleaner
Expand Down Expand Up @@ -834,6 +852,7 @@ DEPENDENCIES
spring
spring-commands-rspec
statsd-ruby
therubyracer
tomlrb
uglifier
unicorn
Expand Down
4 changes: 2 additions & 2 deletions src/supermarket/engines/fieri/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.1.9)
connection_pool (2.2.5)
cookstyle (7.15.1)
rubocop (= 1.18.3)
cookstyle (7.15.4)
rubocop (= 1.18.4)
crack (0.4.5)
rexml
crass (1.0.6)
Expand Down