Python Github:当Travis构建无法执行拉取请求时,这意味着什么?

Python Github:当Travis构建无法执行拉取请求时,这意味着什么?,python,git,github,Python,Git,Github,我分叉了一个现有的存储库,然后克隆了它。一、 然后对代码进行更改,然后将更改推送到我的分叉存储库。然后,我创建了一个对基本回购的拉取请求 Travis构建完成后,我发现它失败了。它本质上意味着什么?看起来有些测试失败了,例如: 1) MtGox::Client#buy! should place a bid Failure/Error: buy = @client.buy!(0.88, 0.89) WebMock::NetConnectNotAllowedError:

我分叉了一个现有的存储库,然后克隆了它。一、 然后对代码进行更改,然后将更改推送到我的分叉存储库。然后,我创建了一个对基本回购的拉取请求


Travis构建完成后,我发现它失败了。它本质上意味着什么?

看起来有些测试失败了,例如:

1) MtGox::Client#buy! should place a bid
     Failure/Error: buy = @client.buy!(0.88, 0.89)
     WebMock::NetConnectNotAllowedError:
       Real HTTP connections are disabled. Unregistered request: POST https://data.mtgox.com/api/0/buyBTC.php with body 'amount=0.88&price=0.89&nonce=1321745961249676' with headers {'Accept'=>'*/*', 'Content-Type'=>'application/x-www-form-urlencoded', 'Rest-Key'=>'key', 'Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAb2lACdFRrQWFFFMDBTbwIBu8aELgBmgL8j3qqIpY99ozh9FjcA==', 'User-Agent'=>'Ruby'}

       You can stub this request with the following snippet:

       stub_request(:post, "https://data.mtgox.com/api/0/buyBTC.php").
         with(:body => {"amount"=>"0.88", "nonce"=>"1321745961249676", "price"=>"0.89"},
              :headers => {'Accept'=>'*/*', 'Content-Type'=>'application/x-www-form-urlencoded', 'Rest-Key'=>'key', 'Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAb2lACdFRrQWFFFMDBTbwIBu8aELgBmgL8j3qqIpY99ozh9FjcA==', 'User-Agent'=>'Ruby'}).
         to_return(:status => 200, :body => "", :headers => {})

       registered request stubs:

       stub_request(:post, "https://mtgox.com/api/0/buyBTC.php").
         with(:body => "amount=0.88&price=0.89&nonce=1321745961249676",
              :headers => {'Rest-Key'=>'key', 'Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAb2lACdFRrQWFFFMDBTbwIBu8aELgBmgL8j3qqIpY99ozh9FjcA=='})

       ============================================================
     # ./lib/mtgox/request.rb:16:in `request'
     # ./lib/mtgox/request.rb:10:in `post'
     # ./lib/mtgox/client.rb:178:in `buy!'
     # ./spec/mtgox/client_spec.rb:211:in `block (3 levels) in <top (required)>'
1)MtGox::客户#购买!应该出价吗
失败/错误:buy=@client.buy!(0.88, 0.89)
WebMock::NetConnectNotAllowedError:
真正的HTTP连接被禁用。未注册的请求:POSThttps://data.mtgox.com/api/0/buyBTC.php 主体“金额=0.88,价格=0.89,当前值=1321745961249676”,带有标题{'Accept'=>'*/*','Content Type'=>'application/x-www-form-urlencoded','Rest Key'=>'Key','Rest Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/yab2lacdfrrqwffmdbtbwibu8aelgbmgl8j3qqipy99ozh9fjca=','User Agent'=>'Ruby'}}
您可以使用以下代码段来存根此请求:
存根请求(:post,“https://data.mtgox.com/api/0/buyBTC.php").
带(:body=>{“amount”=>“0.88”,“nonce”=>“1321745961249676”,“price”=>“0.89”},
:headers=>{'Accept'=>'*/*','Content Type'=>'application/x-www-form-urlencoded','Rest Key'=>'Key','Rest Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/yab2lacdfrrqwffmdbtbwibu8aelgbmgl8j3qqipy99ozh9fjca=','User-Agent'=>'Ruby'})。
返回(:status=>200,:body=>“”,:headers=>{})
已注册的请求存根:
存根请求(:post,“https://mtgox.com/api/0/buyBTC.php").
带(:body=>“金额=0.88,价格=0.89,现价=1321745961249676”,
:headers=>{'Rest-Key'=>'Key','Rest-Sign'=>'ixxn/IrNcHJVB6ztBisOVfUSfm3PUVK3n/YAB2LACDFRQWFFFMDBTBWIB8AELGBMGL8J3QQIPY99OZH9FJCA='})
============================================================
#/lib/mtgox/request.rb:16:in'request'
#/lib/mtgox/request.rb:10:in'post'
#/lib/mtgox/client.rb:178:in'buy!'
#./spec/mtgox/client_spec.rb:211:in'block(3层)in'
当您在github上提交pull请求时,如果您配置了travis,travis将启动该特定版本的工作树的构建。如果travis配置为运行某些测试并指示失败(在您的情况下正好如此),则将指示travis构建失败


理想情况下,您需要修复提交请求的分支中的这些错误,并在上游作者批准您的请求之前使travis构建成功。

travis会告诉您;测试以某种方式失败。按照特定作业的链接,查看日志告诉您的内容。失败作业示例: