Skip to content

Conversation

bastelfreak
Copy link
Collaborator

@bastelfreak bastelfreak commented Sep 30, 2025

Since Debian 11 was added to this module, the package name was wrong. It
was set to python-psycopg2, but the correct name is python3-psycopg2.

There's a longer analysis about this bug in https://github.com/puppetlabs/puppetlabs-postgresql/pull/1638/files#r2390588710

tl;dr:

  • Debian 10 used python-psycopg2 and that was set by the module
  • Debian 11 was added without proper acceptance testing
  • Later on unit tests were added for Debian 11, but still with the wrong
    package name
  • 651c2b4 fixed the package name, but
    in the wrong place and didn't adjust the tests
  • That resulted in a broken pipeline, that's how I found all of this

This patch:

  • Cleans up the hiera data
  • sets the package name at the correct location
  • adjusts the debian 11 unit test for the new package name
  • Adds tests for Debian 12 and 13 (won't be executed right now because Perforce ships a too old version of FacterDB)

Edit: Had to remove Debian 13 because the pipeline fails if it cannot find a factset.

@bastelfreak
Copy link
Collaborator Author

This PR also contains #1645 , because the pipeline checks for outdated modules in metadata.json

Since Debian 11 was added to this module, the package name was wrong. It
was set to python-psycopg2, but the correct name is python3-psycopg2.

There's a longer analysis about this bug in https://github.com/puppetlabs/puppetlabs-postgresql/pull/1638/files#r2390588710

tl;dr:

* Debian 10 used python-psycopg2 and that was set by the module
* Debian 11 was added without proper acceptance testing
* Later on unit tests were added for Debian 11, but still with the wrong
  package name
* 651c2b4 fixed the package name, but
  in the wrong place and didn't adjust the tests
* That resulted in a broken pipeline, that's how I found all of this

This patch:
* Cleans up the hiera data
* sets the package name at the correct location
* adjusts the debian 11 unit test for the new package name
* Adds tests for Debian 12 and 13 (won't be executed right now because
  Perforce ships a too old version of FacterDB)

Edit: Had to remove Debian 13 because the pipeline fails if it cannot
find a factset.
@bastelfreak
Copy link
Collaborator Author

The acceptance tests are a mess, due to the broken pipeline. The adjusted unit tests pass now again, so I'm going to merge it.

@bastelfreak bastelfreak merged commit b85be45 into puppetlabs:main Sep 30, 2025
5 of 57 checks passed
@bastelfreak bastelfreak mentioned this pull request Sep 30, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants