DevOps: declare local TA/DOUB/… in yieldomega_anvil_deploy_dev (caller-scope leak) #289
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega#289
Loading…
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?
Context
Follow-up from #281 QA (#43):
yieldomega_anvil_deploy_devinscripts/lib/anvil_deploy_dev.shassignsTA,PV,AV,RR,DOUB,CRED, and Kumbaya vars withoutlocal, so they overwrite the caller's shell scope.That caused a false failure in
scripts/verify-evm-dev-wallet-seed-anvil.shon the re-deploy check (DOUB2 != DOUBcompared equal after the second deploy overwroteDOUB). MR !413 works around this withDOUB_FIRST; the deploy helper should not surprise callers.Problem
verify-evm-dev-wallet-seed-anvil.shDOUB/CREDDOUB=before deployHeader comment says "After success, sets: TA, PV, …" — many callers depend on those exports (
e2e-anvil.sh,anvil-export-bot-env.sh, verify-* scripts).Recommended approach
localall assignments insideyieldomega_anvil_deploy_dev(and nested helpers if any leak).yieldomega_anvil_deploy_devprintsexport TA=…to a file, oryieldomega_read_deploy_addrs_from_log DEPLOY_LOGdocumented function, oreval "$(yieldomega_deploy_env_from_log …)".e2e-anvil.sh— already uses function-assignedTAafter single deploy; re-parse fromDEPLOY_LOGor capture exports intentionally._yieldomega_extract_addr_from_logon their ownDEPLOY_LOG(pattern in !413).docs/testing/e2e-anvil.mdor script header: do not rely on caller-scopeDOUBacross multiple deploy calls.Acceptance criteria
yieldomega_anvil_deploy_devtwice in one shell does not change caller variables unless the caller explicitly sources/exports deploy env.bash scripts/e2e-anvil.sh— PASS (6 Playwright specs).bash scripts/verify-evm-dev-wallet-seed-anvil.sh— PASS (can simplifyDOUB_FIRSTworkaround once deploy helper is fixed).yieldomega_anvil_deploy_devupdated; no regressions on Anvil verify scripts listed inAGENTS.md.Related
mentioned in commit
823023f105mentioned in merge request !419
mentioned in commit
0b2cbc0220mentioned in merge request !420
mentioned in merge request !421
mentioned in commit
93c0de8a5c