#2 Update to mongo 2.5.1.
Merged 6 years ago by jaruga. Opened 6 years ago by jaruga.
rpms/ jaruga/rubygem-mongo feature/update-to-v2.5.1  into  master

file modified
+1
@@ -6,3 +6,4 @@ 

  /mongo-2.4.1.gem

  /mongo-2.4.3.gem

  /mongo-2.5.0.gem

+ /mongo-2.5.1.gem

file modified
+5 -12
@@ -4,7 +4,7 @@ 

  %global enable_tests 1

  

  Name: rubygem-%{gem_name}

- Version: 2.5.0

+ Version: 2.5.1

  Release: 1%{?dist}

  Summary: Ruby driver for MongoDB

  License: ASL 2.0
@@ -63,16 +63,6 @@ 

  %check

  pushd .%{gem_instdir}

  

- # Disable tests with external internet connection.

- # https://jira.mongodb.org/browse/RUBY-1291

- sed -i "/^      context 'when the string uses the SRV Protocol' do$/,/^      end$/ s/^/#/" \

-   spec/mongo/client_spec.rb

- mv spec/mongo/uri/srv_protocol_spec.rb{,.disabled}

- sed -i "/^    context 'when the scheme is mongodb+srv:\/\/' do$/,/^    end$/ s/^/#/" \

-   spec/mongo/uri_spec.rb

- sed -i '/_TESTS = Dir/ s/Dir\.glob.*$/[]/' \

-   spec/spec_helper.rb

- 

  # Create data directory and start testing mongo instance.

  # See https://github.com/mongodb/mongo-ruby-driver/blob/master/.travis.yml

  mkdir data
@@ -82,7 +72,7 @@ 

    --fork \

    --auth

  

- CI=1 rspec spec

+ CI=1 EXTERNAL_DISABLED=1 rspec spec

  

  # Shutdown mongo and cleanup the data.

  mongod --shutdown --dbpath data
@@ -108,6 +98,9 @@ 

  %{gem_instdir}/spec

  

  %changelog

+ * Fri Feb 23 2018 Jun Aruga <jaruga@redhat.com> - 2.5.1-1

+ - Update to mongo 2.5.1.

+ 

  * Fri Feb 16 2018 Jun Aruga <jaruga@redhat.com> - 2.5.0-1

  - Update to mongo 2.5.0.

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (mongo-2.5.0.gem) = a8da19240d83d75dee25849773509b95b79ade0837d3e2121c9ef0c3fcc801f7921f3bbde4c7a014375c089d7b955638a506d60be17e77bb9c8f479af4d11bb1

+ 711fb8e0018e25203fe610f88288c76e  mongo-2.5.1.gem

Hi,

I updated to latest version 2.5.1.

I tested below things.
After reviewing, I am going to update sources file by fedpkg import.

LGTM. Just be aware that there might be some build issues: rhbz#1549025

I ran a scratch build now. And the build is success.
https://koji.fedoraproject.org/koji/taskinfo?taskID=25318023

I am going to run 'fedpkg import' and merge.

rebased onto d6fde08

6 years ago

Pull-Request has been merged by jaruga

6 years ago

There is an another error right now when running fedpkg build.

$ fedpkg build
Building rubygem-mongo-2.5.1-1.fc29 for rawhide
Created task: 25318562
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=25318562
Watching tasks (this may be safely interrupted)...
25318562 build (rawhide, /rpms/rubygem-mongo.git:d6fde08a3782b064d37c8424d3a694da7be3efcc): open (buildhw-02.phx2.fedoraproject.org)
  25318563 buildSRPMFromSCM (/rpms/rubygem-mongo.git:d6fde08a3782b064d37c8424d3a694da7be3efcc): free
  25318563 buildSRPMFromSCM (/rpms/rubygem-mongo.git:d6fde08a3782b064d37c8424d3a694da7be3efcc): free -> open (buildvm-10.phx2.fedoraproject.org)
  25318563 buildSRPMFromSCM (/rpms/rubygem-mongo.git:d6fde08a3782b064d37c8424d3a694da7be3efcc): open (buildvm-10.phx2.fedoraproject.org) -> FAILED: BuildError: error retrieving sources, mock exited with status 22; see root.log for more information
  0 free  1 open  0 done  1 failed
25318562 build (rawhide, /rpms/rubygem-mongo.git:d6fde08a3782b064d37c8424d3a694da7be3efcc): open (buildhw-02.phx2.fedoraproject.org) -> FAILED: BuildError: error retrieving sources, mock exited with status 22; see root.log for more information
  0 free  0 open  0 done  2 failed

Sorry, maybe I updatedsources file for mongo-2.5.1.gem with wrong way.

Below command is error. And that is a reason of above build failure in root.log.

$ fedpkg sources
Downloading mongo-2.5.1.gem
######################################################################## 100.0%
Remove downloaded invalid file ./mongo-2.5.1.gem
Could not execute sources: Server returned status code 404

After running fedpkg import and updating sources file again like this, the build moved to next step. (The error in root.log disappeared.)

$ git show
...
diff --git a/sources b/sources
index cf86ee8..47b8a6e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-711fb8e0018e25203fe610f88288c76e  mongo-2.5.1.gem
+SHA512 (mongo-2.5.1.gem) = d139dda50ab72d811cb46c9a777fdc22fd712bd9bd4afa7abc27b70bb9f1564e20a571094d58c77ea403b1ef5459b233e47215662b51acde30c78226f52f33b7

There is an another error right now when running fedpkg build.

These are precisely the same symptoms as the rhbz#1549025, i.e. build failed on i686. It should probably pass on different architecture.

Are you sure? I faced 2 kind of errors building rubygem-mongo.

!st error is below error that the reason was invalid sources file.
2nd is the error you reported.

https://kojipkgs.fedoraproject.org//work/tasks/8563/25318563/root.log

DEBUG util.py:522:  Executing command: ['fedpkg', 'sources'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False
DEBUG util.py:296:  Unsharing. Flags: 134217728
DEBUG util.py:439:    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
DEBUG util.py:439:                                   Dload  Upload   Total   Spent    Left  Speed
DEBUG util.py:439:  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
DEBUG util.py:439:  curl: (22) The requested URL returned error: 404 Not Found

https://kojipkgs.fedoraproject.org//work/tasks/8563/25318563/build.log

Are you sure?

Ah, I probably have not paid enough attention to the root.log. I just saw it is i686 and made a conclusion. Sorry for confusion.