add more explanation for upgradepath failures
ClosedPublic

Authored by kparal on May 5 2015, 11:08 AM.

Details

Summary

Today I spotted another person asking for explanation for upgradepath failures. I tried to
make the output even more obvious with this patch.

Before:

============================================================
fedora-upgrade-22.2-1.fc21 into f21-updates
============================================================
[ OK ] f20
        Latest package:         fedora-upgrade-20.2-1.fc20
[ OK ] f20-updates
        Latest package:         fedora-upgrade-21.3-1.fc20
[ OK ] f21
        Latest package:         fedora-upgrade-21.2-1.fc21
[--->] f21-updates
        Proposed package:       fedora-upgrade-22.2-1.fc21
[FAIL] f22 + f22-updates
        Latest package:         fedora-upgrade-22.1-1.fc22
        Latest pending package: None
        Error: Proposed package version must be lesser than or equal to the latest (pending) package version.
[ OK ] f23
        Latest package:         fedora-upgrade-22.2-1.fc23
        Latest pending package: None
RESULT: FAILED

After:

============================================================
fedora-upgrade-22.2-1.fc21 into f21-updates
============================================================
[ OK ] f20
        Latest package:         fedora-upgrade-20.2-1.fc20
[ OK ] f20-updates
        Latest package:         fedora-upgrade-21.3-1.fc20
[ OK ] f21
        Latest package:         fedora-upgrade-21.2-1.fc21
[--->] f21-updates
        Proposed package:       fedora-upgrade-22.2-1.fc21
[FAIL] f22 + f22-updates
        Latest package:         fedora-upgrade-22.1-1.fc22
        Latest pending package: None
        Error: Condition not satisfied: fedora-upgrade-22.2-1.fc21 <= fedora-upgrade-22.1-1.fc22
        Error: Proposed package version must be lesser than or equal to the latest (pending) package version.
[ OK ] f23
        Latest package:         fedora-upgrade-22.2-1.fc23
        Latest pending package: None
RESULT: FAILED
Test Plan

seems to work

Diff Detail

Repository
rUPGR task-upgradepath
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to add more explanation for upgradepath failures.May 5 2015, 11:08 AM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: mkrizek, jskladan, tflink.
jskladan accepted this revision.May 6 2015, 11:27 AM
This revision is now accepted and ready to land.May 6 2015, 11:27 AM
This revision was automatically updated to reflect the committed changes.