Skip to content

Linux setup miner artifact hash pin is stale #5635

@minyanyi

Description

@minyanyi

Bug

The pinned SHA-256 for the Linux miner artifact in setup_miner.py is stale.

Current pin:

9475fe15d149ef7b3824c0009453c55e17fb6d1d411ea37e9f24f58c6313871c

Actual hash of the checked-in miners/linux/rustchain_linux_miner.py on current main:

91815ecf25042cfea1c60817c8b6e701c4324b60ceeb433da068243920344c0a

Steps to reproduce

python -B -m pytest -q tests/test_setup_miner_downloads.py --tb=short -p no:cacheprovider

or compute the current hash directly:

python -c "import hashlib,pathlib; print(hashlib.sha256(pathlib.Path('miners/linux/rustchain_linux_miner.py').read_bytes()).hexdigest())"

Expected

setup_miner.MINER_ARTIFACTS["Linux"]["sha256"] should match the current Linux miner file, and the setup/download verification test should pass.

Actual

The test fails with a hash mismatch. Linux setup would also reject the current raw GitHub miner artifact during SHA verification.

Fix

Opened PR #5634 to update the Linux miner artifact pin:

#5634

Local validation

  • python -B -m pytest -q tests/test_setup_miner_downloads.py --tb=short -p no:cacheprovider -> 2 passed
  • python -B -m py_compile setup_miner.py tests/test_setup_miner_downloads.py
  • git diff --check

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions