QA: add fresh-volumes toggle for make start-qa (or make reset-qa) #202
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic#202
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split from #120 — @PlasticDigits requested a dedicated ticket after QA verification discovered stale deployed contracts on a reused LocalTerra volume.
Problem
make start-qatears down the compose stack viastop-qa.shbut does not remove Docker volumes (localterra-data,postgres-data). A subsequentstart-qareuses chain state from prior runs whiledeploy-localonly redeploys wasm from the current tree. That mismatch is easy to miss and can invalidate contract-side live walks (see sister issue for stale-contract detection).During #120 verification, the QA stack was running pre-
b03152dcontracts until volumes were manually removed:Proposed scope
QA_FRESH_VOLUMES=1 make start-qa(or similar env flag documented inscripts/qa/README.md), ormake reset-qatarget that runsdocker compose down -v(or removes the QA-named volumes) then chains intostart-qa.Acceptance
make start-qabehaviour unchanged unless toggle is set (preserve fast restarts where safe)scripts/qa/README.md+make helpmention the toggle/targetRelated
mentioned in issue #120
Implemented (main @
5ce70a6)Added a documented operator path to start QA with empty LocalTerra + Postgres volumes while keeping default
make start-qabehaviour unchanged.What changed
make reset-qa— setsQA_FRESH_VOLUMES=1and runs fullstart-qa(teardown usesdocker compose down -v).QA_FRESH_VOLUMES=1 make start-qa— same asreset-qa.scripts/qa/lib/qa-env.sh,scripts/qa/lib/print-fresh-volumes-banner.sh.make test-qa-fresh-volumes— unit checks (no Docker).docs/qa-invariants.md,scripts/qa/README.md,make help,docs/README.md,docs/qa-onboarding.md.skills/AGENTS_QA_FRESH_VOLUMES.md(cross-links #202, #203, #120).Verification checklist
make test-qa-fresh-volumespasses on a clean clone.make helplistsreset-qaandQA_FRESH_VOLUMES=1 make start-qa.make start-qa(no flag):stop-qapath usesdocker compose downwithout-v; no red fresh-volumes banner.make reset-qa(orQA_FRESH_VOLUMES=1 make start-qa): red banner; logs show volume removal;docker volume lsdoes not show stalecl8y-dex-terraclassic_localterra-data/_postgres-dataafter teardown (recreated on up).make deploy-localruns and contract addresses infrontend-dapp/.env.local/indexer/.envmatch a fresh chain walk.make stop-qaalone still preserves volumes.QA_SHARED_HOST=1, fresh reset still uses the QA compose overlay.Leaving issue open for operator sign-off.
@brouie — please verify on the QA host when convenient.
mentioned in commit
5ce70a6d04mentioned in issue #203
Verified on
mainat3226630— merged locally and pushed to origin/main.Reopened: fix is merged to
mainbut this issue stays open until QA/verification is complete. (Previously closed in error during repo cleanup.)Verification (#202) — agent @
main@956d469Verified in git worktree
verify/issue-202(compose projectcl8y-dex-terraclassicshared across worktrees perdocs/qa-invariants.md).Issue acceptance (body)
make reset-qaandQA_FRESH_VOLUMES=1 make start-qamake start-qaunchanged (volumes kept;docker compose downwithout-v)scripts/qa/README.md+make helpdocument toggle/targetChecklist (implementation comment)
make test-qa-fresh-volumes— passmake helplistsreset-qaandQA_FRESH_VOLUMES=1 make start-qastop-qa: no-v; volumescl8y-dex-terraclassic_{localterra,postgres}-dataremainQA_FRESH_VOLUMES=1/reset-qa: red banner;[stop-qa] Removing QA Docker volumes (-v); volumes removed then recreated onupmake stop-qaalone preserves volumes (tested between fresh/non-fresh stops)make qa-verify-deployfrom host: blocked here — TCP connects to127.0.0.1:26657but HTTP hangs;docker exec … curlinside the container succeeds (host port-proxy issue, not #202)make reset-qaafter fresh wipe: volume/banner/deploy path OK; first run hit **rm: cannot removeroot-ownedcw20_mintabletemp dir → fixed in956d469(scripts/deploy-dex-local.sh). Subsequentmake deploy-localon fresh chain completed; stampgit_sha=a07db41written.Follow-up for operator
@brouie — please confirm on the QA host:
make qa-verify-deployaftermake reset-qa(or fresh deploy)QA_SHARED_HOST=1 make reset-qaon shared-host layoutDocs / agents
Cross-links already present:
docs/qa-invariants.md,skills/AGENTS_QA_FRESH_VOLUMES.md,skills/AGENTS_QA_DEPLOY_VERIFY.md(#203).Status: #202 scope verified; leaving open until host RPC check and operator sign-off on the checklist above pass.
Verification complete (#202) —
main@85eb098Issue acceptance
make reset-qa/QA_FRESH_VOLUMES=1 make start-qamake start-qaunchanged (volumes preserved unless toggle)scripts/qa/README.md+make helpdocument toggle/targetFollow-up in this commit (host port hang)
Scripts/agents now use
docker execfallback when hostcurlto published127.0.0.1:26657/1317hangs (scripts/lib/localterra-host-curl.sh):make qa-verify-deploy— PASS (schema + stamp after stamp refresh)make wait-localterra/make test-localterra-host-curllcd-smart-query.shDocs:
docs/qa-invariants.md,docs/local-development.md,skills/AGENTS_QA_FRESH_VOLUMES.md,skills/AGENTS_QA_DEPLOY_VERIFY.md.Checklist
make test-qa-fresh-volumesmake test-qa-verify-deploy(includestest-localterra-host-curllive exec probe)make qa-verify-deploydown -v(prior session)reset-qaClosing #202 — fresh-volumes scope verified; host verification unblocked via exec fallback.
mentioned in issue #337