Skip to content

Fix PostgreSQL container restart#914

Merged
cristianrgreco merged 5 commits intomainfrom
fix-postgresql-restart
Mar 3, 2025
Merged

Fix PostgreSQL container restart#914
cristianrgreco merged 5 commits intomainfrom
fix-postgresql-restart

Conversation

@cristianrgreco
Copy link
Copy Markdown
Collaborator

@cristianrgreco cristianrgreco commented Mar 1, 2025

No description provided.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Mar 1, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 1, 2025

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 047e632
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-node/deploys/67c45826cc41710007fddc43
😎 Deploy Preview https://deploy-preview-914--testcontainers-node.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Turns out if you try to connect to PG as soon as `pg_isready` exits 0, you fail to connect. Let's change the healthcheck to run an actual query. We need to compute this later as we need credentials.
@cristianrgreco cristianrgreco merged commit e533856 into main Mar 3, 2025
197 checks passed
@cristianrgreco cristianrgreco deleted the fix-postgresql-restart branch March 3, 2025 16:07
@leourbina
Copy link
Copy Markdown
Contributor

@cristianrgreco thanks for fixing this!

vaernion pushed a commit to Arbeidstilsynet/brevgen2 that referenced this pull request Dec 3, 2025
….20.0

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [testcontainers](https://github.com/testcontainers/testcontainers-node) | devDependencies | minor | [`10.18.0` -> `10.20.0`](https://renovatebot.com/diffs/npm/testcontainers/10.18.0/10.20.0) |

---

### Release Notes

<details>
<summary>testcontainers/testcontainers-node (testcontainers)</summary>

### [`v10.20.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.20.0)

[Compare Source](testcontainers/testcontainers-node@v10.19.0...v10.20.0)

#### Changes

#### 🚀 Features

-   Add support for container commit [@&#8203;smcroskey](https://github.com/smcroskey) ([#&#8203;923](testcontainers/testcontainers-node#923))

#### 🧹 Maintenance

-   Fix flaky healthcheck timeout test [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;930](testcontainers/testcontainers-node#930))
-   Fix flaky Selenium test [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;929](testcontainers/testcontainers-node#929))

### [`v10.19.0`](https://github.com/testcontainers/testcontainers-node/releases/tag/v10.19.0)

[Compare Source](testcontainers/testcontainers-node@v10.18.0...v10.19.0)

#### Changes

#### 🚀 Features

-   Add CockroachDB module [@&#8203;leourbina](https://github.com/leourbina) ([#&#8203;910](testcontainers/testcontainers-node#910))

#### 🐛 Bug Fixes

-   Fix lambda container is dropped by ryuk ([#&#8203;848](testcontainers/testcontainers-node#848)) [@&#8203;julienboulay](https://github.com/julienboulay) ([#&#8203;922](testcontainers/testcontainers-node#922))
-   Fix PostgreSQL container restart [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;914](testcontainers/testcontainers-node#914))

#### 🧹 Maintenance

-   Migrate from Jest to Vitest [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;921](testcontainers/testcontainers-node#921))
-   GHA workflow job names [@&#8203;cristianrgreco](https://github.com/cristianrgreco) ([#&#8203;920](testcontainers/testcontainers-node#920))
-   Optimise CI to reduce runners usage, caching NPM modules when needed [@&#8203;mdelapenya](https://github.com/mdelapenya) ([#&#8203;918](testcontainers/testcontainers-node#918))
-   Update docs to demonstrate specifying Qdrant version [@&#8203;Anush008](https://github.com/Anush008) ([#&#8203;917](testcontainers/testcontainers-node#917))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually on...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Backward compatible bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants