Files
honk/.github/ci/test-debug-artifacts.sh
T
M0re Co1ors 318edf5826 feat(score): preserve active incumbents and validate carrier pressure (#279)
* feat(score): verify fresh evidence and bound TCP recovery

* fix(core): distinguish DNS timeouts from dial admission waits

* fix(score): date business usability from response progress

* fix(score): preserve recovered incumbents with comparable evidence

* fix(score): retain qualified active business paths

* feat(score): request bounded validation on carrier pressure

* perf(outbound): avoid reboxing observed TLS carriers

* feat(score): expose accepted carrier pressure causes

* feat(ci): publish debug tags to one rolling release

* fix(ci): reject incomplete Debug artifacts before publication
2026-09-19 21:56:02 +08:00

42 lines
1.0 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ci_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)
work=$(mktemp -d)
trap 'rm -rf "$work"' EXIT
cd "$work"
mkdir dist
for target in x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu aarch64-unknown-linux-musl; do
for suffix in '' -stock; do
printf 'artifact\n' > "dist/honk-core-debug-$target$suffix.tar.gz"
done
done
bash "$ci_dir/check-debug-artifacts.sh"
expect_rejection() {
local status=0
bash "$ci_dir/check-debug-artifacts.sh" > failure.log 2>&1 || status=$?
if [[ "$status" != 1 ]]; then
cat failure.log >&2
printf 'Expected incomplete Debug artifacts to be rejected, got exit %s\n' "$status" >&2
exit 1
fi
}
artifact=dist/honk-core-debug-aarch64-unknown-linux-musl-stock.tar.gz
mv "$artifact" saved.tar.gz
expect_rejection
mv saved.tar.gz "$artifact"
bash "$ci_dir/check-debug-artifacts.sh"
: > "$artifact"
expect_rejection
rm "$artifact"
mkdir "$artifact"
expect_rejection
rm -r dist
expect_rejection
printf 'Debug artifact preflight regression passed\n'