Skip to content

Fix pinned Linux miner artifact hash#5634

Closed
minyanyi wants to merge 1 commit into
Scottcjn:mainfrom
minyanyi:codex/fix-linux-miner-hash
Closed

Fix pinned Linux miner artifact hash#5634
minyanyi wants to merge 1 commit into
Scottcjn:mainfrom
minyanyi:codex/fix-linux-miner-hash

Conversation

@minyanyi
Copy link
Copy Markdown
Contributor

Summary

  • update the pinned Linux miner artifact SHA-256 in setup_miner.py
  • align the pin with the current miners/linux/rustchain_linux_miner.py contents on main

Why

tests/test_setup_miner_downloads.py currently fails because setup_miner.MINER_ARTIFACTS["Linux"]["sha256"] still points at an older file hash (9475fe...), while the checked-in Linux miner hashes to 91815e.... That mismatch also means Linux setup would reject the current raw GitHub miner artifact during SHA verification.

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

Signed-off-by: minyanyi <109479933+minyanyi@users.noreply.github.com>
@github-actions github-actions Bot added BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/XS PR: 1-10 lines labels May 18, 2026
@minyanyi
Copy link
Copy Markdown
Contributor Author

CI note: the broad test job on this PR is still blocked during collection by the base dependency issue already addressed in #5587 (aiohttp, flask_cors, matplotlib). It stops before reaching tests/test_setup_miner_downloads.py.

Focused validation for this PR passes locally:

  • 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

Copy link
Copy Markdown
Contributor

@kekehanshujun kekehanshujun left a comment

Choose a reason for hiding this comment

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

Approved current head 0f2d9c716bdcdfadf4f574241d1276305f56ac2f.

This PR is a focused pin update: setup_miner.py now pins the Linux artifact to the SHA-256 of the checked-in miners/linux/rustchain_linux_miner.py contents. That keeps the installer verification path strict while avoiding false rejection of the current raw GitHub artifact.

Validation I ran locally after applying the PR hunk to a RustChain worktree:

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
# passed

git diff --check -- setup_miner.py
# passed

sha256(miners/linux/rustchain_linux_miner.py)
# 91815ecf25042cfea1c60817c8b6e701c4324b60ceeb433da068243920344c0a

I also checked the PR's red broad CI note: the failing test job is still blocked during collection by unrelated base dependency gaps before this focused setup-miner test is reached. I do not see a blocker in this PR.

Copy link
Copy Markdown
Contributor

@jaxint jaxint left a comment

Choose a reason for hiding this comment

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

LGTM! Great work on this PR. 🚀

Copy link
Copy Markdown
Contributor

@HCIE2054 HCIE2054 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@HCIE2054 HCIE2054 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@HCIE2054 HCIE2054 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@HCIE2054 HCIE2054 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@HCIE2054 HCIE2054 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@HCIE2054 HCIE2054 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Scottcjn
Copy link
Copy Markdown
Owner

Duplicate of #5467 by @ramimbo (same setup_miner.py:22 SHA-256 hash update). Codex batch 2 Q5.

@Scottcjn Scottcjn closed this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) size/XS PR: 1-10 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants