Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.11] fix postgres update tests #1180

Merged
merged 5 commits into from
Nov 27, 2024
Merged

Conversation

osnyx
Copy link
Member

@osnyx osnyx commented Nov 26, 2024

@flyingcircusio/release-managers

Follow-up to #1169. Fixes the postgresql-autoupgrade tests by adjusting the used postgresql versions and handling new behaviour regarding data directories.

development branch, the failing tests are fine and will be taken care of later.

Security implications

  • Security requirements defined? (WHERE)
    • handle some edgecases in postgres data permissions
  • Security requirements tested? (EVIDENCE)
    • fix eval and build of postgres-autoupgrade test

This basically was a manual incrementation of all version numbers. As
this is a rather cumbersome process, the next time such an update is
needed we might want to restructure the version management code to
something more abstract.

Also adds coverage for postgres16.
@osnyx osnyx changed the title Os fix postgres update tests [24.11] fix postgres update tests Nov 26, 2024
- implement automatically adjusting permissions of new_data_dir
- adjust to new data dir behaviour of empty new_data_dir already being
  created for a new postgresql version at system activation time
  - this fixes the test execution
@osnyx osnyx force-pushed the os-fix-postgres-update-tests branch from 2acf29b to daa6a52 Compare November 26, 2024 21:46
@osnyx osnyx marked this pull request as ready for review November 26, 2024 22:16
The files in the postgres data dir do not need to be executable. Hence,
the chmod needs to apply a different mode to files than directories.
Fixing the permissions of just the top-level new_data_dir is sufficient
to make the tests pass again.
Reviewing this together with TS, we saw the danger of masking potential
other issues or messing up permissions when fixing them recursively.
@osnyx
Copy link
Member Author

osnyx commented Nov 27, 2024

Reviewed this with @dpausp and made some adjustments.

@osnyx osnyx merged commit 5dee13e into fc-24.11-dev Nov 27, 2024
1 check passed
@osnyx osnyx deleted the os-fix-postgres-update-tests branch November 27, 2024 11:24
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.

1 participant