DevWeave logoDevWeave
CommunitiesDiscoverHelp ForumFeaturesWhy DevWeaveAI & Verification
Log inGet started
Back to Issue Discovery
canonical/charmed-postgresql-rock #260openPythonPython

Add integration test for verifying plugin shared objects consistency

Opened by @dragomirp · Assignees: @AniketNS

View on GitHub
enhancementgood first issue

Solve & Merge Reward: Up to +210 XP & +60 Coins

+30 XP on PR open · +180 XP & +60 coins on merge

4 GitHub Stars

Claim Status & GitHub Signal

Assigned on GitHub (@AniketNS). Check recent comments before starting duplicate work.

AI Issue Assessment · Grounded Analyzer
2.8 / 10 · 3–4 · Beginner

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.

Skill Match Breakdown

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.

Log in to receive your free level-adapted Hint #1 grounded in this repository's files.

Skill-Gap Learning

Gap-Targeted
Learn Code in Python

Core Python syntax, functions, control flow, and debugging basics.

Addresses skill gap: Python

Hands-On CodeCrafters Practice
Skill-Gap Challenge
Build your own Shell
Python

Parse commands, manage PATH lookups, pipes, and process execution.

Practice skill gap: Python

Build your own HTTP Server
Python

Handle raw TCP connections, HTTP parsing, headers, and concurrent routes.

Practice skill gap: Python

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)

@syncronize-issues-to-jira[bot]
View comment →

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

@AniketNS
View comment →

I'd like to take this one. Can you assign this to me, @dragomirp?

@syncronize-issues-to-jira[bot]
View comment →

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

@marceloneppelMEMBER
View comment →

Hi, @AniketNS! Thanks for the interest. I assigned it to you.

Peer Help Forum · canonical/charmed-postgresql-rock #260

Issue Troubleshooting Threads (0)

Ask Peers for Help

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.

Sign In

Contribution Workflow

Track your local progress before opening a pull request on GitHub.

Repository Context

Top Repository Paths

[dir] .github
.github/.jira_sync_config.yaml
.github/CODEOWNERS
[dir] .github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE/bug_report.md
.github/renovate.json5
[dir] .github/workflows
.github/workflows/ci.yaml
.github/workflows/release.yaml
.github/workflows/scheduled_trivy_scan_14.yaml
.github/workflows/scheduled_trivy_scan_16.yaml
.github/workflows/tiobe_scan_14.yaml
.github/workflows/tiobe_scan_16.yaml
.github/workflows/trivy.yaml
.github/zizmor.yaml
.gitignore
LICENSE
README.md
SECURITY.md
[dir] licenses
licenses/LICENSE-patroni
licenses/LICENSE-pgbackrest
licenses/LICENSE-pgbouncer
licenses/LICENSE-postgres_exporter

Advisory PR Assistant

Helps structure your PR description or unpack reviewer feedback. Does not perform GitHub actions.