Hi, I tried #gitorious in IRC but no one answered me.
Most of my failing tests were due to use_ssl=true in gitorious.yml. Is
there anything I should do to make tests pass with use_ssl=true. Or
should I keep it false for the test environment?
With use_ssl=false, all my tests are finally green now (rake test), but
this happened to me once:
rake test:units
/usr/bin/ruby1.8 -I"lib:test"
"/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb"
"test/unit/committership_test.rb" "test/unit/group_test.rb"
"test/unit/lib/ssh_client_test.rb" "test/unit/lib/breadcrumb_test.rb"
"test/unit/lib/web_hook_generator_test.rb"
"test/unit/lib/ssh_strainer_test.rb"
"test/unit/lib/push_event_logger_test.rb"
"test/unit/lib/comment_callback_test.rb"
"test/unit/lib/push_spec_parser_test.rb"
"test/unit/lib/pre_receive_guard_test.rb"
"test/unit/lib/subdomain_validation_test.rb"
"test/unit/lib/wiki_update_event_logger_test.rb"
"test/unit/lib/wiki_commit_log_parser_test.rb"
"test/unit/lib/event_rendering/text_test.rb"
"test/unit/lib/markup_renderer_test.rb"
"test/unit/lib/gitorious/standalone_resolver_test.rb"
"test/unit/lib/commit_test.rb" "test/unit/mailer_test.rb"
"test/unit/hook_test.rb" "test/unit/cloner_test.rb"
"test/unit/feed_item_test.rb" "test/unit/ssh_key_file_test.rb"
"test/unit/event_test.rb" "test/unit/message_test.rb"
"test/unit/comment_test.rb" "test/unit/project_test.rb"
"test/unit/repository_test.rb" "test/unit/page_test.rb"
"test/unit/favorite_test.rb" "test/unit/membership_test.rb"
"test/unit/status_tag_test.rb" "test/unit/merge_request_status_test.rb"
"test/unit/site_test.rb"
"test/unit/helpers/merge_requests_helper_test.rb"
"test/unit/helpers/groups_helper_test.rb"
"test/unit/helpers/licenses_helper_test.rb"
"test/unit/helpers/comments_helper_test.rb"
"test/unit/helpers/events_helper_test.rb"
"test/unit/helpers/blobs_helper_test.rb"
"test/unit/helpers/projects_helper_test.rb"
"test/unit/helpers/keys_helper_test.rb"
"test/unit/helpers/memberships_helper_test.rb"
"test/unit/helpers/admin/users_helper_test.rb"
"test/unit/helpers/pages_helper_test.rb"
"test/unit/helpers/committerships_helper_test.rb"
"test/unit/helpers/sessions_helper_test.rb"
"test/unit/helpers/aliases_helper_test.rb"
"test/unit/helpers/merge_request_versions_helper_test.rb"
"test/unit/helpers/application_helper_test.rb"
"test/unit/helpers/accounts_helper_test.rb"
"test/unit/helpers/commits_helper_test.rb"
"test/unit/helpers/messages_helper_test.rb"
"test/unit/helpers/users_helper_test.rb"
"test/unit/helpers/site_helper_test.rb"
"test/unit/helpers/trees_helper_test.rb"
"test/unit/helpers/favorites_helper_test.rb"
"test/unit/helpers/repositories_helper_test.rb"
"test/unit/helpers/searches_helper_test.rb"
"test/unit/helpers/event_rendering_helper_test.rb"
"test/unit/user_test.rb" "test/unit/archived_event_test.rb"
"test/unit/processors/message_forwarding_processor_test.rb"
"test/unit/processors/repository_creation_processor_test.rb"
"test/unit/processors/merge_request_git_backend_processor_test.rb"
"test/unit/processors/repository_archiving_processor_test.rb"
"test/unit/processors/merge_request_version_processor_test.rb"
"test/unit/processors/web_hook_processor_test.rb"
"test/unit/processors/merge_request_processor_test.rb"
"test/unit/processors/push_processor_test.rb"
"test/unit/processors/ssh_key_processor_test.rb"
"test/unit/email_test.rb" "test/unit/git_backend_test.rb"
"test/unit/ssh_key_test.rb" "test/unit/merge_request_test.rb"
"test/unit/role_test.rb" "test/unit/message_thread_test.rb"
"test/unit/merge_request_version_test.rb"
[DEPRECATION] should_require_attributes is deprecated. Use
should_validate_presence_of instead.
* DEFERRED: Mass email delivery should create n messages when
supplying several recipients.
* DEFERRED: find_by_path should finds a repository by its path,
regardless of repository kind.
[DEPRECATION] should_require_attributes is deprecated. Use
should_validate_presence_of instead.
* DEFERRED: Merge request update should locate the correct merge
request.
* DEFERRED: The state machine should provide a hash of labels and
values for possible next states.
* DEFERRED: The state machine should have a pseudo-open status.
Loaded suite
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.....................................................................................................................................................................................................................................................................................................................................................................................
Finished in 49.714424 seconds.
1) Failure:
test: Fresh repositories should include repositories recently pushed to.
(RepositoryTest)
[/test/unit/repository_test.rb:1018:in `__bind_1305076356_216052'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `call'
shoulda (2.9.2) lib/shoulda/context.rb:253:in `test: Fresh
repositories should include repositories recently pushed to. '
vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in
`__send__'
vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in
`run']:
<false> is not true.
947 tests, 1962 assertions, 1 failures, 0 errors
But I'm finally able to start working on the upgrade to Rails 3.1. I'll
probably start on Thursday since tomorrow Flamengo is gonna play at
night :) I can't miss this game.
Best regards,
Rodrigo.
Em 10-05-2011 06:23, Christian Johansen escreveu:
Cool! Sorry for the late reply. Why don't you join us in IRC?
#gitorious on freenode.
Christian
On Tue, May 10, 2011 at 02:28, Rodrigo Rosenfeld Rosas
<[email protected] <mailto:[email protected]>> wrote:
Em 09-05-2011 21:14, Rodrigo Rosenfeld Rosas escreveu:
Em 09-05-2011 21:09, Rodrigo Rosenfeld Rosas escreveu:
Ok, just got many of the failures fixed after fixing
config/broker.yml to include the other environments too.
It seems that I should use "adapter: test" instead of stomp :)
Keep trying make all tests green :)
Now, there is only 9 failures in test:units:
Keep trying... :)
Ok, the missing bit was that I should set the host to
gitorious.test for the test environment in gitorious.yml.
All unit tests green now! Next to functionals :)
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]