Add frontend lint to CI; indexer-first Anvil E2E; workflow defaults (#322) #470
No reviewers
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!470
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-322-ci-lint-indexer-e2e"
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?
Summary
Implements GitLab #322: add
npm run lintto the GitHubfrontend-testjob; extendscripts/e2e-anvil.shwith optional indexer-first mode (YIELDOMEGA_E2E_INDEXER=1); includeanvil-referrals.spec.tsin the default Anvil Playwright suite; document the GitLab (issues/MRs) vs GitHub Actions (merge gate) split.frontend-testnow runstypecheck→lint→npm test(21 ESLint warnings, 0 errors — warnings do not fail the job).e2e/anvil-arena-*.spec.ts+e2e/anvil-referrals.spec.ts; referrals spec updated for current UI copy (Claim cost,Register code).YIELDOMEGA_E2E_INDEXER=1starts native/Docker Postgres + indexer, inlinesVITE_INDEXER_URL, runse2e/anvil-indexer-first.spec.ts.ci.md,e2e-anvil.md, invariantsINV-CI-322-*/INV-ANVIL-E2E-322-*.Acceptance checklist
frontend-testruns lint.github/workflows/unit-tests.yml→npm run lintinfrontend-testjobcd frontend && npm run lintexit 0)docs/testing/e2e-anvil.md§301/#322;YIELDOMEGA_E2E_INDEXER=1 bash scripts/e2e-anvil.shanvil-referrals.spec.tsin default flowbash scripts/e2e-anvil.sh(7 specs incl. referrals)ci.mdexplains GitLab/GitHub splitdocs/testing/ci.md§322frontend-testjob on GitHubVerification for third parties
Static indexer-first policy (no browser RPC mirrors):
cd frontend && npm test -- indexerFirstDisplayBlockers
None for merge from local verification. GitHub
frontend-testlint step awaits remote CI run after push.changed the description
changed the description
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit
93c0cff974. Configure here.Indexer wait ignores compile time
Medium Severity
With
YIELDOMEGA_E2E_INDEXER=1, the script starts the indexer viacargo run --releaseand allows only 120 seconds for/v1/status, without a priorcargo build --release. On a fresh clone or cleantarget/, compilation can exceed that window and the run fails even when Postgres and deploy succeeded.Reviewed by Cursor Bugbot for commit
93c0cff974. Configure here.Security review — MR !470
Commit reviewed:
93c0cff9748434bc4f518cb404fbcd7def1f32bcScope:
.github/workflows/unit-tests.yml(frontend lint gate),scripts/e2e-anvil.sh(optional indexer-first E2E),frontend/e2e/anvil-indexer-first.spec.ts,frontend/e2e/anvil-referrals.spec.tsselector updates, docs/invariants (#322).Outcome:
FINDINGS: 0medium+Summary: Reviewed attacker-controlled input paths in the modified diff. The CI change adds
npm run lintto the existingfrontend-testjob (no new secrets, no runtime surface). The E2E indexer path is opt-in (YIELDOMEGA_E2E_INDEXER=1), binds the indexer to127.0.0.1, uses local Anvil RPC and dev Postgres helpers consistent with existing verify/stack scripts, and does not ship to production. Contract addresses flow throughjq --arg(parameterized) into a temp registry file. New Playwright specs are read-only UI assertions with env-gated skips. Referrals spec changes are selector/copy alignment only.Prior threads: No prior security-review comments on this MR.
Inline findings: None — no
block:securitylabel applied.added 1 commit
3615a4fe- fix: build indexer before E2E status wait (#322)Compare with previous version
changed the description
resolved all threads
approved this merge request
mentioned in commit
8dd5705214