Skip to content
This repository has been 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
merged 2 commits into from
Oct 18, 2022

Conversation

DMRobertson
Copy link
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
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
Copy link
Member

clokep commented Oct 18, 2022

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

@DMRobertson
Copy link
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
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