Skip to content

Revert dnf5 upgrade-test diagnostics added in #851 - #853

Merged
joshcooper merged 1 commit into
mainfrom
revert-PA-9119-test-diagnostics
Aug 19, 2026
Merged

joshcooper merged 1 commit into
mainfrom
revert-PA-9119-test-diagnostics

Conversation

@span786

@span786 span786 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Reverts the acceptance-test diagnostics added in #851 to acceptance/tests/test_upgrade_puppet8_to_puppet9.rb (the repo/package state dump — dnf repolist, dnf list --showduplicates, etc. — logged on a post-upgrade version-assertion failure).

Those diagnostics were added to help investigate the Fedora 41 dnf5 upgrade failure (PA-9119/PUP-12151). The actual root cause has since been diagnosed and fixed at the source in puppet-private (a Yum.parse_updates text-parsing bug — dnf5's check-update/list output interleaves a progress preamble with the package list without a blank-line separator, and the old parser's block-flattening approach silently misaligned and dropped every update entry as a result). See puppetlabs/puppet-private#220. These diagnostic lines aren't needed in the test going forward.

Scope note: #851 also included an unrelated, valid bug fix (manifests/install.pp's versioncmp() truthiness bug, plus its regression test in spec/classes/puppet_agent_spec.rb). This PR reverts only the test-diagnostics hunk — the install.pp fix and its test are untouched, since that's a separate legitimate fix, not diagnostic scaffolding.

Test plan

🤖 Generated with Claude Code

The diagnostics (repo/package state dump on a post-upgrade version
mismatch) were added to help investigate PA-9119/PUP-12151's Fedora 41
dnf5 failure. The actual root cause has since been diagnosed and fixed
in puppet-private (a Yum.parse_updates parsing bug, see
puppetlabs/puppet-private#220); these extra diagnostic lines aren't
needed in the test going forward.

Reverts only the acceptance/tests/test_upgrade_puppet8_to_puppet9.rb
diagnostics hunk from #851 -- leaves that PR's unrelated
manifests/install.pp versioncmp() truthiness fix and its regression
test in spec/classes/puppet_agent_spec.rb in place, since that's a
separate, valid bug fix.
@joshcooper
joshcooper merged commit 7445665 into main Aug 19, 2026
9 checks passed
@joshcooper
joshcooper deleted the revert-PA-9119-test-diagnostics branch August 19, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants