23 lines
1.8 KiB
Bash
23 lines
1.8 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
repo=/home/weichen/projects/Agent-System-RDM-wt-feature-rdm-two-trees-project-dictionary
|
|
snapshot=/tmp/rdm-p2-review-8shrap
|
|
source_sha=57a8d7caedf72d9be4bdca179ae2a93e456ba009
|
|
verify_dir=$(mktemp -d /tmp/rdm-p2-receipt-verify-XXXXXX)
|
|
git -C "$repo" archive "$source_sha" | tar -x -C "$verify_dir"
|
|
diff -qr -x pins "$verify_dir" "$snapshot"
|
|
printf 'SOURCE_SHA=%s SOURCE_TREE=IDENTICAL_TO_GIT_ARCHIVE\n' "$source_sha"
|
|
for pin in agent-system-backend agent-system-core agent-system-frontend agent-system-ui; do
|
|
expected=$(git -C "$repo" ls-tree "$source_sha:pins" "$pin" | awk '{print $3}')
|
|
actual=$(git -C "$repo/pins/$pin" rev-parse HEAD)
|
|
test "$actual" = "$expected"
|
|
test -z "$(git -C "$repo/pins/$pin" status --porcelain=v1)"
|
|
printf 'PIN_%s=%s MATCHES_GITLINK CLEAN\n' "$pin" "$actual"
|
|
done
|
|
diff -qr -x .git "$repo/pins" "$snapshot/pins"
|
|
printf 'PIN_SOURCE=IDENTICAL_TO_VERIFIED_PIN_CHECKOUTS\n'
|
|
printf 'SNAPSHOT_PATH=%s\n' "$snapshot"
|
|
cd "$snapshot"
|
|
GOWORK=off go test -race -v ./internal/domain ./internal/rdmapp -run 'TestFrozenWorldCopySeparatesNestedStateAndSharesOnlySealedLog|TestEventLogDoesNotAliasEventInputsOrOutputs|TestEventLogCloseSealsSettersRestoresAndTransactionClosures|TestPublishedReadPointersCannotPolluteOtherReaders|TestRuntimePrivateSeedSurvivesPublicDictionaryMutationBeforeFirstProjectRead|TestRuntimePublicDictionaryCannotPoisonProjectOrHistoricalReaders|TestRetainedTransactionWorldCannotPoisonCommittedCanonical|TestWorldForSharesOnlySealedLogWithinRevision|TestSameRevisionCanonicalCannotBeReplacedByAnotherProjection|TestLaterInstanceCommitRejectsOlderPendingCanonical|TestReaderWaitsForLocalCommitPublication|TestProjectTransactionPublishesOnlyAfterCommit|TestProjectTransactionSQLiteTwoInstanceCAS|TestLegacyAttributionRefreshesOtherRuntimeSQLite|TestCancelInFlightUpdatesCardSameSource' -count=1 -timeout 90s
|
|
|