Skip to content

Don't recursively scan for pyproject.toml when calculating the cache key - #44

Merged
llucax merged 2 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-pip-cache
May 3, 2024
Merged

llucax merged 2 commits into
frequenz-floss:v0.x.xfrom
llucax:fix-pip-cache

Conversation

@llucax

@llucax llucax commented May 3, 2024

Copy link
Copy Markdown
Contributor

Don't recursively scan for pyproject.toml when calculating the cache key

We don't really need to scan for pyproject.toml files recursively, since we only have one in the root of the repository. This should make the cache key calculation more efficient and less error prone, as when using qemu, there are some files that are not accessible and the hash calculation fails.

llucax added 2 commits May 3, 2024 10:13
This change should have never been merged, but it was because the merge
queue was not working.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
We don't really need to scan for `pyproject.toml` files recursively,
since we only have one in the root of the repository. This should make
the cache key calculation more efficient and less error prone, as when
using qemu, there are some files that are not accessible and the hash
calculation fails.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax
llucax requested review from a team as code owners May 3, 2024 08:18
@llucax
llucax requested review from ktickner and shsms May 3, 2024 08:18
@github-actions github-actions Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label May 3, 2024
@llucax
llucax enabled auto-merge May 3, 2024 08:22
@llucax
llucax requested review from daniel-zullo-frequenz and removed request for shsms May 3, 2024 08:22
@llucax

llucax commented May 3, 2024

Copy link
Copy Markdown
Contributor Author

Mmm, maybe putting the SDK team as an owner wasn't the best approach, as it now asks for a review to the SDK team too, which might be too much. What do you think? Ideally I would like that SDK team members can approve but are not asked for a review automatically.

@llucax llucax self-assigned this May 3, 2024
@llucax llucax added the type:tech-debt Improves the project without visible changes for users label May 3, 2024
@llucax llucax added this to the v0.3.0 milestone May 3, 2024
@llucax
llucax disabled auto-merge May 3, 2024 08:24
@llucax
llucax enabled auto-merge May 3, 2024 08:24
@daniel-zullo-frequenz

Copy link
Copy Markdown
Contributor

I would like that SDK team members can approve but are not asked for a review automatically.

I agree that'd be the best

@llucax
llucax added this pull request to the merge queue May 3, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 36cd208 May 3, 2024
@llucax
llucax deleted the fix-pip-cache branch May 3, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants