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

patch(build_charm.yaml): Add comment about libpq-dev #156

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

carlcsaposs-canonical
Copy link
Contributor

No description provided.

@@ -100,6 +100,7 @@ jobs:
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: (GitHub-hosted ARM runner) Install libpq-dev
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
# Needed for `charmcraftcache` to resolve dependencies (for postgresql charms with psycopg2)

Choose a reason for hiding this comment

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

is there a way to install this only for postgres charms?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, but imo not worth it

we could read charmcraft.yaml build-packages, but that shouldn't be needed to install a binary version of a python package

(we already read build-packages when building wheels from source on ccc-hub)

psycopg2 is a special python dep in that it requires an apt package to install from binary, which I believe is quite rare

gh-hosted X64 runners have libpq-dev installed by default, so installing it is the easiest workaround

Choose a reason for hiding this comment

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

Even if there is, it may become hard to maintain per charm dependencies. I thinks it's just simpler to allow some bloat here

@@ -100,6 +100,7 @@ jobs:
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: (GitHub-hosted ARM runner) Install libpq-dev
if: ${{ matrix.base.runner == 'Ubuntu_ARM64_4C_16G_01' }}
# Needed for `charmcraftcache` to resolve dependencies (for postgresql charms with psycopg2)

Choose a reason for hiding this comment

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

Even if there is, it may become hard to maintain per charm dependencies. I thinks it's just simpler to allow some bloat here

@carlcsaposs-canonical carlcsaposs-canonical merged commit 848879c into main Mar 7, 2024
2 checks passed
@carlcsaposs-canonical carlcsaposs-canonical deleted the libpq-dev branch March 7, 2024 11:48
carlcsaposs-canonical referenced this pull request in canonical/mysql-router-k8s-operator Mar 25, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[canonical/data-platform-workflows](https://github.com/canonical/data-platform-workflows)
| action | major | `v12.6.2` -> `v13.0.0` |
|
[pytest-operator-cache](https://github.com/canonical/data-platform-workflows)
| integration | major | `v12.6.2` -> `v13.0.0` |
|
[pytest-operator-groups](https://github.com/canonical/data-platform-workflows)
| integration | major | `v12.6.2` -> `v13.0.0` |

---

### Release Notes

<details>
<summary>canonical/data-platform-workflows
(canonical/data-platform-workflows)</summary>

###
[`v13.0.0`](https://github.com/canonical/data-platform-workflows/releases/tag/v13.0.0)

[Compare
Source](https://github.com/canonical/data-platform-workflows/compare/v12.7.2...v13.0.0)

##### What's Changed

- breaking(release_charm.yaml): Remove support for `upstream-sources` by
[@&#8203;carlcsaposs-canonical](https://github.com/carlcsaposs-canonical)
in
[https://github.com/canonical/data-platform-workflows/pull/158](https://github.com/canonical/data-platform-workflows/pull/158)

**Full Changelog**:
canonical/data-platform-workflows@v12...v13.0.0

###
[`v12.7.2`](https://github.com/canonical/data-platform-workflows/releases/tag/v12.7.2)

[Compare
Source](https://github.com/canonical/data-platform-workflows/compare/v12.7.1...v12.7.2)

##### What's Changed

- patch: Add \_sync_docs.yaml by
[@&#8203;a-velasco](https://github.com/a-velasco) in
[https://github.com/canonical/data-platform-workflows/pull/157](https://github.com/canonical/data-platform-workflows/pull/157)

##### New Contributors

- [@&#8203;a-velasco](https://github.com/a-velasco) made their first
contribution in
[https://github.com/canonical/data-platform-workflows/pull/157](https://github.com/canonical/data-platform-workflows/pull/157)

**Full Changelog**:
canonical/data-platform-workflows@v12.7.1...v12.7.2

###
[`v12.7.1`](https://github.com/canonical/data-platform-workflows/releases/tag/v12.7.1)

[Compare
Source](https://github.com/canonical/data-platform-workflows/compare/v12.7.0...v12.7.1)

##### What's Changed

- patch(build_charm.yaml): Add comment about `libpq-dev` by
[@&#8203;carlcsaposs-canonical](https://github.com/carlcsaposs-canonical)
in
[https://github.com/canonical/data-platform-workflows/pull/156](https://github.com/canonical/data-platform-workflows/pull/156)

**Full Changelog**:
canonical/data-platform-workflows@v12.7.0...v12.7.1

###
[`v12.7.0`](https://github.com/canonical/data-platform-workflows/releases/tag/v12.7.0)

[Compare
Source](https://github.com/canonical/data-platform-workflows/compare/v12.6.2...v12.7.0)

##### What's Changed

- compatible(release_rock.yaml): Release multi-architecture image by
[@&#8203;carlcsaposs-canonical](https://github.com/carlcsaposs-canonical)
in
[https://github.com/canonical/data-platform-workflows/pull/155](https://github.com/canonical/data-platform-workflows/pull/155)

**Full Changelog**:
canonical/data-platform-workflows@v12.6.2...v12.7.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 1am and before 3am every
weekday" in timezone Etc/UTC, Automerge - At any time (no schedule
defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/canonical/mysql-router-k8s-operator).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi42OC4xIiwidXBkYXRlZEluVmVyIjoiMzcuMjQ1LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

4 participants