Merge lp:~vila/bzr/807032-broken-pack-failure into lp:bzr
Proposed by
Vincent Ladeuil
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6162 |
Proposed branch: | lp:~vila/bzr/807032-broken-pack-failure |
Merge into: | lp:bzr |
Diff against target: |
43 lines (+17/-4) 2 files modified
bzrlib/tests/blackbox/test_branch.py (+14/-4) doc/en/release-notes/bzr-2.5.txt (+3/-0) |
To merge this branch: | bzr merge lp:~vila/bzr/807032-broken-pack-failure |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | Approve | ||
Review via email: mp+76614@code.launchpad.net |
Commit message
Get rid of randomness in blackbox.
Description of the change
Since I was bitten again by a random pqm failure, I decided to try fixing
bug #807032: a random failure of
blackbox.
I haven't been able to reproduce the failure so I guessed (the diff displays
the whole test so I won't repeat it here):
- the pack file is less than 750 so writing there has no effect,
- the file already contains '\xFF' at this position.
I avoid both of the issues by chosing a place from the end of the file and
making sure I'm changing the value found there.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09/22/2011 06:40 PM, Vincent Ladeuil wrote: test_branch. TestBranch. test_branch_ broken_ pack can (and did) fail ramdonly on pqm" /bugs.launchpad .net/bzr/ +bug/807032 /code.launchpad .net/~vila/ bzr/807032- broken- pack-failure/ +merge/ 76614 test_branch. TestBranch. test_branch_ broken_ pack.
> Vincent Ladeuil has proposed merging lp:~vila/bzr/807032-broken-pack-failure into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
> Related bugs:
> Bug #807032 in Bazaar: "blackbox.
> https:/
>
> For more details, see:
> https:/
>
> Since I was bitten again by a random pqm failure, I decided to try fixing
> bug #807032: a random failure of
> blackbox.
>
> I haven't been able to reproduce the failure so I guessed (the diff displays
> the whole test so I won't repeat it here):
>
> - the pack file is less than 750 so writing there has no effect,
>
> - the file already contains '\xFF' at this position.
>
> I avoid both of the issues by chosing a place from the end of the file and
> making sure I'm changing the value found there.
I would tend to say we should just try to write a few bytes. If you
write something like 100 bytes of \xFF you're pretty sure it will fail.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
7bF8ACgkQJdeBCY SNAANwDQCdEgJqY i81M6fu7THdr266 o2ZP REVukY4AQhv9xrY 6jk0WlKPSg
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk5
rf4An2/
=0ekB
-----END PGP SIGNATURE-----