Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Fix track_memory_usage on poetry-core 1.3.x installations - #14221

Merged
DMRobertson merged 2 commits into
developfrom
dmr/cache-memory-extra
Oct 18, 2022
Merged

DMRobertson merged 2 commits into
developfrom
dmr/cache-memory-extra

Conversation

@DMRobertson

Copy link
Copy Markdown
Contributor

The same kind of problem as discussed in #14085:

  1. we defined an extra with an underscore
  2. we look it up at runtime with an underscore
  3. but poetry-core 1.3.x. installs it with a dash, causing (2) to fail.

Fix by using a dash everywhere.

David Robertson added 2 commits October 18, 2022 12:57
The same kind of problem as discussed in #14085:

1. we defined an extra with an underscore
2. we look it up at runtime with an underscore
3. but poetry-core 1.3.x. installs it with a dash, causing (2) to fail.

Fix by using a dash everywhere.
@DMRobertson

Copy link
Copy Markdown
Contributor Author

I guess we didn't see this in CI because we install --extras all which, irritatingly, does not include all extras. This is an annoyance, but something I chose to maintain when moving to poetry.

@clokep

clokep commented Oct 18, 2022

Copy link
Copy Markdown
Member

(I'm assuming you've double checked there are no other extras with this issue!)

@DMRobertson

Copy link
Copy Markdown
Contributor Author

(I'm assuming you've double checked there are no other extras with this issue!)

I did this time, yeah. 😓

@DMRobertson

Copy link
Copy Markdown
Contributor Author

Complement flake is #14183.

@DMRobertson
DMRobertson merged commit 8e50299 into develop Oct 18, 2022
@DMRobertson
DMRobertson deleted the dmr/cache-memory-extra branch October 18, 2022 12:59
Fizzadar pushed a commit to beeper/synapse-legacy-fork that referenced this pull request Oct 19, 2022
…rg#14221)

* Fix `track_memory_usage` on poetry-core 1.3.x installations

The same kind of problem as discussed in matrix-org#14085:

1. we defined an extra with an underscore
2. we look it up at runtime with an underscore
3. but poetry-core 1.3.x. installs it with a dash, causing (2) to fail.

Fix by using a dash everywhere.

* Changelog
# Conflicts:
#	pyproject.toml
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants