≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1389

Bug #1389: Spec suite failures on Ubuntu 9.04 (rake --trace)

Kind bug
Product wikitext
When Created 2009-09-07T14:51:10Z, updated 2010-03-21T15:07:23Z
Status closed
Reporter anonymous
Tags no tags

Description

cloned git://git.wincent.dev/wikitext.git and rake --trace on ubuntu 9.04.

tommi@desk:~/src/wikitext$ rake --trace
(in /home/tommi/src/wikitext)
/usr/lib/ruby/1.8/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
** Invoke default (first_time)
** Invoke all (first_time)
** Invoke make (first_time)
** Invoke ext/wikitext_ragel.c (first_time, not_needed)
** Invoke ext/wikitext_ragel.rl (first_time, not_needed)
** Invoke ext/Makefile (first_time, not_needed)
** Invoke ext/extconf.rb (first_time, not_needed)
** Invoke ext/depend (first_time, not_needed)
** Invoke ext/wikitext_ragel.c (not_needed)
** Invoke ext/wikitext.so (first_time, not_needed)
** Invoke ext/Makefile (not_needed)
** Invoke ext/ary.c (first_time, not_needed)
** Invoke ext/ary.h (first_time, not_needed)
** Invoke ext/parser.c (first_time, not_needed)
** Invoke ext/parser.h (first_time, not_needed)
** Invoke ext/ruby_compat.h (first_time, not_needed)
** Invoke ext/str.c (first_time, not_needed)
** Invoke ext/str.h (first_time, not_needed)
** Invoke ext/token.c (first_time, not_needed)
** Invoke ext/token.h (first_time, not_needed)
** Invoke ext/wikitext.c (first_time, not_needed)
** Invoke ext/wikitext.h (first_time, not_needed)
** Invoke ext/wikitext_ragel.c (not_needed)
** Invoke ext/wikitext_ragel.h (first_time, not_needed)
** Execute make
** Invoke spec (first_time)
** Execute spec
..............................*** COMMAND rake gems:refresh_specs EXITED WITH NON-ZERO EXIT STATUS (1)
*** STDOUT FOR COMMAND rake gems:refresh_specs:
(in /home/tommi/src/wikitext/spec/trash/edge-app)
*** STDERR FOR COMMAND rake gems:refresh_specs:
rake aborted!
Malformed version number string 3.0.pre
/home/tommi/src/wikitext/spec/trash/edge-app/Rakefile:4:in `require'
(See full trace by running task with --trace)
F...........................................................................................F..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.......F.F.............................................................FFFFFFPFF..........................................................................................

Pending:
Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should not terminate on question marks that occur within the URI (TODO)

1)
RuntimeError in 'Template handler in Edge Rails before(:all)'
non-zero exit status (1) for 'rake'
./spec/rails_spec.rb:58:in `run'
./spec/rails_spec.rb:168:in `update_environment'
./spec/rails_spec.rb:167:in `update_environment'
./spec/rails_spec.rb:183:in `setup_edge_app'
./spec/rails_spec.rb:214:

2)
'Wikitext::Parser external links should format valid external mailto links' FAILED
expected: "<p><a href=\"mailto:user@example.com\" class=\"mailto\">john</a></p>\n",
     got: "<p><a href=\"mailto:user@example.com\" class=\"external\">john</a></p>\n" (using ==)
./spec/external_link_spec.rb:56:

3)
'Wikitext::Parser autolinking on should convert mailto URIs into hyperlinks' FAILED
expected: "<p><a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a></p>\n",
     got: "<p><a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a></p>\n" (using ==)
./spec/autolinking_spec.rb:55:

4)
'Wikitext::Parser autolinking on should apply the mailto CSS class if set (mailto URI)' FAILED
expected: "<p><a href=\"mailto:user@example.com\" class=\"foo\">mailto:user@example.com</a></p>\n",
     got: "<p><a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a></p>\n" (using ==)
./spec/autolinking_spec.rb:102:

5)
'Wikitext::Parser autolinking on should apply no CSS if the mailto class is set to nil (mailto URI)' FAILED
expected: "<p><a href=\"mailto:user@example.com\">mailto:user@example.com</a></p>\n",
     got: "<p><a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a></p>\n" (using ==)
./spec/autolinking_spec.rb:114:

6)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by a period' FAILED
expected: "<p>Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>.</p>\n",
     got: "<p>Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>.</p>\n" (using ==)
./spec/autolinking_spec.rb:501:

7)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should not terminate on periods that occur within the URI' FAILED
expected: "<p>Try <a href=\"mailto:user.name@example.com\" class=\"mailto\">mailto:user.name@example.com</a>.</p>\n",
     got: "<p>Try <a href=\"mailto:user.name@example.com\" class=\"external\">mailto:user.name@example.com</a>.</p>\n" (using ==)
./spec/autolinking_spec.rb:507:

8)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by a colon' FAILED
expected: "<p>Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>:</p>\n",
     got: "<p>Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>:</p>\n" (using ==)
./spec/autolinking_spec.rb:513:

9)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by a comma' FAILED
expected: "<p>Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>,</p>\n",
     got: "<p>Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>,</p>\n" (using ==)
./spec/autolinking_spec.rb:519:

10)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by an exclamation mark' FAILED
expected: "<p>Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>!</p>\n",
     got: "<p>Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>!</p>\n" (using ==)
./spec/autolinking_spec.rb:525:

11)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by a question mark' FAILED
expected: "<p>Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>?</p>\n",
     got: "<p>Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>?</p>\n" (using ==)
./spec/autolinking_spec.rb:531:

12)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by a semi-colon' FAILED
expected: "<p>Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>;</p>\n",
     got: "<p>Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>;</p>\n" (using ==)
./spec/autolinking_spec.rb:545:

13)
'Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should terminate if followed by a right parenthesis' FAILED
expected: "<p>(Try <a href=\"mailto:user@example.com\" class=\"mailto\">mailto:user@example.com</a>)</p>\n",
     got: "<p>(Try <a href=\"mailto:user@example.com\" class=\"external\">mailto:user@example.com</a>)</p>\n" (using ==)
./spec/autolinking_spec.rb:551:

Finished in 12.851736 seconds

751 examples, 13 failures, 1 pending
rake aborted!
Command ruby -I"/usr/lib/ruby/lib" "/usr/bin/spec" "spec/wikitext_spec.rb" "spec/h2_spec.rb" "spec/integration_spec.rb" "spec/rails_spec.rb" "spec/fulltext_spec.rb" "spec/pre_spec.rb" "spec/h5_spec.rb" "spec/external_link_spec.rb" "spec/string_spec.rb" "spec/internal_link_spec.rb" "spec/regressions_spec.rb" "spec/tt_spec.rb" "spec/blockquote_spec.rb" "spec/encoding_spec.rb" "spec/base_heading_level_spec.rb" "spec/p_spec.rb" "spec/entity_spec.rb" "spec/tokenizing_spec.rb" "spec/link_encoding_spec.rb" "spec/h4_spec.rb" "spec/strong_em_spec.rb" "spec/nowiki_spec.rb" "spec/img_spec.rb" "spec/em_spec.rb" "spec/link_sanitizing_spec.rb" "spec/parser_spec.rb" "spec/autolinking_spec.rb" "spec/ul_spec.rb" "spec/h3_spec.rb" "spec/version_spec.rb" "spec/h1_spec.rb" "spec/line_endings_spec.rb" "spec/h6_spec.rb" "spec/strong_spec.rb" "spec/indentation_spec.rb" "spec/nil_class_spec.rb" --color failed
/usr/lib/ruby/1.8/spec/rake/spectask.rb:184:in `define'
/usr/lib/ruby/1.8/rake.rb:1003:in `verbose'
/usr/lib/ruby/1.8/spec/rake/spectask.rb:153:in `define'
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:1183:in `send'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:515:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:507:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:1183:in `send'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:515:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:507:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in `each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1881:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in `run'
/usr/bin/rake:28

Comments

  1. Greg Hurrell 2009-09-11T03:57:09Z

    Thanks a lot for the report. I only have access to two testing platforms (Mac OS X and RHEL) so it's good to get feedback on other platforms.

    The first failure is kind of expected; it's a failure testing against Rails "Edge", which is basically always broken and I don't really worry about chasing Edge all over the place. Specifically it's choking on the "3.0.pre" version string.

    The other failures are more interesting though. I have no idea why they appear. Running on my machine I just get two failures for Edge, which like I said are kind of expected to be broken:

    1)
    RuntimeError in 'Template handler in Rails 2.2.2 before(:all)'
    non-zero exit status (1) for 'ruby'
    ./spec/rails_spec.rb:58:in `run'
    ./spec/rails_spec.rb:81:in `create_base_app_and_symlinks'
    ./spec/rails_spec.rb:94:in `create_release_app'
    ./spec/rails_spec.rb:173:in `setup_release_app'
    ./spec/rails_spec.rb:201:
    
    2)
    RuntimeError in 'Template handler in Edge Rails before(:all)'
    non-zero exit status (1) for 'git'
    ./spec/rails_spec.rb:58:in `run'
    ./spec/rails_spec.rb:157:in `create_edge_app'
    ./spec/rails_spec.rb:156:in `create_edge_app'
    ./spec/rails_spec.rb:80:in `create_base_app_and_symlinks'
    ./spec/rails_spec.rb:155:in `create_edge_app'
    ./spec/rails_spec.rb:182:in `setup_edge_app'
    ./spec/rails_spec.rb:214:
    
    Finished in 19.668961 seconds
    
    750 examples, 2 failures, 1 pending

    I really have no idea why you're seeing failures like that. Wonder if a previously installed version of the gem is interfering?

    Can you try cloning from the Git repo and testing inside that? eg.

    $ cd /tmp
    $ git clone git://git.wincent.dev/wikitext.git
    Initialized empty Git repository in /private/tmp/wikitext/.git/
    remote: Counting objects: 2972, done.
    remote: Compressing objects: 100% (789/789), done.
    remote: Total 2972 (delta 2087), reused 2972 (delta 2087)
    Receiving objects: 100% (2972/2972), 4.07 MiB | 423 KiB/s, done.
    Resolving deltas: 100% (2087/2087), done.
    $ cd wikitext
    /tmp/wikitext
    $ rake
    (in /private/tmp/wikitext)
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
    checking for ruby.h... yes
    creating Makefile
    gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DRUBY_1_8_x  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c ary.c
    gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DRUBY_1_8_x  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c parser.c
    gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DRUBY_1_8_x  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c str.c
    gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DRUBY_1_8_x  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c token.c
    gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DRUBY_1_8_x  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c wikitext.c
    gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DHAVE_RUBY_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DRUBY_1_8_x  -std=gnu99 -Wall -Wextra -Wno-unused-parameter -c wikitext_ragel.c
    cc -arch i386 -pipe -bundle -undefined dynamic_lookup -o wikitext.bundle ary.o parser.o str.o token.o wikitext.o wikitext_ragel.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch i386     -lruby  -lpthread -ldl  
    ..................................................................................*.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*** COMMAND rake gems:refresh_specs EXITED WITH NON-ZERO EXIT STATUS (1)
    *** STDOUT FOR COMMAND rake gems:refresh_specs:
    (in /private/tmp/wikitext/spec/trash/edge-app)
    *** STDERR FOR COMMAND rake gems:refresh_specs:
    rake aborted!
    Malformed version number string 3.0.pre
    /private/tmp/wikitext/spec/trash/edge-app/rakefile:4
    (See full trace by running task with --trace)
    F.......................................................................................................................
    
    Pending:
    
    Wikitext::Parser autolinking handling "special" URI characters after "mailto:" URIs should not terminate on question marks that occur within the URI (TODO)
    ./spec/autolinking_spec.rb:534
    
    1)
    RuntimeError in 'Template handler in Edge Rails before(:all)'
    non-zero exit status (1) for 'rake'
    ./spec/rails_spec.rb:58:in `run'
    ./spec/rails_spec.rb:168:in `update_environment'
    ./spec/rails_spec.rb:167:in `update_environment'
    ./spec/rails_spec.rb:183:in `setup_edge_app'
    ./spec/rails_spec.rb:214:
    
    Finished in 108.311198 seconds
    
    751 examples, 1 failure, 1 pending
    rake aborted!
    Command /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"/Library/Ruby/Gems/1.8/gems/rspec-1.2.8/lib"  "/Library/Ruby/Gems/1.8/gems/rspec-1.2.8/bin/spec" "spec/autolinking_spec.rb" "spec/base_heading_level_spec.rb" "spec/blockquote_spec.rb" "spec/em_spec.rb" "spec/encoding_spec.rb" "spec/entity_spec.rb" "spec/external_link_spec.rb" "spec/fulltext_spec.rb" "spec/h1_spec.rb" "spec/h2_spec.rb" "spec/h3_spec.rb" "spec/h4_spec.rb" "spec/h5_spec.rb" "spec/h6_spec.rb" "spec/img_spec.rb" "spec/indentation_spec.rb" "spec/integration_spec.rb" "spec/internal_link_spec.rb" "spec/line_endings_spec.rb" "spec/link_encoding_spec.rb" "spec/link_sanitizing_spec.rb" "spec/nil_class_spec.rb" "spec/nowiki_spec.rb" "spec/p_spec.rb" "spec/parser_spec.rb" "spec/pre_spec.rb" "spec/rails_spec.rb" "spec/regressions_spec.rb" "spec/string_spec.rb" "spec/strong_em_spec.rb" "spec/strong_spec.rb" "spec/tokenizing_spec.rb" "spec/tt_spec.rb" "spec/ul_spec.rb" "spec/version_spec.rb" "spec/wikitext_spec.rb" --color failed
    
    (See full trace by running task with --trace)

    So as you can see, works and only the Edge Rails error.

  2. Greg Hurrell 2009-11-01T08:54:31Z

    Summary changed:

    • From: wikitext won't compile
    • To: Spec suite failures on Ubuntu 9.04 (rake --trace)
  3. Greg Hurrell 2010-03-21T15:07:17Z

    Bizarrely on moving to a new machine I can now reproduce the spec failures reported here. I guess I must have had an older copy of the extension which did not have the bug floating around in my load path somewhere. Not sure how this could happen, actually, seeing as in spec/spec_helper.rb we explicitly make sure that the local version of the extension is tested and not versions elsewhere on the load path...

    In any case, now it is fixed.

    Will mark as closed.

  4. Greg Hurrell 2010-03-21T15:07:23Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets