mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-22 04:16:38 +00:00
chore(scripts): add scripts index and archive one-shot scripts (#4822)
chore(scripts): index scripts/ and archive 29 one-shot scripts backlog#1153 infra-13. scripts/ had 80+ unlabelled top-level entries mixing CI gates with finished one-shot issue-validation scripts. - scripts/README.md — one index row per entry with status (ci-gate / dev-tool / archived), purpose, and wiring; subdirectories get one row each. run_scanner_benchmarks.sh is annotated "disposition owned by backlog perf-10" and deliberately untouched. - git mv 29 confirmed-stale one-shot entries to scripts/archive/: 11 issue-scoped validation/perf-capture scripts, the 5-script backlog#706 large-PUT breakdown family, the 4-file GET-optimization stress suite, 2 gt1g one-shots, and 7 other orphaned one-shots. Evidence: a whole-tree boundary-aware reference census showed zero references from CI/Makefiles/docs/code for every moved entry (or references only from other scripts inside the same archived set); re-run after the move shows zero dangling references. - docs/testing/README.md links the index. Moves only — no script content changed.
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Setup test binaries for Docker build testing
|
||||
# This script creates temporary binary files for testing Docker build process
|
||||
|
||||
set -e
|
||||
|
||||
echo "Setting up test binaries for Docker build..."
|
||||
|
||||
# Create temporary rustfs binary
|
||||
./build-rustfs.sh -p x86_64-unknown-linux-gnu
|
||||
|
||||
# Create test directory structure
|
||||
mkdir -p test-releases/server/rustfs/release/linux-amd64/archive
|
||||
mkdir -p test-releases/server/rustfs/release/linux-arm64/archive
|
||||
|
||||
# Get version
|
||||
VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || git rev-parse --short HEAD)
|
||||
|
||||
# Copy binaries
|
||||
cp target/x86_64-unknown-linux-gnu/release/rustfs test-releases/server/rustfs/release/linux-amd64/archive/rustfs.${VERSION}
|
||||
cp target/x86_64-unknown-linux-gnu/release/rustfs.sha256sum test-releases/server/rustfs/release/linux-amd64/archive/rustfs.${VERSION}.sha256sum
|
||||
|
||||
# Create dummy signatures
|
||||
echo "dummy signature" > test-releases/server/rustfs/release/linux-amd64/archive/rustfs.${VERSION}.minisig
|
||||
echo "dummy signature" > test-releases/server/rustfs/release/linux-arm64/archive/rustfs.${VERSION}.minisig
|
||||
|
||||
# Also copy for arm64 (using same binary for testing)
|
||||
cp target/aarch64-unknown-linux-gnu/release/rustfs test-releases/server/rustfs/release/linux-arm64/archive/rustfs.${VERSION}
|
||||
cp target/aarch64-unknown-linux-gnu/release/rustfs.sha256sum test-releases/server/rustfs/release/linux-arm64/archive/rustfs.${VERSION}.sha256sum
|
||||
|
||||
echo "Test binaries created for version: ${VERSION}"
|
||||
echo "You can now test Docker builds with these local binaries"
|
||||
echo ""
|
||||
echo "To start a local HTTP server for testing:"
|
||||
echo " cd test-releases && python3 -m http.server 8000"
|
||||
echo ""
|
||||
echo "Then modify Dockerfile to use http://host.docker.internal:8000 instead of https://dl.rustfs.com/artifacts/rustfs"
|
||||
Reference in New Issue
Block a user