Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ci: only update ops, not all dependencies #1275

Merged

Conversation

tonyandrewmeyer
Copy link
Contributor

When running poetry lock in the CI workloads, only update the ops dependency, not all dependencies. We want to know whether the proposed changes to ops would break the charm's tests, not whether updating all dependencies, including the proposed ops changes, would do so.

This is one of the suggestions in #1272. Using poetry add --lock seems slightly cleaner than the sed system we currently use, but I wasn't able to easily figure out how to do that with a ops = { path = "ci/path/for/ops/branch" } type specifier. It seems like this approach is at least an improvement on the existing one, even if not perfect. (It also will unblock other PRs, given that the tests fail because we're re-locking in entirety).

Fixes #1272.

Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Thanks!

@tonyandrewmeyer tonyandrewmeyer merged commit 6a2b165 into canonical:main Jun 26, 2024
27 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the more-surgical-poetry-update branch June 26, 2024 10:23
@carlcsaposs-canonical
Copy link
Contributor

but I wasn't able to easily figure out how to do that with a ops = { path = "ci/path/for/ops/branch" } type specifier

FYI I believe there are instructions in the link I provided under "You can also add a local directory or file:"—not sure if that works for your use

amandahla pushed a commit to amandahla/operator that referenced this pull request Jun 26, 2024
When running `poetry lock` in the CI workloads, only update the ops
dependency, not all dependencies. We want to know whether the proposed
changes to ops would break the charm's tests, not whether updating all
dependencies, including the proposed ops changes, would do so.

This is one of the suggestions in canonical#1272. Using `poetry add --lock` seems
slightly cleaner than the `sed` system we currently use, but I wasn't
able to easily figure out how to do that with a `ops = { path =
"ci/path/for/ops/branch" }` type specifier. It seems like this approach
is at least an improvement on the existing one, even if not perfect. (It
also will unblock other PRs, given that the tests fail because we're
re-locking in entirety).

Fixes canonical#1272.
tonyandrewmeyer added a commit to tonyandrewmeyer/operator that referenced this pull request Jun 26, 2024
When running `poetry lock` in the CI workloads, only update the ops
dependency, not all dependencies. We want to know whether the proposed
changes to ops would break the charm's tests, not whether updating all
dependencies, including the proposed ops changes, would do so.

This is one of the suggestions in canonical#1272. Using `poetry add --lock` seems
slightly cleaner than the `sed` system we currently use, but I wasn't
able to easily figure out how to do that with a `ops = { path =
"ci/path/for/ops/branch" }` type specifier. It seems like this approach
is at least an improvement on the existing one, even if not perfect. (It
also will unblock other PRs, given that the tests fail because we're
re-locking in entirety).

Fixes canonical#1272.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve poetry adjustments in CI workflows
4 participants