++ test -n ''
+ setup_fake_remote_repo1 archive-z2 --force-range-requests
+ mode=archive-z2
+ args=--force-range-requests
+ shift
++ pwd
+ oldpwd=/tmp/test
+ mkdir ostree-srv
+ cd ostree-srv
+ mkdir gnomerepo
+ ostree --repo=gnomerepo init --mode=archive-z2
+ mkdir gnomerepo-files
+ cd gnomerepo-files
+ echo first
+ mkdir baz
+ echo moo
+ echo alien
+ ostree --repo=/tmp/test/ostree-srv/gnomerepo commit -b main -s 'A remote commit' -m 'Some Commit body'
** (ostree commit:16225): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files
** (ostree commit:16225): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files
** (ostree commit:16225): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/firstfile
** (ostree commit:16225): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files/baz
** (ostree commit:16225): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz
** (ostree commit:16225): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/cow
** (ostree commit:16225): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/saucer
e79a942b35701da32740a2afe0139b56085faaafb369ed34406964b947318cfb
+ mkdir baz/deeper
+ ostree --repo=/tmp/test/ostree-srv/gnomerepo commit -b main -s 'Add deeper'
** (ostree commit:16243): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files
** (ostree commit:16243): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files
** (ostree commit:16243): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/firstfile
** (ostree commit:16243): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files/baz
** (ostree commit:16243): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz
** (ostree commit:16243): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/cow
** (ostree commit:16243): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/saucer
** (ostree commit:16243): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files/baz/deeper
** (ostree commit:16243): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/deeper
c2dfcfafff6f02f98ec0d0aec8583f8f3c076645589e860bb2b69c3e2a41e23d
+ echo hi
+ mkdir baz/another/
+ echo x
+ ostree --repo=/tmp/test/ostree-srv/gnomerepo commit -b main -s 'The rest'
** (ostree commit:16257): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/firstfile
** (ostree commit:16257): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files/baz
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/cow
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/saucer
** (ostree commit:16257): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files/baz/another
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/another
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/another/y
** (ostree commit:16257): DEBUG: Examining: /tmp/test/ostree-srv/gnomerepo-files/baz/deeper
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/deeper
** (ostree commit:16257): DEBUG: Adding: /tmp/test/ostree-srv/gnomerepo-files/baz/deeper/ohyeah
5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a
+ cd ..
+ rm -rf gnomerepo-files
+ cd /tmp/test
+ mkdir /tmp/test/httpd
+ cd httpd
+ ln -s /tmp/test/ostree-srv ostree
+ ostree trivial-httpd --daemonize -p /tmp/test/httpd-port --force-range-requests
++ cat /tmp/test/httpd-port
+ port=54609
+ echo http://127.0.0.1:54609
+ cd /tmp/test
+ export 'OSTREE=ostree --repo=repo'
+ OSTREE='ostree --repo=repo'
+ echo 1..1
1..1
+ repopath=/tmp/test/ostree-srv/gnomerepo
+ cp -a /tmp/test/ostree-srv/gnomerepo /tmp/test/ostree-srv/gnomerepo.orig
+ cd /tmp/test
+ rm repo -rf
+ mkdir repo
+ ostree --repo=repo init
++ cat httpd-address
+ ostree --repo=repo remote add --set=gpg-verify=false origin http://127.0.0.1:54609/ostree/gnomerepo
++ find /tmp/test/ostree-srv/gnomerepo/objects
++ wc -l
+ maxtries=37
++ expr 37 '*' 2
+ maxtries=74
+ (( i = 0 ))
+ (( i < 74 ))
+ ostree --repo=repo pull origin main

** (ostree pull:16306): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16306): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16306): DEBUG: resuming transaction:  false
** (ostree pull:16306): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16306): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16306): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16306): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16306): DEBUG: pull: metadata scan is idle
** (ostree pull:16306): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16306): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16306): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16306): DEBUG: fetch of 5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a.commit complete
** (ostree pull:16306): DEBUG: fetch of 5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a.commit complete
** (ostree pull:16306): DEBUG: pull: Processing PULL_MSG_QUIT
** (ostree pull:16306): DEBUG: pull: Sending SCAN_IDLE
error: Download incomplete
+ (( i=i+1 ))
+ (( i < 74 ))
+ ostree --repo=repo pull origin main

** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16325): DEBUG: resuming transaction: true
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16325): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16325): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: metadata scan is idle
** (ostree pull:16325): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: fetch of 5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a.commit complete
** (ostree pull:16325): DEBUG: fetch of 5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a.commit complete
** (ostree pull:16325): DEBUG: write of 5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a.commit complete
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16325): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: queue MAIN_IDLE
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16325): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16325): DEBUG: pull: metadata scan is idle
** (ostree pull:16325): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16325): DEBUG: fetch of a5ae841d71bf95b9e497964b9f6d7bf09ee862bcb29eae51c3d6efc9c5efb8f0.dirtree complete
** (ostree pull:16325): DEBUG: pull: Processing PULL_MSG_QUIT
** (ostree pull:16325): DEBUG: pull: Sending SCAN_IDLE
error: Download incomplete
+ (( i=i+1 ))
+ (( i < 74 ))
+ ostree --repo=repo pull origin main

** (ostree pull:16344): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16344): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16344): DEBUG: resuming transaction: true
** (ostree pull:16344): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16344): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16344): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16344): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16344): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16344): DEBUG: pull: metadata scan is idle
** (ostree pull:16344): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16344): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16344): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16344): DEBUG: fetch of a5ae841d71bf95b9e497964b9f6d7bf09ee862bcb29eae51c3d6efc9c5efb8f0.dirtree complete
** (ostree pull:16344): DEBUG: fetch of 45537ca3b202a748881f7c92137115ecdcbd76579e255f53f4d6a29c9c3b598e.dirmeta complete
** (ostree pull:16344): DEBUG: pull: Processing PULL_MSG_QUIT
** (ostree pull:16344): DEBUG: pull: Sending SCAN_IDLE
error: Download incomplete
+ (( i=i+1 ))
+ (( i < 74 ))
+ ostree --repo=repo pull origin main

** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16369): DEBUG: resuming transaction: true
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16369): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16369): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16369): DEBUG: pull: metadata scan is idle
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16369): DEBUG: fetch of a5ae841d71bf95b9e497964b9f6d7bf09ee862bcb29eae51c3d6efc9c5efb8f0.dirtree complete
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: fetch of 45537ca3b202a748881f7c92137115ecdcbd76579e255f53f4d6a29c9c3b598e.dirmeta complete
** (ostree pull:16369): DEBUG: write of a5ae841d71bf95b9e497964b9f6d7bf09ee862bcb29eae51c3d6efc9c5efb8f0.dirtree complete
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 0 staging: 1
** (ostree pull:16369): DEBUG: queued fetch of content d5956bc83ed942a15471beeeb83276a393750ae86126bcc91448abe2098b9c73
** (ostree pull:16369): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: queue MAIN_IDLE
** (ostree pull:16369): DEBUG: pull: scan: 1 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16369): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16369): DEBUG: pull: metadata scan is idle
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16369): DEBUG: pull: Processing PULL_MSG_QUIT
** (ostree pull:16369): DEBUG: pull: Sending SCAN_IDLE
error: Download incomplete
+ (( i=i+1 ))
+ (( i < 74 ))
+ ostree --repo=repo pull origin main

** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16389): DEBUG: resuming transaction: true
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16389): DEBUG: queued fetch of content d5956bc83ed942a15471beeeb83276a393750ae86126bcc91448abe2098b9c73
** (ostree pull:16389): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16389): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 1 staging: 0
** (ostree pull:16389): DEBUG: pull: metadata scan is idle
** (ostree pull:16389): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16389): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16389): DEBUG: pull: scan: 0 fetching: 1 staging: 0
** (ostree pull:16389): DEBUG: fetch of d5956bc83ed942a15471beeeb83276a393750ae86126bcc91448abe2098b9c73.file complete
** (ostree pull:16389): DEBUG: pull: scan: 0 fetching: 1 staging: 1
** (ostree pull:16389): DEBUG: fetch of 8af4f19d7bb6b95067cef67e4bea2fd3dfc124bd9dc532d28f8d102724263755.dirtree complete
** (ostree pull:16389): DEBUG: fetch of 45537ca3b202a748881f7c92137115ecdcbd76579e255f53f4d6a29c9c3b598e.dirmeta complete
** (ostree pull:16389): DEBUG: write of d5956bc83ed942a15471beeeb83276a393750ae86126bcc91448abe2098b9c73.file complete
** (ostree pull:16389): DEBUG: pull: scan: 0 fetching: 0 staging: 1
** (ostree pull:16389): DEBUG: write of 45537ca3b202a748881f7c92137115ecdcbd76579e255f53f4d6a29c9c3b598e.dirmeta complete
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 0 staging: 1
** (ostree pull:16389): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16389): DEBUG: pull: queue MAIN_IDLE
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 0 staging: 1
** (ostree pull:16389): DEBUG: pull: Processing PULL_MSG_MAIN_IDLE
** (ostree pull:16389): DEBUG: pull: Sending SCAN_IDLE
** (ostree pull:16389): DEBUG: write of 8af4f19d7bb6b95067cef67e4bea2fd3dfc124bd9dc532d28f8d102724263755.dirtree complete
** (ostree pull:16389): DEBUG: pull: scan: 1 fetching: 0 staging: 0
** (ostree pull:16389): DEBUG: queued fetch of content 0871b26c2adfa7c8f81244dc862e5749b2868335839810b7d28fcddb17ff8aea
** (ostree pull:16389): DEBUG: queued fetch of content 1c68c090673bd13f203c258b24d1e6628bc75e755296f7f6dd65df903c956ab9
** (ostree pull:16389): DEBUG: pull: metadata scan is idle
** (ostree pull:16389): DEBUG: pull: scan: 0 fetching: 0 staging: 0
** (ostree pull:16389): DEBUG: pull: Sending SCAN_IDLE
remote origin/main is now 5ecd657e0e6d943fe67f584ad457fb54babff3073b054b01107190686ca8c65a
2 metadata, 1 content objects fetched; 326 B transferred in 0 seconds
** (ostree pull:16389): DEBUG: pull: Processing PULL_MSG_QUIT
** (ostree pull:16389): DEBUG: pull: Sending SCAN_IDLE

+ break
+ ostree --repo=repo fsck
Enumerating objects...
Verifying content integrity of 1 commit objects...
0/7 objects
1/7 objects
2/7 objects
Object missing: 0871b26c2adfa7c8f81244dc862e5749b2868335839810b7d28fcddb17ff8aea.file
3/7 objects
Object missing: 1c68c090673bd13f203c258b24d1e6628bc75e755296f7f6dd65df903c956ab9.file
4/7 objects
5/7 objects
6/7 objects
error: Repository corruption encountered
+ assert_not_reached 'pull failed!'
+ echo pull 'failed!'
pull failed!
+ exit 1
tmp/test [jhbuild=/home/walters/src/build/jhbuild]
$ 
