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

[MISC] Reusable workflow #168

Merged
merged 23 commits into from
Jan 9, 2024
Merged

[MISC] Reusable workflow #168

merged 23 commits into from
Jan 9, 2024

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Jan 4, 2024

Switch to the DPW reusable workflow

juju:
- agent: 2.9.46
libjuju: ^2
- agent: 3.1.6
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Backend relation fails on 3.1.7. Will investigate separately.

@@ -22,14 +23,14 @@

logger = logging.getLogger(__name__)

FIRST_DISCOURSE_APP_NAME = "discourse-k8s"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

discourse-k8s was ported to the new interface.

Copy link
Contributor

Choose a reason for hiding this comment

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

Crazy naming choise... BTW, is "discourse-k8s" R.I.P? Why do we need two identical charms? o_0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Discourse-k8s is the actively developed charm and has switched to the new data interface. We have added a new test for it in the PG charm, we'll have to do so for PGB as well, but that's out of scope for the PR.

@dragomirp dragomirp marked this pull request as ready for review January 5, 2024 17:41
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Well done. THANK YOU!

@@ -22,14 +23,14 @@

logger = logging.getLogger(__name__)

FIRST_DISCOURSE_APP_NAME = "discourse-k8s"
Copy link
Contributor

Choose a reason for hiding this comment

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

Crazy naming choise... BTW, is "discourse-k8s" R.I.P? Why do we need two identical charms? o_0

Comment on lines +7 to +10
{
"matchPackageNames": ["pydantic"],
"allowedVersions": "<2.0.0"
}, {
Copy link
Contributor

Choose a reason for hiding this comment

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

permanent ignores for temporary issues make me worried that we'll forget about them

maybe a better option would be to manually close the PR that renovate opens so that it adds it to the ignore list?

at the least, I'd suggest adding a comment to explain why this ignore was added

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't consider this a temporary issue. There are multiple charm libs that will need to be updated to work with pydantic 2 and it also fails to compile with focal's rustc. I doubt we can make the jump anytime soon.

Comment on lines +11 to +12
"matchPackageNames": ["python"],
"allowedVersions": "<3.11"
Copy link
Contributor

Choose a reason for hiding this comment

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

consider disabling python updates instead—maybe we should add this to shared config

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The python version is charm specific, it will vary depending on the base.

Copy link
Contributor

Choose a reason for hiding this comment

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

My suggestion is to disable automatic python updates for all charms

Comment on lines 15 to 22
"regexManagers": [
{
"fileMatch": ["(^|/)([\\w-]*)charmcraft\\.ya?ml$"],
"matchStrings": ["- (?<depName>.*?)(?:\\[.*?\\])?==(?<currentValue>.*?) +# renovate"],
"datasourceTemplate": "pypi",
"versioningTemplate": "loose"
}
]
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi charm-strict-dependencies will change how binary packages are managed

would recommend enabling strict dependencies if they don't cause issues

.gitignore Outdated Show resolved Hide resolved
Co-authored-by: Carl Csaposs <carl.csaposs@canonical.com>
@dragomirp
Copy link
Contributor Author

Enabled charm-strict-dependencies. Please, take another look.

Copy link
Contributor

@carlcsaposs-canonical carlcsaposs-canonical left a comment

Choose a reason for hiding this comment

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

pyproject.toml Outdated
Comment on lines 26 to 27
psycopg-binary = "^3.1.17"
psycopg = {extras = ["binary"], version = "^3.1.17"}
Copy link
Contributor

Choose a reason for hiding this comment

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

are both of these needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like no.

@dragomirp dragomirp merged commit 8fa9890 into main Jan 9, 2024
27 checks passed
@dragomirp dragomirp deleted the reusable-workflow branch January 9, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants