Skip to content

fix(ci): clear the develop reds on the Rust side - #129

Merged
HaoZeke merged 8 commits into
developfrom
fix/develop-reds-rust
Nov 27, 2026
Merged

HaoZeke merged 8 commits into
developfrom
fix/develop-reds-rust

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

fix(python): drop needless borrows and allow write_con_mpi

The python feature build flags two atom borrows and the non-mpi
write_con_mpi stub. Pass the bound directly, and use the same
argument-count allow as the mpi build of that function.

fix(ci): skip the cxx hash when the release asset is absent

A missing tag, a 404, or an unreachable host is not a hash
mismatch. A downloaded archive that differs from the wrap hash
still fails.

fix(ci): accept bench rows measured on an older readcon

fidelity, timing, and h2h rows keep readcon 0.23.2. That version
is older than VERSION and has no source_commit. A checkout without
the v0.23.2 tag still accepts the measured version.


Note

Low Risk
Changes CI validation scripts and minor Python-binding style only; incorrect gate logic could hide release issues but does not alter runtime library semantics.

Overview
Release gates now distinguish missing/unpublished assets from real hash mismatches. check_wrap_hash.sh inspects HTTP status and curl exit codes, skips live compares when the tag isn’t published or the host is unreachable, still fails when a published tag’s tarball is 404 or truncated, and treats missing .sha256 sidecars as skippable rather than false mismatches.

check_version_sot.sh adds semver comparison so benchmark rows that still name an older measured readcon than VERSION don’t need a v{recorded} tag when source_commit is absent, while record-file validation continues for every row.

Small Rust/Python cleanup: pass bound atoms directly into exclusive/shared, and allow clippy on the non-MPI write_con_mpi stub. tests/develop_reds_rust_nits.sh mocks git/curl to lock in these behaviors (published 404, sidecar 404, truncated download, older-row record checks).

Reviewed by Cursor Bugbot for commit f0123fc. Bugbot is set up for automated code reviews on this repo. Configure here.

The python feature build flags two atom borrows and the non-mpi
write_con_mpi stub. Pass the bound directly, and use the same
argument-count allow as the mpi build of that function.
A missing tag, a 404, or an unreachable host is not a hash
mismatch. A downloaded archive that differs from the wrap hash
still fails.
fidelity, timing, and h2h rows keep readcon 0.23.2. That version
is older than VERSION and has no source_commit. A checkout without
the v0.23.2 tag still accepts the measured version.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread scripts/check_wrap_hash.sh Resolved
A 404 used to skip the live hash compare after refs/tags/vX
was listed. An empty peel still skips the download. This
tree has no v0.24.0 tag, so CI does not depend on that skip.
A listed tag with no asset fails.
An unreachable or HTTP 404 .sha256 file produced no line.
Say that the sidecar compare was skipped and why. A sidecar
that disagrees with the asset still fails.
curl's failure was ignored, so a short body was hashed.
A non-zero curl status after HTTP 200 is a download
failure. A finished archive with another hash still fails.
The older-version branch continued before the record file
and source_commit checks. Skip only the missing tag. Every
row still runs those checks.
The shell case fails while a listed tag ignores a missing
asset, a sidecar miss is silent, a short download is hashed,
or an older row skips its record file.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f0123fc. Configure here.

printf 'develop_reds_rust_nits: FAILED\n' >&2
exit 1
fi
printf 'develop_reds_rust_nits: all checks passed\n'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Regression test is never run

Medium Severity

tests/develop_reds_rust_nits.sh is a new regression script for published-tag 404s, truncated downloads, sidecar 404s, and older measured-row record checks, but nothing invokes it. cargo test only runs tests/*.rs, and the established pattern in tests/ci_gates.rs is run_gate(...). No workflow, pixi task, or hook references this file, so those mock cases never execute in CI.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit f0123fc. Configure here.

@HaoZeke
HaoZeke merged commit 5c29f78 into develop Nov 27, 2026
75 checks passed
@HaoZeke
HaoZeke deleted the fix/develop-reds-rust branch November 27, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant