Skip to content

Silence warnings about non-existent index for mirrors that don't have and don't need a buildcache index#575

Merged
climbfuji merged 2 commits intoJCSDA:spack-stack-devfrom
climbfuji:feature/no_errors_as_warnings_for_nonexistent_buildcache_index
Feb 3, 2026
Merged

Silence warnings about non-existent index for mirrors that don't have and don't need a buildcache index#575
climbfuji merged 2 commits intoJCSDA:spack-stack-devfrom
climbfuji:feature/no_errors_as_warnings_for_nonexistent_buildcache_index

Conversation

@climbfuji
Copy link
Collaborator

Description

lib/spack/spack/binary_distribution.py: silence warnings about non-existent index for mirrors, because this warning is issued for all mirrors (source, bootstrap, ...), even if they don't have or don't need a build cache index to function correctly. See comments from Spack developers just below my changes.

These warnings look like legitimate errors, clutter the output of automated build/deploy systems, and confuse users and developers.

I do not indent to send this upstream but maintain the diff in our fork/branch.

Testing

See JCSDA/spack-stack#1896

…istent index for mirrors, because this warning is issued for all mirrors (source, bootstrap, ...)
@climbfuji climbfuji force-pushed the feature/no_errors_as_warnings_for_nonexistent_buildcache_index branch from 96ad721 to 5b7f3a3 Compare February 3, 2026 15:00
… feature/no_errors_as_warnings_for_nonexistent_buildcache_index
@mathomp4
Copy link
Collaborator

mathomp4 commented Feb 3, 2026

@climbfuji Is this related to the:

==> Warning: The following issues were ignored while updating the indices of binary caches
  Multiple errors during fetching:
        Error 1: BuildcacheIndexNotExists: Index not found in cache file:///swbuild/gmao_SIteam/spack-stack/build-cache/v3/manifests/index/index.manifest.json
        Error 2: BuildcacheIndexNotExists: Index not found in cache file:///swbuild/gmao_SIteam/spack-stack/build-cache/build_cache/index.json

things I get?

@climbfuji
Copy link
Collaborator Author

@climbfuji Is this related to the:

==> Warning: The following issues were ignored while updating the indices of binary caches
  Multiple errors during fetching:
        Error 1: BuildcacheIndexNotExists: Index not found in cache file:///swbuild/gmao_SIteam/spack-stack/build-cache/v3/manifests/index/index.manifest.json
        Error 2: BuildcacheIndexNotExists: Index not found in cache file:///swbuild/gmao_SIteam/spack-stack/build-cache/build_cache/index.json

things I get?

Exactly. These get silenced by the PR.

@climbfuji climbfuji merged commit 45341d8 into JCSDA:spack-stack-dev Feb 3, 2026
11 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in spack-stack-2.1.x (2026 Q1) Feb 3, 2026
@climbfuji climbfuji deleted the feature/no_errors_as_warnings_for_nonexistent_buildcache_index branch February 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants