[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: tmuxinator, ruby-classifier-reborn, ruby-jekyll-feed, ruby-emot



On Thu, Dec 03, 2015 at 01:29:20AM +0900, Youhei SASAKI wrote:
> > >  * tmuxinator: Create and manage tmux sessions easily
> > >    - ITP: #801993
> >
> > debian/control:
> >   + update Vcs-Browser: please use cgit.
> >   + update Homepage: please use https but 404.
> >     maybe https://github.com/tmuxinator/tmuxinator
> 
> Thanks. Fix and commit.

pbuilder build failed at test.
test attempts to make ~/.tmuxinator directory. it is bad manners.

  1) Tmuxinator::Cli#list lists all projects
     Failure/Error: expect { capture_io { cli.start } }.to_not raise_error
       expected no Exception, got #<Errno::ENOENT: No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator> with backtrace:
         # ./lib/tmuxinator/config.rb:5:in `mkdir'
         # ./lib/tmuxinator/config.rb:5:in `root'
         # ./lib/tmuxinator/config.rb:60:in `configs'
         # ./lib/tmuxinator/cli.rb:139:in `list'
         # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (5 levels) in <top (required)>'
         # ./spec/spec_helper.rb:23:in `capture_io'
         # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (4 levels) in <top (required)>'
         # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (3 levels) in <top (required)>'
     # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (3 levels) in <top (required)>'

full test failure log attached.

> > >  * ruby-classifier-reborn: Successor of Ruby::Classifier
> > >    - ITP: #804052
> > >    - Jekyll new upstream release depends this package
> >
> > debian/tests/control.ex:
> >   is it a just template file? please remove.
> 
> Oh, I forgot it. Fix and commit.

uploaded.
-- 
Regards,
	dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E
/usr/bin/ruby2.2 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.2 from debian/ruby-tests.rake                            │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=/build/tmuxinator-0.6.11/debian/tmuxinator/usr/lib/ruby/vendor_ruby:. rake2.2 -f debian/ruby-tests.rake
/usr/bin/ruby2.2 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation
DEPRECATION WARNING: `#ignore` is deprecated and will be removed in 5.0. Please use `#transient` instead. (called from block (2 levels) in <top (required)> at /build/tmuxinator-0.6.11/spec/factories/projects.rb:11)

Randomized with seed 2325

Tmuxinator::Pane
  creates an instance

Tmuxinator::Cli
  #list
    lists all projects (FAILED - 1)
  #new
    files exists
      just opens the file (FAILED - 2)
    existing project doesn't exist
      creates a new tmuxinator project file (FAILED - 3)
  #doctor
    checks requirements
  #delete
    project doesn't exist
      exits with error message
    project exists
      deletes the project (FAILED - 4)
  #commands
    lists the commands
  #implode
    confirms deletion of all projects (FAILED - 5)
    deletes all projects (FAILED - 6)
  #completions
    gets completions
  #start(custom_name)
    no deprecations
      starts the project
  #version
    prints the current version
  no arguments
    runs without error
  #start
    no deprecations
      starts the project
    deprecations
      prints the deprecations
  #debug
    renders the project
    renders the project with custom session
  #copy
    new project already exists
      prompts user to confirm overwrite (FAILED - 7)
    existing project doens't exist
      exit with error code (FAILED - 8)

Tmuxinator::Project
  #tmux_command
    tmux_command is not specified
      returns the default
    tmux_command specified
      gets the custom tmux command
  #pre_window
    gets the pre_window command
    with deprecations
      pre_tab is present
        still gets the correct pre_window command
      rvm option is present
        still gets the correct pre_window command
      rbenv option is present
        still gets the correct pre_window command
  #root?
    root are present
      returns true
  #send_pane_command
    no command for pane
      returns empty string
    command for pane is not empty
      returns the tmux command
  #windows
    without deprecations
      gets the list of windows
    with deprecations
      still gets the list of windows
  #tmux_options
    with deprecations
      still gets the tmux options
    no tmux options
      returns nothing
  #get_pane_base_index
    extracts the pane_base_index from tmux_options
  #socket
    socket path is present
      gets the socket path
  #base_index
    pane base index no present
      gets the base index
    pane base index present
      gets the pane base index
  #render
    renders the tmux config
    custom name
      renders the tmux config with custom name
    wemux
sh: 1: wemux: not found
      renders the wemux config
  #name?
    name is present
      returns true
  #name
    wemux
      is wemux
    without deprecations
      gets the name
    without name
      displays error message
    with deprecations
      still gets the name
  #deprecations
    with deprecations
      is not empty
    without deprecations
      is empty
  #initialize
    valid yaml
      creates an instance
  #root
    with deprecations
      still gets the root
    without root
      doesn't throw an error
    without deprecations
      gets the root
  #window
    gets the window and index for tmux
  #startup_window
    startup window not specified
      returns base index instead
    startup window specified
      gets the startup window from project config
  #get_base_index
    extracts the base index from options
  #send_keys
    command for window is not empty
      returns the tmux command
    no command for window
      returns empty string
  #commands
    splits commands into an array
  #pre
    pre in yaml is string
      returns the string
    pre in yaml is Array
      joins array using ;
  #windows?
    windows are present
      returns true

Tmuxinator::Window
  #panes
    with a three element Array
      returns three panes
      creates three panes
    with a String
      returns one pane in an Array
      creates one pane
    with nil
      doesn't create any panes
      returns an empty Array
  #initialize
    creates an instance
  #build_commands
    command is an array
      returns the flattened command
    command is a string
      returns the command
    command is empty
      returns an empty array
  #pre
    pre is a string
      returns the pre command
    pre is not present
      returns nil
  #root
    without window root
      gets the project root
    with window root
      gets the window root
  #tmux_new_window_command
    tmux 1.6 and below
      specifies root path by passing default-path to tmux

Tmuxinator::Config
  #default_path_option
    < 1.8
      returns default-path
    >= 1.8
      returns -c
  #configs
    gets a list of all projects (FAILED - 9)
  #default
    gets the path of the default config
  #project
    without project yml
      gets the project as path to the yml file
    with project yml
      gets the project as path to the yml file
  #sample
    gets the path of the sample project
  #installed?
    tmux is installed
      returns true
    tmux is not installed
      returns true
  #default?
    when the file doesn't exist
      returns true (FAILED - 10)
    when the file exists
      returns true (FAILED - 11)
  #editor?
    $EDITOR is set
      returns true
    $EDITOR is not set
      returns false
  #exists?
    checks if the given project exists
  #shell?
    $SHELL is set
      returns true
    $SHELL is not set
      returns false
  #root
    is ~/.tmuxintaor (FAILED - 12)

Failures:

  1) Tmuxinator::Cli#list lists all projects
     Failure/Error: expect { capture_io { cli.start } }.to_not raise_error
       expected no Exception, got #<Errno::ENOENT: No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator> with backtrace:
         # ./lib/tmuxinator/config.rb:5:in `mkdir'
         # ./lib/tmuxinator/config.rb:5:in `root'
         # ./lib/tmuxinator/config.rb:60:in `configs'
         # ./lib/tmuxinator/cli.rb:139:in `list'
         # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (5 levels) in <top (required)>'
         # ./spec/spec_helper.rb:23:in `capture_io'
         # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (4 levels) in <top (required)>'
         # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (3 levels) in <top (required)>'
     # ./spec/lib/tmuxinator/cli_spec.rb:224:in `block (3 levels) in <top (required)>'

  2) Tmuxinator::Cli#new files exists just opens the file
     Failure/Error: capture_io { cli.start }
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/config.rb:46:in `project'
     # ./lib/tmuxinator/cli.rb:53:in `new'
     # ./spec/lib/tmuxinator/cli_spec.rb:118:in `block (5 levels) in <top (required)>'
     # ./spec/spec_helper.rb:23:in `capture_io'
     # ./spec/lib/tmuxinator/cli_spec.rb:118:in `block (4 levels) in <top (required)>'

  3) Tmuxinator::Cli#new existing project doesn't exist creates a new tmuxinator project file
     Failure/Error: capture_io { cli.start }
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/config.rb:46:in `project'
     # ./lib/tmuxinator/cli.rb:53:in `new'
     # ./spec/lib/tmuxinator/cli_spec.rb:106:in `block (5 levels) in <top (required)>'
     # ./spec/spec_helper.rb:23:in `capture_io'
     # ./spec/lib/tmuxinator/cli_spec.rb:106:in `block (4 levels) in <top (required)>'

  4) Tmuxinator::Cli#delete project exists deletes the project
     Failure/Error: capture_io { cli.start }
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/cli.rb:111:in `delete'
     # ./spec/lib/tmuxinator/cli_spec.rb:184:in `block (5 levels) in <top (required)>'
     # ./spec/spec_helper.rb:23:in `capture_io'
     # ./spec/lib/tmuxinator/cli_spec.rb:184:in `block (4 levels) in <top (required)>'

  5) Tmuxinator::Cli#implode confirms deletion of all projects
     Failure/Error: capture_io { cli.start }
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/cli.rb:127:in `implode'
     # ./spec/lib/tmuxinator/cli_spec.rb:208:in `block (4 levels) in <top (required)>'
     # ./spec/spec_helper.rb:23:in `capture_io'
     # ./spec/lib/tmuxinator/cli_spec.rb:208:in `block (3 levels) in <top (required)>'

  6) Tmuxinator::Cli#implode deletes all projects
     Failure/Error: capture_io { cli.start }
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/cli.rb:127:in `implode'
     # ./spec/lib/tmuxinator/cli_spec.rb:213:in `block (4 levels) in <top (required)>'
     # ./spec/spec_helper.rb:23:in `capture_io'
     # ./spec/lib/tmuxinator/cli_spec.rb:213:in `block (3 levels) in <top (required)>'

  7) Tmuxinator::Cli#copy new project already exists prompts user to confirm overwrite
     Failure/Error: capture_io { cli.start }
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/config.rb:46:in `project'
     # ./lib/tmuxinator/cli.rb:92:in `copy'
     # ./spec/lib/tmuxinator/cli_spec.rb:136:in `block (5 levels) in <top (required)>'
     # ./spec/spec_helper.rb:23:in `capture_io'
     # ./spec/lib/tmuxinator/cli_spec.rb:136:in `block (4 levels) in <top (required)>'

  8) Tmuxinator::Cli#copy existing project doens't exist exit with error code
     Failure/Error: expect { capture_io { cli.start } }.to raise_error SystemExit
       expected SystemExit, got #<Errno::ENOENT: No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator> with backtrace:
         # ./lib/tmuxinator/config.rb:5:in `mkdir'
         # ./lib/tmuxinator/config.rb:5:in `root'
         # ./lib/tmuxinator/config.rb:46:in `project'
         # ./lib/tmuxinator/cli.rb:92:in `copy'
         # ./spec/lib/tmuxinator/cli_spec.rb:146:in `block (6 levels) in <top (required)>'
         # ./spec/spec_helper.rb:23:in `capture_io'
         # ./spec/lib/tmuxinator/cli_spec.rb:146:in `block (5 levels) in <top (required)>'
         # ./spec/lib/tmuxinator/cli_spec.rb:146:in `block (4 levels) in <top (required)>'
     # ./spec/lib/tmuxinator/cli_spec.rb:146:in `block (4 levels) in <top (required)>'

  9) Tmuxinator::Config#configs gets a list of all projects
     Failure/Error: expect(Tmuxinator::Config.configs).to include("test")
     Errno::ENOENT:
       No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
     # ./lib/tmuxinator/config.rb:5:in `mkdir'
     # ./lib/tmuxinator/config.rb:5:in `root'
     # ./lib/tmuxinator/config.rb:60:in `configs'
     # ./spec/lib/tmuxinator/config_spec.rb:74:in `block (3 levels) in <top (required)>'

  10) Tmuxinator::Config#default? when the file doesn't exist returns true
      Failure/Error: expect(Tmuxinator::Config.default?).to be_falsey
      Errno::ENOENT:
        No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
      # ./lib/tmuxinator/config.rb:5:in `mkdir'
      # ./lib/tmuxinator/config.rb:5:in `root'
      # ./lib/tmuxinator/config.rb:46:in `project'
      # ./lib/tmuxinator/config.rb:42:in `exists?'
      # ./lib/tmuxinator/config.rb:18:in `default?'
      # ./spec/lib/tmuxinator/config_spec.rb:63:in `block (4 levels) in <top (required)>'

  11) Tmuxinator::Config#default? when the file exists returns true
      Failure/Error: expect(Tmuxinator::Config.default?).to be_truthy
      Errno::ENOENT:
        No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
      # ./lib/tmuxinator/config.rb:5:in `mkdir'
      # ./lib/tmuxinator/config.rb:5:in `root'
      # ./lib/tmuxinator/config.rb:46:in `project'
      # ./lib/tmuxinator/config.rb:42:in `exists?'
      # ./lib/tmuxinator/config.rb:18:in `default?'
      # ./spec/lib/tmuxinator/config_spec.rb:53:in `block (4 levels) in <top (required)>'

  12) Tmuxinator::Config#root is ~/.tmuxintaor
      Failure/Error: expect(Tmuxinator::Config.root).to eq "#{ENV["HOME"]}/.tmuxinator"
      Errno::ENOENT:
        No such file or directory @ dir_s_mkdir - /nonexistent/.tmuxinator
      # ./lib/tmuxinator/config.rb:5:in `mkdir'
      # ./lib/tmuxinator/config.rb:5:in `root'
      # ./spec/lib/tmuxinator/config_spec.rb:6:in `block (3 levels) in <top (required)>'

Finished in 0.28918 seconds (files took 0.50508 seconds to load)
93 examples, 12 failures

Failed examples:

rspec ./spec/lib/tmuxinator/cli_spec.rb:223 # Tmuxinator::Cli#list lists all projects
rspec ./spec/lib/tmuxinator/cli_spec.rb:116 # Tmuxinator::Cli#new files exists just opens the file
rspec ./spec/lib/tmuxinator/cli_spec.rb:105 # Tmuxinator::Cli#new existing project doesn't exist creates a new tmuxinator project file
rspec ./spec/lib/tmuxinator/cli_spec.rb:182 # Tmuxinator::Cli#delete project exists deletes the project
rspec ./spec/lib/tmuxinator/cli_spec.rb:206 # Tmuxinator::Cli#implode confirms deletion of all projects
rspec ./spec/lib/tmuxinator/cli_spec.rb:211 # Tmuxinator::Cli#implode deletes all projects
rspec ./spec/lib/tmuxinator/cli_spec.rb:134 # Tmuxinator::Cli#copy new project already exists prompts user to confirm overwrite
rspec ./spec/lib/tmuxinator/cli_spec.rb:145 # Tmuxinator::Cli#copy existing project doens't exist exit with error code
rspec ./spec/lib/tmuxinator/config_spec.rb:73 # Tmuxinator::Config#configs gets a list of all projects
rspec ./spec/lib/tmuxinator/config_spec.rb:62 # Tmuxinator::Config#default? when the file doesn't exist returns true
rspec ./spec/lib/tmuxinator/config_spec.rb:52 # Tmuxinator::Config#default? when the file exists returns true
rspec ./spec/lib/tmuxinator/config_spec.rb:5 # Tmuxinator::Config#root is ~/.tmuxintaor

Randomized with seed 2325

/usr/bin/ruby2.2 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby2.2" failed. Exiting.
dh_auto_install: dh_ruby --install /build/tmuxinator-0.6.11/debian/tmuxinator returned exit code 1
debian/rules:6: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory '/build/tmuxinator-0.6.11'
debian/rules:3: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
E: Failed autobuilding of package
W: no hooks of type C found -- ignoring
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
I: cleaning the build env 
I: removing directory /tmp/16302 and its subdirectories

Attachment: signature.asc
Description: PGP signature


Reply to: