Skip to content

build(shared-notes-server): Add postgresql-14 as a dependency in opts… - #25117

Merged
antobinary merged 1 commit into
v3.0.x-developfrom
antobinary-patch-3
May 20, 2026
Merged

antobinary merged 1 commit into
v3.0.x-developfrom
antobinary-patch-3

Conversation

@antobinary

Copy link
Copy Markdown
Member

…-jammy.sh

What does this PR do?

Add postgresql-14 as a dependency of bbb-shared-notes-server.
It is needed for the operation of the component and also referenced in the after-install script. Therefore needs to have postgres prior.

Closes Issue(s)

Closes # none

Motivation

@danimo reported hitting on install:

Setting up bbb-shared-notes-server (1:3.0-5) ...
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
  Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
  Is the server running locally and accepting connections on that socket?

…-jammy.sh

Needed for the operation of the component and also referenced in the after-install script. Therefore needs to have postgres prior.
@antobinary antobinary added this to the Release 3.0 milestone May 20, 2026
@coderabbitai

coderabbitai Bot commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

This pull request adds postgresql-14 as a required system dependency for the bbb-shared-notes-server package on Ubuntu Jammy. The change modifies the -d option list in the opts-jammy.sh build script to include the PostgreSQL 14 package alongside the existing npm and wkhtmltopdf dependencies.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding postgresql-14 as a dependency to the opts-jammy.sh script for bbb-shared-notes-server.
Description check ✅ Passed The description is directly related to the changeset, explaining what postgresql-14 dependency was added, why it's needed, and the installation issue it resolves.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch antobinary-patch-3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
build/packages-template/bbb-shared-notes-server/opts-jammy.sh (1)

5-5: ⚡ Quick win

Add PostgreSQL service readiness check to after-install.sh before database operations.

The after-install.sh script executes psql commands directly without verifying PostgreSQL is accepting connections. Although package dependency ordering typically ensures PostgreSQL is initialized before the post-install script runs, adding an explicit check (e.g., pg_isready or a connection test) makes the script more robust and handles edge cases where service startup might be delayed.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@build/packages-template/bbb-shared-notes-server/opts-jammy.sh` at line 5,
Modify after-install.sh to verify PostgreSQL is accepting connections before
running any psql commands: locate the database operation block in
after-install.sh and precede it with a readiness check (e.g., call pg_isready or
attempt a simple psql connection in a retry loop with a short sleep and
timeout). Ensure the script fails with a clear error if the timeout is reached;
this prevents running psql commands when Postgres is not yet ready.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@build/packages-template/bbb-shared-notes-server/opts-jammy.sh`:
- Line 5: Modify after-install.sh to verify PostgreSQL is accepting connections
before running any psql commands: locate the database operation block in
after-install.sh and precede it with a readiness check (e.g., call pg_isready or
attempt a simple psql connection in a retry loop with a short sleep and
timeout). Ensure the script fails with a clear error if the timeout is reached;
this prevents running psql commands when Postgres is not yet ready.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 46af8ceb-92fe-49d6-b7d5-a37ab450cf85

📥 Commits

Reviewing files that changed from the base of the PR and between 5740ef2 and 9e191b4.

📒 Files selected for processing (1)
  • build/packages-template/bbb-shared-notes-server/opts-jammy.sh

@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@antobinary
antobinary merged commit 2d5d024 into v3.0.x-develop May 20, 2026
33 of 34 checks passed
@antobinary
antobinary deleted the antobinary-patch-3 branch May 20, 2026 15:09
@antobinary antobinary mentioned this pull request May 29, 2026
16 of 17 tasks
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