diaspora/diaspora — Issue #2198: postgres rake is producing errors
Author: h4ck3rm1k3
Created: 2011-10-17 08:03:36+00:00
State: open

Did not find this issue, but did find a pastebin on it :
http://pastebin.com/uRN26tJN

I was working on postgres and never heard anything back from you guys. Now you have merged code into master that seems to be broken. please advise on how to continue.

Running rake :

````
=> Built aspect_memberships.yml, aspects.yml, contacts.yml, profiles.yml, people.yml, and users.yml
Run filtered excluding {:performance=>true}
Unimplemented block at ../../relaxng.c:3824 | ETA: 00:01:49

1) Webfinger setup should fetch a diaspora webfinger and make a person for them
Failure/Error: let(:diaspora_xrd) {File.open(File.join(Rails.root, 'spec/fixtures/host-meta.fixture.html')).read}
No such file or directory - /home/mdupont/experiments/diaspora/spec/fixtures/host-meta.fixture.html
# ./spec/lib/webfinger_spec.rb:20:in `initialize'
# ./spec/lib/webfinger_spec.rb:20:in `open'
# ./spec/lib/webfinger_spec.rb:20:in `block (2 levels) in '
# ./spec/lib/webfinger_spec.rb:99:in `block (3 levels) in '

2) Webfinger setup should retry with http if https fails
Failure/Error: let(:diaspora_xrd) {File.open(File.join(Rails.root, 'spec/fixtures/host-meta.fixture.html')).read}
No such file or directory - /home/mdupont/experiments/diaspora/spec/fixtures/host-meta.fixture.html
# ./spec/lib/webfinger_spec.rb:20:in `initialize'
# ./spec/lib/webfinger_spec.rb:20:in `open'
# ./spec/lib/webfinger_spec.rb:20:in `block (2 levels) in '
# ./spec/lib/webfinger_spec.rb:122:in `block (3 levels) in '

3) Webfinger setup webfinger query chain processing#webfinger_profile_url parses out the webfinger template
Failure/Error: let(:diaspora_xrd) {File.open(File.join(Rails.root, 'spec/fixtures/host-meta.fixture.html')).read}
No such file or directory - /home/mdupont/experiments/diaspora/spec/fixtures/host-meta.fixture.html
# ./spec/lib/webfinger_spec.rb:20:in `initialize'
# ./spec/lib/webfinger_spec.rb:20:in `open'
# ./spec/lib/webfinger_spec.rb:20:in `block (2 levels) in '
# ./spec/lib/webfinger_spec.rb:51:in `block (5 levels) in '

4) Webfinger setup#get_xrd follows redirects
Failure/Error: let(:diaspora_xrd) {File.open(File.join(Rails.root, 'spec/fixtures/host-meta.fixture.html')).read}
No such file or directory - /home/mdupont/experiments/diaspora/spec/fixtures/host-meta.fixture.html
# ./spec/lib/webfinger_spec.rb:20:in `initialize'
# ./spec/lib/webfinger_spec.rb:20:in `open'
# ./spec/lib/webfinger_spec.rb:20:in `block (2 levels) in '
# ./spec/lib/webfinger_spec.rb:78:in `block (4 levels) in '

5) Stream::Tag people assigns the right set of people
Failure/Error: stream.people.should == [alice.person]
expected: [#]
got: [] (using ==)
Diff:
@@ -1,2 +1,2 @@
-[#]
+[]

# ./spec/lib/stream/tag_spec.rb:60:in `block (3 levels) in '
````

Running it again produces

````
=> Built aspect_memberships.yml, aspects.yml, contacts.yml, profiles.yml, people.yml, and users.yml
Run filtered excluding {:performance=>true}
Unimplemented block at ../../relaxng.c:3824 | ETA: 00:01:57

1) Stream::Tag people assigns the right set of people
Failure/Error: stream.people.should == [alice.person]
expected: [#]
got: [] (using ==)
Diff:
@@ -1,2 +1,2 @@
-[#]
+[]

# ./spec/lib/stream/tag_spec.rb:60:in `block (3 levels) in '

1673/1673: 100% |==============================================================================================| Time: 00:05:36

Pending:
Base64.urlsafe_encode64_stripped strips the trailing '=' from the url_safe characters
# No reason given
# /home/mdupont/experiments/diaspora/spec/lib/salmon/base64_spec.rb:5
HydraWrapper#insert_job creates a new request object
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/hydra_wrapper_spec.rb:78
HydraWrapper#insert_job calls #prepare_request! on a new request object
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/hydra_wrapper_spec.rb:79
HydraWrapper#insert_job adds request to the hydra queue
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/hydra_wrapper_spec.rb:80
HydraWrapper#prepare_request! calls Pod.find_or_create_by_url
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/hydra_wrapper_spec.rb:84
HydraWrapper#prepare_request! calls Person.url_batch_update
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/hydra_wrapper_spec.rb:85
RedisCache#populate! adds the post from the hash to the cache
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/diaspora/redis_cache_spec.rb:109
Statistics#generate_correlations it returns a hash of including start and end time
# No reason given
# /home/mdupont/experiments/diaspora/spec/lib/statistics_spec.rb:133
Stream::Tag with a user displays a post with a comment containing the tag search
# toooo slow
# /home/mdupont/experiments/diaspora/spec/lib/stream/tag_spec.rb:32
Postzord::Receiver::Public#receive_relayable raises if parent object does not exist
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/lib/postzord/receiver/public_spec.rb:102
Postzord::Receiver::LocalBatch#receive! sockets to users
# not currently socketing
# /home/mdupont/experiments/diaspora/spec/lib/postzord/receiver/local_batch_spec.rb:26
Postzord::Receiver::LocalBatch integrates with a comment calls socket_to_users
# not currently socketing
# /home/mdupont/experiments/diaspora/spec/lib/postzord/receiver/local_batch_spec.rb:103
dispatching lukes' comment on luke's public post gets retracted should not trigger a public dispatch
# TEST POLUTION HERE :(
# /home/mdupont/experiments/diaspora/spec/integration/dispatching_spec.rb:10
ServicesController#inviter enqueues an invite job if the fb user has a username
# No reason given
# /home/mdupont/experiments/diaspora/spec/controllers/services_controller_spec.rb:115
PostsController#show user not signed in shows a public photo
# No reason given
# /home/mdupont/experiments/diaspora/spec/controllers/posts_controller_spec.rb:72
TagFollowingsController create with valid params downcases the tag name
# THIS CAUSES A 500 WE NEED TO FIX IT
# /home/mdupont/experiments/diaspora/spec/controllers/tag_followings_controller_spec.rb:69
FeaturedUsersHelper add some examples to (or delete) /home/mdupont/experiments/diaspora/spec/helpers/featured_users_helper_spec.rb
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/helpers/featured_users_helper_spec.rb:14
featured_users/index.html.haml add some examples to (or delete) /home/mdupont/experiments/diaspora/spec/views/featured_users/index.html.haml_spec.rb
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/views/featured_users/index.html.haml_spec.rb:4
Post scopes includes for a stream inclues author profile and mentions
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/models/post_spec.rb:47
Post scopes includes for a stream should include photos and root of reshares(but does not)
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/models/post_spec.rb:48
User#visible_post_ids RedisCache#ensure_populated_cache does nothing if the cache is already populated
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/models/user/querying_spec.rb:114
User#visible_post_ids RedisCache#ensure_populated_cache re-populates the cache with the latest posts (in hashes)
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/models/user/querying_spec.rb:115
Invitation the invite process handles the case when that user has an invite but not a user
# No reason given
# /home/mdupont/experiments/diaspora/spec/models/invitation_spec.rb:67
Invitation the invite process handles the case where that user has an invite but has not yet accepted
# No reason given
# /home/mdupont/experiments/diaspora/spec/models/invitation_spec.rb:71
Invitation the invite process generate the invitation token and pass it to the user
# No reason given
# /home/mdupont/experiments/diaspora/spec/models/invitation_spec.rb:75
Jobs::ReceiveLocalBatch.perform calls Postzord::Receiver::LocalBatch
# No reason given
# /home/mdupont/experiments/diaspora/spec/models/jobs/receive_local_batch_spec.rb:14
OEmbedCache add some examples to (or delete) /home/mdupont/experiments/diaspora/spec/models/o_embed_cache_spec.rb
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/models/o_embed_cache_spec.rb:4
User#retract posts performs the retraction
# No reason given
# /home/mdupont/experiments/diaspora/spec/models/user_spec.rb:976
Like it is relayable it should behave like it is relayable validation ensures an valid associated parent
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/shared_behaviors/relayable.rb:11
Like it is relayable it should behave like it is relayable validation ensures the presence of an author
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/shared_behaviors/relayable.rb:12
Message it is relayable it should behave like it is relayable validation ensures an valid associated parent
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/shared_behaviors/relayable.rb:11
Message it is relayable it should behave like it is relayable validation ensures the presence of an author
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/shared_behaviors/relayable.rb:12
Comment it is relayable it should behave like it is relayable validation ensures an valid associated parent
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/shared_behaviors/relayable.rb:11
Comment it is relayable it should behave like it is relayable validation ensures the presence of an author
# Not Yet Implemented
# /home/mdupont/experiments/diaspora/spec/shared_behaviors/relayable.rb:12

Finished in 336.42 seconds
1673 examples, 1 failure, 34 pending
rake aborted!
ruby -S bundle exec rspec ./spec/multi_server/post_spec.rb ./spec/multi_server/server_spec.rb ./spec/multi_server/reshare_spec.rb ./spec/multi_server/comment_spec.rb ./spec/lib/salmon/base64_spec.rb ./spec/lib/salmon/slap_spec.rb ./spec/lib/salmon/magic_sig_envelope_spec.rb ./spec/lib/salmon/encrypted_slap_spec.rb ./spec/lib/pubsubhubbub_spec.rb ./spec/lib/i18n_interpolation_fallbacks_spec.rb ./spec/lib/web_hooks_spec.rb ./spec/lib/hcard_spec.rb ./spec/lib/hydra_wrapper_spec.rb ./spec/lib/webfinger_profile_spec.rb ./spec/lib/diaspora/ostatus_builder_spec.rb ./spec/lib/diaspora/web_socket_spec.rb ./spec/lib/diaspora/parser_spec.rb ./spec/lib/diaspora/redis_cache_spec.rb ./spec/lib/diaspora/markdownify_spec.rb ./spec/lib/diaspora/webhooks_spec.rb ./spec/lib/diaspora/encryptable_spec.rb ./spec/lib/diaspora/exporter_spec.rb ./spec/lib/youtube_titles_spec.rb ./spec/lib/splunk_logging_spec.rb ./spec/lib/rake_helper_spec.rb ./spec/lib/resque_job_logging_spec.rb ./spec/lib/statistics_spec.rb ./spec/lib/webfinger_spec.rb ./spec/lib/stream/public_spec.rb ./spec/lib/stream/tag_spec.rb ./spec/lib/stream/aspect_spec.rb ./spec/lib/stream/soups_spec.rb ./spec/lib/stream/base_spec.rb ./spec/lib/stream/featured_spec.rb ./spec/lib/stream/followed_tag_spec.rb ./spec/lib/stream/mention_spec.rb ./spec/lib/direction_detector_spec.rb ./spec/lib/postzord/receiver_spec.rb ./spec/lib/postzord/dispatcher/public_spec.rb ./spec/lib/postzord/dispatcher/private_spec.rb ./spec/lib/postzord/receiver/public_spec.rb ./spec/lib/postzord/receiver/private_spec.rb ./spec/lib/postzord/receiver/local_batch_spec.rb ./spec/lib/postzord/dispatcher_spec.rb ./spec/lib/encryptor_spec.rb ./spec/lib/csv_generator_spec.rb ./spec/integration/receiving_spec.rb ./spec/integration/dispatching_spec.rb ./spec/integration/attack_vectors_spec.rb ./spec/integration/contact_deleting_spec.rb ./spec/integration/activity_streams/photos_controller_spec.rb ./spec/controllers/featured_users_controller_spec.rb ./spec/controllers/photos_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/controllers/sessions_controller_spec.rb ./spec/controllers/likes_controller_spec.rb ./spec/controllers/aspect_memberships_controller_spec.rb ./spec/controllers/contacts_controller_spec.rb ./spec/controllers/conversations_controller_spec.rb ./spec/controllers/services_controller_spec.rb ./spec/controllers/comments_controller_spec.rb ./spec/controllers/messages_controller_spec.rb ./spec/controllers/posts_controller_spec.rb ./spec/controllers/sockets_controller_spec.rb ./spec/controllers/tag_followings_controller_spec.rb ./spec/controllers/registrations_controller_spec.rb ./spec/controllers/api/v0/users_controller_spec.rb ./spec/controllers/tokens_controller_spec.rb ./spec/controllers/post_visibilities_controller_spec.rb ./spec/controllers/home_controller_spec.rb ./spec/controllers/application_controller_spec.rb ./spec/controllers/authorizations_controller_spec.rb ./spec/controllers/admins_controller_spec.rb ./spec/controllers/apps_controller_spec.rb ./spec/controllers/invitations_controller_spec.rb ./spec/controllers/apis_controller_spec.rb ./spec/controllers/aspects_controller_spec.rb ./spec/controllers/conversation_visibilities_controller_spec.rb ./spec/controllers/reshares_controller_spec.rb ./spec/controllers/publics_controller_spec.rb ./spec/controllers/notifications_controller_spec.rb ./spec/controllers/profiles_controller_spec.rb ./spec/controllers/people_controller_spec.rb ./spec/controllers/devise/passwords_controller_spec.rb ./spec/controllers/status_messages_controller_spec.rb ./spec/controllers/activity_streams/photos_controller_spec.rb ./spec/controllers/tags_controller_spec.rb ./spec/helpers/photos_helper_spec.rb ./spec/helpers/layout_helper_spec.rb ./spec/helpers/getting_started_helper_spec.rb ./spec/helpers/featured_users_helper_spec.rb ./spec/helpers/notifications_helper_spec.rb ./spec/helpers/application_helper_spec.rb ./spec/helpers/stream_helper_spec.rb ./spec/helpers/reshares_helper_spec.rb ./spec/helpers/interim_stream_hackiness_helper_spec.rb ./spec/helpers/mobile_helper_spec.rb ./spec/helpers/comments_helper_spec.rb ./spec/helpers/people_helper_spec.rb ./spec/helpers/o_embed_helper_spec.rb ./spec/helpers/markdownify_helper_spec.rb ./spec/helpers/notifier_helper_spec.rb ./spec/mailers/notifier_spec.rb ./spec/misc_spec.rb ./spec/views/featured_users/index.html.haml_spec.rb ./spec/models/notification_spec.rb ./spec/models/retraction_spec.rb ./spec/models/photo_spec.rb ./spec/models/conversation_spec.rb ./spec/models/oauth2_provider_models_activerecord_client_spec.rb ./spec/models/signed_retraction_spec.rb ./spec/models/aspect_spec.rb ./spec/models/notifications/reshared_spec.rb ./spec/models/notifications/private_message_spec.rb ./spec/models/post_spec.rb ./spec/models/user/posting_spec.rb ./spec/models/user/connecting_spec.rb ./spec/models/user/querying_spec.rb ./spec/models/pod_spec.rb ./spec/models/relayable_retraction_spec.rb ./spec/models/service_spec.rb ./spec/models/service_user_spec.rb ./spec/models/invitation_spec.rb ./spec/models/person_spec.rb ./spec/models/jobs/receive_spec.rb ./spec/models/jobs/socket_webfinger_spec.rb ./spec/models/jobs/receive_salmon_spec.rb ./spec/models/jobs/http_multi_spec.rb ./spec/models/jobs/post_to_service_spec.rb ./spec/models/jobs/process_photo_spec.rb ./spec/models/jobs/mail/mail_mentioned_spec.rb ./spec/models/jobs/mail/invite_user_by_email_spec.rb ./spec/models/jobs/mail/mail_reshared_spec.rb ./spec/models/jobs/delete_account_spec.rb ./spec/models/jobs/update_service_users_spec.rb ./spec/models/jobs/resend_invitation_spec.rb ./spec/models/jobs/notify_local_users_spec.rb ./spec/models/jobs/receive_local_batch_spec.rb ./spec/models/jobs/publish_to_hub_spec.rb ./spec/models/o_embed_cache_spec.rb ./spec/models/user_spec.rb ./spec/models/oauth2_provider_models_activerecord_authorization_spec.rb ./spec/models/aspect_membership_spec.rb ./spec/models/profile_spec.rb ./spec/models/user_preference_spec.rb ./spec/models/like_spec.rb ./spec/models/status_message_spec.rb ./spec/models/reshare_spec.rb ./spec/models/request_spec.rb ./spec/models/message_spec.rb ./spec/models/post_visibility_spec.rb ./spec/models/services/facebook_spec.rb ./spec/models/services/twitter_spec.rb ./spec/models/services/tumblr_spec.rb ./spec/models/app_config_spec.rb ./spec/models/contact_spec.rb ./spec/models/activity_streams/photo_spec.rb ./spec/models/comment_spec.rb ./spec/models/tag_following_spec.rb ./spec/models/mention_spec.rb ./spec/models/acts_as_taggable_on_tag_spec.rb failed

Tasks: TOP => default => spec
(See full trace by running task with --trace)

````