Add integration test for verifying plugin shared objects consistency
Opened by @dragomirp · Assignees: @AniketNS
Solve & Merge Reward: Up to +210 XP & +60 Coins
+30 XP on PR open · +180 XP & +60 coins on merge
Claim Status & GitHub Signal
Assigned on GitHub (@AniketNS). Check recent comments before starting duplicate work.
Estimated from issue labels (enhancement, good first issue), Python context, and discussion depth. There are 4 GitHub comments to review for maintainer clarifications. Note: this is an estimate, not a guarantee.
What It's About
Add integration test for verifying plugin shared objects consistency. Since we rely on the charmed-postgresql snap to deliver most Postgresql binaries, we cannot assume that shared object linking is consistent. We should add a test to verify that the shared objects inside the rock are consistent. One way to verify is using ldd a
Why It Matters
Resolving #260 improves reliability and developer experience in canonical/charmed-postgresql-rock.
Expected Outcome
A focused pull request addressing #260 with relevant checks or tests verified locally.
Log in to compare this issue's requirements against your profile skills. Required concepts: Python.
Progressive AI Hints
Hint #1 is always free and calibrated to your experience level. Extra hints unlock with coins without spoiling the full solution.
Skill-Gap Learning
Issue Description
Since we rely on the charmed-postgresql snap to deliver most Postgresql binaries, we cannot assume that shared object linking is consistent. We should add a test to verify that the shared objects inside the rock are consistent.
One way to verify is using ldd and check there are no not found .so:
// Links are correct, no output
# ls -1 /usr/lib/postgresql/*/lib/*.so | xargs ldd -v | grep "not found"
#
// There's a missing SO
# ls -1 /usr/lib/postgresql/*/lib/*.so | xargs ldd -v | grep "not found"
liblapack.so.3 => not found
liblapack.so.3 => not found
#
Linked Pull Requests (0)
No linked or cross-referenced pull requests detected via GitHub timeline. Check comments below for informal claims before starting.
GitHub Comments (4)
Thank you for reporting your feedback to us!
The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-9565.
This message was autogenerated
I'd like to take this one. Can you assign this to me, @dragomirp?
Thank you for reporting your feedback to us!
The internal ticket has been created: https://warthogs.atlassian.net/browse/DPE-12081.
This message was autogenerated
Hi, @AniketNS! Thanks for the interest. I assigned it to you.
Issue Troubleshooting Threads (0)
No troubleshooting threads opened for this issue yet. If you hit a test, build, or navigation blocker, post what you've tried so fellow contributors can help.
PR Verification & Rewards
Sign in and link GitHub to verify your PR against this issue and earn XP + coins.
Contribution Workflow
Track your local progress before opening a pull request on GitHub.
Repository Context
Top Repository Paths
Advisory PR Assistant
Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.