Skip to content

Bugfix: List the component prefix not the root#51635

Merged
becker33 merged 1 commit intospack:developfrom
kwryankrattiger:bc_list_component_prefix
Nov 26, 2025
Merged

Bugfix: List the component prefix not the root#51635
becker33 merged 1 commit intospack:developfrom
kwryankrattiger:bc_list_component_prefix

Conversation

@kwryankrattiger
Copy link
Copy Markdown
Contributor

Recursively listing a buildcache from the root will result in finding components in other buildcaches that may also exist under that same root. This can lead to degraded performance and errors for many build cache operations.

@haampie
Copy link
Copy Markdown
Member

haampie commented Nov 25, 2025

Maybe add a test?

Copy link
Copy Markdown
Member

@becker33 becker33 left a comment

Choose a reason for hiding this comment

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

Looks great, agree with Harmen it would be nice to have a test.

I think the easiest way to test would probably be to create a directory that shouldn't be read and put a file in it with no read permissions -- then we can look for that error in the output

@kwryankrattiger
Copy link
Copy Markdown
Contributor Author

Yeah it needs a test, I just pushed this quickly so the people experiencing the bug could use it right away. I should have a block of time later today to finish this up.

Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
@kwryankrattiger kwryankrattiger force-pushed the bc_list_component_prefix branch from 02ae1e3 to 4adb178 Compare November 26, 2025 04:14
@becker33 becker33 enabled auto-merge (squash) November 26, 2025 04:23
@haampie
Copy link
Copy Markdown
Member

haampie commented Nov 26, 2025

@kwryankrattiger the backports label is for backports PRs. If you want to backport something, you have to add the labels corresponding to the versions you want it to be backported to.

@haampie haampie added v1.1.1 and removed backports labels Nov 26, 2025
@becker33 becker33 merged commit ae3ddf9 into spack:develop Nov 26, 2025
30 of 32 checks passed
@kwryankrattiger
Copy link
Copy Markdown
Contributor Author

@kwryankrattiger the backports label is for backports PRs. If you want to backport something, you have to add the labels corresponding to the versions you want it to be backported to.

I had asked @becker33 what we were using, thanks for the clarification

psakievich pushed a commit to psakievich/spack that referenced this pull request Dec 1, 2025
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
hippo91 pushed a commit to hippo91/spack that referenced this pull request Dec 1, 2025
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 10, 2026
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
@becker33 becker33 mentioned this pull request Jan 10, 2026
2 tasks
becker33 pushed a commit that referenced this pull request Jan 11, 2026
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 15, 2026
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
vjranagit pushed a commit to vjranagit/spack that referenced this pull request Jan 18, 2026
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 22, 2026
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
becker33 pushed a commit that referenced this pull request Jan 26, 2026
Recursively listing a buildcache from the root will result in finding
components in other buildcaches that may also exist under that same
root. This can lead to degraded performance and errors for many
build cache operations.

Signed-off-by: Ryan Krattiger <[email protected]>
Signed-off-by: Gregory Becker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants