Bug#967007: Now dependencies are satisfied

2020-08-03 Thread Pirate Praveen




On Tue, Aug 4, 2020 at 00:25, Pirate Praveen  
wrote:
This was fixed in ruby-webpacker 4.2.2-3. Now the autopkgtest is 
passing.


It took almost a whole day to troubleshoot and fix this.


with ruby-webpacker 4.2.2-3 and ruby-webdrivers 4.4.1-1 in NEW, passed 
as local debs,


Run options: --seed 51583

# Running:

...

Finished in 18.984631s, 0.3687 runs/s, 0.4741 assertions/s.
7 runs, 9 assertions, 0 failures, 0 errors, 0 skips
autopkgtest [01:19:44]: test newapp: ---]
autopkgtest [01:19:44]: test newapp:  - - - - - - - - - - results - - - 
- - - - - - -

newapp   PASS

I have pushed the changes to 'newapp-autopkgtest` branch as I don't 
want to block further changes in master till we get  ruby-webpacker and 
ruby-webdrivers in the archive.




Bug#967007: Now dependencies are satisfied

2020-08-03 Thread Pirate Praveen

Control: tags -1 pending

On Mon, Aug 3, 2020 at 23:31, Pirate Praveen  
wrote:
After skipping check for nodejs and yarn version checks in 
ruby-webpacker, I get this error. This looks like a bug in 
ruby-webpacker, it may be missing the required files in the binary 
package.


This was fixed in ruby-webpacker 4.2.2-3. Now the autopkgtest is 
passing.


It took almost a whole day to troubleshoot and fix this.



Bug#967007: Now dependencies are satisfied

2020-08-03 Thread Pirate Praveen




On Mon, Aug 3, 2020 at 21:43, Pirate Praveen  
wrote:
This seems strange as rails metapackage has a dependency on webpack, 
and yarnpkg which should pull nodejs.


After skipping check for nodejs and yarn version checks in 
ruby-webpacker, I get this error. This looks like a bug in 
ruby-webpacker, it may be missing the required files in the binary 
package.


+ rake --trace webpacker:install
** Invoke webpacker:install (first_time)
** Invoke webpacker:check_node (first_time)
** Execute webpacker:check_node
Node.js version is v12.18.2
** Invoke webpacker:check_yarn (first_time)
** Execute webpacker:check_yarn
Yarn version is 1.22.4
** Execute webpacker:install
  identical  config/webpacker.yml
Copying webpack core config
  exist  config/webpack
  identical  config/webpack/development.js
  identical  config/webpack/environment.js
  identical  config/webpack/production.js
  identical  config/webpack/test.js
Copying postcss.config.js to app root directory
  identical  postcss.config.js
Copying babel.config.js to app root directory
  identical  babel.config.js
Copying .browserslistrc to app root directory
rails aborted!
Thor::Error: Could not find 
"/usr/share/rubygems-integration/all/gems/webpacker-4.2.2/lib/install/config/.browserslistrc" 
in any of your source paths.




Bug#967007: Now dependencies are satisfied

2020-08-03 Thread Pirate Praveen




On Mon, Aug 3, 2020 at 20:12, Pirate Praveen  
wrote:
Once ruby-webpacker and ruby-webdrivers clears NEW creating new rails 
app will work.


Now some tests for the newly created app fails. I think running rails 
webpacker:install will fix it.


+ rails webpacker:install
Warning: Running `gem pristine --all` to regenerate your installed 
gemspecs (and deleting then reinstalling your bundle if you use bundle 
--path) will improve the startup performance of Spring.
Node.js not installed. Please download and install Node.js 
https://nodejs.org/en/download/


This seems strange as rails metapackage has a dependency on webpack, 
and yarnpkg which should pull nodejs.




Bug#967007: Now dependencies are satisfied

2020-08-03 Thread Pirate Praveen
Once ruby-webpacker and ruby-webdrivers clears NEW creating new rails 
app will work.


Now some tests for the newly created app fails. I think running rails 
webpacker:install will fix it.


+ rake test
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: 
warning: The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:19: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:111: warning: 
The called method `add_filter' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/base.rb:7: warning: 
The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/selector.rb:361: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:9: 
warning: The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:10: 
warning: Using the last argument as keyword parameters is deprecated; 
maybe ** should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: 
warning: The called method `initialize' is defined here
DEPRECATION WARNING: Single arity template handlers are deprecated. 
Template handlers must
now accept two parameters, the view object and the source for the view 
object.

Change:
 >> JbuilderHandler.call(template)
To:
 >> JbuilderHandler.call(template, source)
(called from block (2 levels) in  at 
/usr/lib/ruby/vendor_ruby/jbuilder/railtie.rb:8)
RAILS_ENV=test environment is not defined in config/webpacker.yml, 
falling back to production environment
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: 
warning: The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:19: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:111: warning: 
The called method `add_filter' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/filter_set.rb:115: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/base.rb:7: warning: 
The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/selector.rb:361: warning: 
Using the last argument as keyword parameters is deprecated; maybe ** 
should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:9: 
warning: The called method `initialize' is defined here
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/locator_filter.rb:10: 
warning: Using the last argument as keyword parameters is deprecated; 
maybe ** should be added to the call
/usr/lib/ruby/vendor_ruby/capybara/selector/filters/node_filter.rb:9: 
warning: The called method `initialize' is defined here
DEPRECATION WARNING: Single arity template handlers are deprecated. 
Template handlers must
now accept two parameters, the view object and the source for the view 
object.

Change:
 >> JbuilderHandler.call(template)
To:
 >> JbuilderHandler.call(template, source)
(called from block (2 levels) in  at 
/usr/lib/ruby/vendor_ruby/jbuilder/railtie.rb:8)
RAILS_ENV=test environment is not defined in config/webpacker.yml, 
falling back to production environment

Run options: --seed 61677

# Running:

...E

Error:
ProductsControllerTest#test_should_get_edit:
ActionView::Template::Error: Webpacker configuration file not found 
/tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml. 
Please run rails webpacker:install Error: No such file or directory @ 
rb_sysopen - 
/tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml

   app/views/layouts/application.html.erb:9
   test/controllers/products_controller_test.rb:32:in `block in 
'


rails test test/controllers/products_controller_test.rb:31

E

Error:
ProductsControllerTest#test_should_get_new:
ActionView::Template::Error: Webpacker configuration file not found 
/tmp/autopkgtest-lxc.60lhwj6z/downtmp/autopkgtest_tmp/foo/config/webpacker.yml. 
Please run rails webpacker:install Error: No such file or directory @ 
rb_sysopen -