UDD branch freshness checker breaks on incomplete history
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Bazaar |
High
|
Unassigned | ||
| | Ubuntu Distributed Development |
Undecided
|
Unassigned | ||
Bug Description
Several of the UDD imports fail like this:
Traceback (most recent call last):
File "/srv/package-
run_script()
File "/srv/package-
only_
File "/srv/package-
revid_db, bstore, possible_
File "/srv/package-
possible_
File "/srv/package-
possible_
File "/srv/package-
possible_
File "/srv/package-
return control.
File "/srv/package-
setup_
File "/srv/package-
hook(self)
File "/srv/package-
lp_
File "/srv/package-
latest_ver, branch_ver = _get_newest_
File "/srv/package-
best_tag = get_most_
File "/srv/package-
for rev_id in graph.iter_
File "/srv/package-
parents = get_parents(
File "/srv/package-
raise errors.
bzrlib.
We should either disable this check in the UDD importer or make it non-fatal.
| John A Meinel (jameinel) wrote : Re: [Bug 888615] [NEW] UDD branch freshness checker breaks on incomplete history | #1 |
| Jelmer Vernooij (jelmer) wrote : | #2 |
Am 13/11/11 22:39, schrieb John A Meinel:
> On 11/10/2011 5:23 PM, Jelmer Vernooij wrote:
>> Public bug reported:
>>
>> Several of the UDD imports fail like this:
>
> ...
>
>> File "/srv/package-
1034, in iter_lefthand_
>> parents = get_parents(
>> File "/srv/package-
1030, in get_parents
>> raise errors.
>> bzrlib.
{<email address hidden>} not present in
"Graph(
[]))))".
>>
>> We should either disable this check in the UDD importer or make it non-
>> fatal.
>
> This certainly sounds like bad data in the branches if it is failing
> like this.
>
That's probably true too, but in the case of the importer it seems like
commenting out the freshness-checker works around the issue.
Cheers,
Jelmer
| Vincent Ladeuil (vila) wrote : | #3 |
I went ahead and set:
launchpad.
in jubany's bazaar.conf
We probably want a finer grained setup *and* investigate whether some branches have invalid data or if the freshness is bogus (as in not setting up the branch correctly or some other internal caching issue or whatever).
In the mean time, with this option off, several imports were unblocked leading to different errors (including errors different than the previous import) and even succeeded in some cases (which means the check freshness is doing something weird anyway).
| Changed in bzr: | |
| importance: | Medium → High |
| John A Meinel (jameinel) wrote : | #4 |
You can do this with: "bzr -Olaunchpad.
Offhand I would guess this happens when you have a stacked branch that doesn't have any revisions in the stacked location, when we try to find any tags that are recent.
| John A Meinel (jameinel) wrote : | #5 |
For some versions of bzr, you'll have to put the setting into a configuration file, new versions of bzr already fully support the command line option.
| Stuart Bishop (stub) wrote : | #6 |
$ bzr branch lp:ubuntu/postgresql-9.1
bzr: ERROR: Revision {<email address hidden>} not present in "Graph(
| Buyukkayhan (buyukkayhan-a) wrote : | #7 |
# bzr branch lp:ubuntu/saucy/firefox
bzr: ERROR: Revision {<email address hidden>} not present in "Graph(
| Anthony Wong (anthonywong) wrote : | #8 |
Met this problem when checking out lp:ubuntu/trusty/unity-lens-files. The workaround in #4 helps:
bzr -Olaunchpad.
| TienFu Chen (ctf) wrote : | #9 |
also happen on checking out lp:ubuntu/trusty/unity, and option Olaunchpad.
| autra (autra) wrote : | #10 |
Same fetching lp:ubuntu/utopic/network-manager
Workaround also worked.
| Vardan (vardan-pogosyan) wrote : | #11 |
Same problem. Workaround also work.
| Ivy Alexander (ivyalexander) wrote : | #12 |
Same issue when fetching lp:ubuntu/trusty/cups - adding -0launchpad.
| tags: | added: check-for-breezy |
| tags: | removed: check-for-breezy |

On 11/10/2011 5:23 PM, Jelmer Vernooij wrote:
> Public bug reported:
>
> Several of the UDD imports fail like this:
...
> File "/srv/package- import. canonical. com/new/ bzr/bzrlib/ graph.py" , line 1034, in iter_lefthand_ ancestry next_key) import. canonical. com/new/ bzr/bzrlib/ graph.py" , line 1030, in get_parents RevisionNotPres ent(next_ key, self) errors. RevisionNotPres ent: Revision {<email address hidden>} not present in "Graph( StackedParentsP rovider( bzrlib. repository. _LazyListJoin( ([CachingParent sProvider( None)], []))))".
> parents = get_parents(
> File "/srv/package-
> raise errors.
> bzrlib.
>
> We should either disable this check in the UDD importer or make it non-
> fatal.
This certainly sounds like bad data in the branches if it is failing
like this.
John
=:->