Project

General

Profile

Defect #275

Build failed ( db:migrate?? )

Added by Toshiyuki Ando over 9 years ago. Updated over 9 years ago.

Status:
終了(Closed)
Priority:
通常(Normal)
Target version:
Start date:
01/16/2010
Due date:
01/19/2010
% Done:

100%

Estimated time:

Description

+ rake db:migrate RAILS_ENV=test
rake aborted!
no such file to load -- cucumber/rake/task
/usr/local/test/redmine-0.8.5/Rakefile:10
(See full trace by running task with --trace)
(in /usr/local/test/redmine-0.8.5)
Archiving artifacts
Build wasn't successful, skipping rcov coverage report
Sending e-mails to: couger@kt.rim.or.jp
Finished: FAILURE

cucumber 使っているのが悪いのかな?
ごめんなさい、飯田さん助けてください。

History

#1

Updated by Haru Iida over 9 years ago

cucumberを入れたけど別の問題が。

rake db:migrate RAILS_ENV=testを実行すると何故かHudsonプラグインのマイグレーションが実行され、Redmine本体のマイグレーションが行われません。なんで?

[root@localhost redmine-0.8.5]# rake db:migrate RAILS_ENV=test
(in /usr/local/test/redmine-0.8.5)
== 1 CreateHudsonSettings: migrating ==========================================
-- create_table(:hudson_settings)
   -> 0.0018s
== 1 CreateHudsonSettings: migrated (0.0019s) =================================

== 2 AddShowCompact: migrating ================================================
-- add_column(:hudson_settings, :show_compact, :boolean, {:default=>false})
   -> 0.0032s
== 2 AddShowCompact: migrated (0.0034s) =======================================

== 3 AddAuthUserPassword: migrating ===========================================
-- add_column(:hudson_settings, :auth_user, :string, {:default=>""})
   -> 0.0038s
-- add_column(:hudson_settings, :auth_password, :string, {:default=>""})
   -> 0.0032s
== 3 AddAuthUserPassword: migrated (0.0074s) ==================================

== 4 CreateHudsonJobs: migrating ==============================================
-- create_table(:hudson_jobs)
   -> 0.0015s
-- create_table(:hudson_builds)
   -> 0.0014s
-- create_table(:hudson_build_changesets)
   -> 0.0013s
== 4 CreateHudsonJobs: migrated (0.0047s) =====================================

== 5 AddCausedByToHudsonBuild: migrating ======================================
-- add_column(:hudson_builds, :caused_by, :integer)
   -> 0.0037s
== 5 AddCausedByToHudsonBuild: migrated (0.0038s) =============================

== 6 AddHealthReportKeywordsToHudsonSettings: migrating =======================
-- add_column(:hudson_settings, :health_report_build_stability, :string, {:default=>"Build stability"})
   -> 0.0039s
-- add_column(:hudson_settings, :health_report_test_result, :string, {:default=>"Test Result"})
   -> 0.0040s
== 6 AddHealthReportKeywordsToHudsonSettings: migrated (0.0090s) ==============

== 7 CreateHudsonBuildTestResults: migrating ==================================
-- create_table(:hudson_build_test_results)
   -> 0.0026s
== 7 CreateHudsonBuildTestResults: migrated (0.0028s) =========================

== 8 AddGetBuildDetailsToHudsonSettings: migrating ============================
-- add_column(:hudson_settings, :get_build_details, :boolean, {:default=>true})
   -> 0.0041s
== 8 AddGetBuildDetailsToHudsonSettings: migrated (0.0042s) ===================

== 9 AddLookAndFeelToHudsonSettings: migrating ================================
-- add_column(:hudson_settings, :look_and_feel, :string, {:default=>"Hudson"})
   -> 0.0040s
== 9 AddLookAndFeelToHudsonSettings: migrated (0.0046s) =======================

== 10 CreateHudsonSettingsHealthReports: migrating ============================
-- create_table(:hudson_settings_health_reports)
   -> 0.0028s
-- remove_column(:hudson_settings, :health_report_build_stability)
   -> 0.0118s
-- remove_column(:hudson_settings, :health_report_test_result)
   -> 0.0110s
== 10 CreateHudsonSettingsHealthReports: migrated (0.0263s) ===================

== 11 AddDescriptionAndStateToHudsonJobs: migrating ===========================
-- add_column(:hudson_jobs, :description, :text)
   -> 0.0045s
-- add_column(:hudson_jobs, :state, :string)
   -> 0.0045s
== 11 AddDescriptionAndStateToHudsonJobs: migrated (0.0094s) ==================

== 12 CreateHudsonHealthReports: migrating ====================================
-- create_table(:hudson_health_reports)
   -> 0.0014s
== 12 CreateHudsonHealthReports: migrated (0.0015s) ===========================

== 13 UpdateBuilding: migrating ===============================================
== 13 UpdateBuilding: migrated (0.0005s) ======================================

== 14 UpdateHudsonBuildsErrorAndCausedBy: migrating ===========================
== 14 UpdateHudsonBuildsErrorAndCausedBy: migrated (0.0004s) ==================

== 15 CreateHudsonBuildArtifacts: migrating ===================================
-- create_table(:hudson_build_artifacts)
   -> 0.0016s
== 15 CreateHudsonBuildArtifacts: migrated (0.0017s) ==========================

== 16 CreateHudsonJobSettings: migrating ======================================
-- create_table(:hudson_job_settings)
   -> 0.0015s
== 16 CreateHudsonJobSettings: migrated (0.0016s) =============================

== 17 AddRecordHudsonJobSettings: migrating ===================================
== 17 AddRecordHudsonJobSettings: migrated (0.0073s) ==========================

Loaded suite /usr/local/bin/rake
Started

Finished in 0.000148 seconds.

0 tests, 0 assertions, 0 failures, 0 errors
[root@localhost redmine-0.8.5]#
#2

Updated by Toshiyuki Ando over 9 years ago

ありがとうございます。

自分の端末でも再現したので、ちょうさしてみます。

#3

Updated by Toshiyuki Ando over 9 years ago

なんとなく分かってきました。

cucumber 0.6.1 を入れたときに、test/features/support/env.rb を最新にしたのですが、
その辺が悪さしている感じです。

#4

Updated by Toshiyuki Ando over 9 years ago

と思ったら、違ってました。

lib/tasks/testing.rake のせいです

  namespace :redmine_hudson do
    namespace :test do
        Dir.chdir("vendor/plugins/redmine_hudson")

のようにしていたので、タスクが起動されたときにディレクトリ変更するのではなく、
このタスクが読み込まれた時にディレクトリ移動していたモヨウ…です。

#5

Updated by Toshiyuki Ando over 9 years ago

  • Status changed from 新規(New) to 解決(Resolved)
  • % Done changed from 0 to 100

更新履歴 r418 で適用されました。

#6

Updated by Toshiyuki Ando over 9 years ago

  • Status changed from 解決(Resolved) to フィードバック(Reopend)

今度は

no such file to load -- cucumber/rails/rspec (MissingSourceFile)

と言われてしまいました。飯田さん、あれこれごめんなさい。

#7

Updated by Toshiyuki Ando over 9 years ago

  • Due date set to 01/19/2010
  • Status changed from フィードバック(Reopend) to 終了(Closed)
  • Assignee set to Toshiyuki Ando
  • Target version set to 1.0.2

Also available in: Atom PDF