Harden release artifact verification
ci / test (push) Waiting to run
ci / fuzz-smoke (push) Waiting to run
ci / windows-client (push) Waiting to run
ci / package-release (linux-x86_64, ubuntu-latest) (push) Waiting to run
ci / package-release (macos-aarch64, macos-14) (push) Waiting to run
ci / package-release (macos-x86_64, macos-13) (push) Waiting to run
ci / package-release (windows-x86_64, windows-latest) (push) Waiting to run
ci / publish-gitea-release (push) Blocked by required conditions
ci / remote-bench (push) Waiting to run
ci / test (push) Waiting to run
ci / fuzz-smoke (push) Waiting to run
ci / windows-client (push) Waiting to run
ci / package-release (linux-x86_64, ubuntu-latest) (push) Waiting to run
ci / package-release (macos-aarch64, macos-14) (push) Waiting to run
ci / package-release (macos-x86_64, macos-13) (push) Waiting to run
ci / package-release (windows-x86_64, windows-latest) (push) Waiting to run
ci / publish-gitea-release (push) Blocked by required conditions
ci / remote-bench (push) Waiting to run
This commit is contained in:
@@ -244,6 +244,29 @@ fn complete_release_verifier_requires_both_macos_architectures() {
|
||||
assert!(verify.contains("dosh-windows-x86_64.zip"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn release_verifier_checks_checksums_and_expected_binaries() {
|
||||
let verify = include_str!("../scripts/verify-release-artifacts.sh");
|
||||
assert!(verify.contains("verify_checksum()"));
|
||||
assert!(verify.contains("release checksum mismatch"));
|
||||
for member in [
|
||||
"dosh/bin/dosh",
|
||||
"dosh/bin/dosh-client",
|
||||
"dosh/bin/dosh-server",
|
||||
"dosh/bin/dosh-auth",
|
||||
"dosh/bin/dosh-bench",
|
||||
"dosh/bin/dosh.exe",
|
||||
"dosh/bin/dosh-client.exe",
|
||||
"dosh/bin/dosh-bench.exe",
|
||||
] {
|
||||
assert!(
|
||||
verify.contains(member),
|
||||
"release verifier must require archive member {member}"
|
||||
);
|
||||
}
|
||||
assert!(verify.contains("artifact missing expected member"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn package_release_stamps_git_build_info() {
|
||||
let package = include_str!("../scripts/package-release.sh");
|
||||
|
||||
Reference in New Issue
Block a user