为什么CircleCI失败?

问题描述

构建通过,但随后出错

enter image description here

完整错误信息:

Error reading historical timing data: file does not exist
Requested weighting by historical based timing,but they are not present. Falling back to weighting by name.
/home/circleci/project/vendor/bundle/ruby/2.7.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/stack.rb:35: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/circleci/project/vendor/bundle/ruby/2.7.0/gems/actionpack-5.1.7/lib/action_dispatch/middleware/static.rb:109: warning: The called method `initialize' is defined here
/home/circleci/project/vendor/bundle/ruby/2.7.0/gems/activerecord-5.1.7/lib/active_record/type.rb:25: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/circleci/project/vendor/bundle/ruby/2.7.0/gems/activerecord-5.1.7/lib/active_record/type/adapter_specific_registry.rb:7: warning: The called method `add_modifier' is defined here
                                                                                

An error occurred while loading ./spec/models/author_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/models/author_spec.rb:3:in `require'
# ./spec/models/author_spec.rb:3:in `<top (required)>'

An error occurred while loading ./spec/models/author_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/models/author_spec.rb:3:in `require'
# ./spec/models/author_spec.rb:3:in `<top (required)>'
                                                                                

An error occurred while loading ./spec/requests/authors_create_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_create_request_spec.rb:3:in `<top (required)>'

An error occurred while loading ./spec/requests/authors_create_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_create_request_spec.rb:3:in `<top (required)>'
                                                                                

An error occurred while loading ./spec/requests/authors_delete_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_delete_request_spec.rb:3:in `<top (required)>'

An error occurred while loading ./spec/requests/authors_delete_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_delete_request_spec.rb:3:in `<top (required)>'
                                                                                

An error occurred while loading ./spec/requests/authors_index_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_index_request_spec.rb:3:in `<top (required)>'

An error occurred while loading ./spec/requests/authors_index_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_index_request_spec.rb:3:in `<top (required)>'
                                                                                

An error occurred while loading ./spec/requests/authors_show_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_show_request_spec.rb:3:in `<top (required)>'

An error occurred while loading ./spec/requests/authors_show_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_show_request_spec.rb:3:in `<top (required)>'
                                                                                

An error occurred while loading ./spec/requests/authors_update_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_update_request_spec.rb:3:in `<top (required)>'

An error occurred while loading ./spec/requests/authors_update_request_spec.rb.
Failure/Error: ActiveRecord::Migration.maintain_test_schema!

PG::ConnectionBad:
  could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
# ./spec/rails_helper.rb:32:in `<top (required)>'
# ./spec/requests/authors_update_request_spec.rb:3:in `<top (required)>'
                                                                                
No examples found.
No examples found.
                                                                                
 0/0 |========================= 100 ==========================>| Time: 00:00:00 


Top 0 slowest examples (0 seconds,0.0% of total time):

Finished in 0.00042 seconds (files took 3.02 seconds to load)
0 examples,0 failures,6 errors occurred outside of examples

Finished in 0.00042 seconds (files took 3.02 seconds to load)
0 examples,6 errors occurred outside of examples


Exited with code exit status 1

CircleCI配置为: 版本:2.1 球体: 红宝石:circleci/[email protected]

工作: 建立: 码头工人: -图片:circleci / ruby​​:2.7.1 环境: BUNDLER_VERSION:2.1.4 执行者:ruby / default 脚步: - 查看 -红宝石/安装下降 测试: 码头工人: -图片:circleci / ruby​​:2.7.1 环境: BUNDLER_VERSION:2.1.4 脚步: - 查看 -红宝石/安装下降 -红宝石/ rspec-test

工作流程: 版本:2 build_and_test: 职位: -建立 -测试: 要求: -建立

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)