Skip to content

test: explore adding bats e2e setup (#2865) - #6

Merged
islandbitcoin merged 0 commit into
lnflash:ibex-pluginfrom
GaloyMoney:main
Jul 5, 2023
Merged

islandbitcoin merged 0 commit into
lnflash:ibex-pluginfrom
GaloyMoney:main

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor
  • test: wip bats boilerplate

  • test: implement bats 'globals' test

  • test: add onchain-send gql mutations

  • test: login and cache as 'alice'

  • test: fetch alice btc-wallet-id

  • test: add incomplete onchain send step

  • chore: wrap staticAccountIds method in try-catch

  • chore: add admin accounts bootstrap to server start

  • test: refactor bats onchain test structure

  • test: set alice and bob user creds in helpers

  • test: extend wait for broadcast time

  • test: configure Makefile bats runners

  • test: fix background bats helper

  • test: fix naming

  • test(bats): do not eat exec_graphql output

  • test: add check_is_balanced check

  • test: refactor gql query variable construction

  • ci: add bats tests to github actions

  • ci: fix bats workflow


@islandbitcoin
islandbitcoin merged this pull request into lnflash:ibex-plugin Jul 5, 2023
islandbitcoin added a commit that referenced this pull request Apr 22, 2026
Applies Dread's decisions from the ENG orphan scan:

- EXECUTIVE-SUMMARY.md §4 — add ENG-38 (IBEX auth, May 31 2026,
  Ben, Urgent) as cross-cutting external dependency in blockers.
- EXECUTIVE-SUMMARY.md §11 — add risk #6: IBEX auth deprecation
  cuts the crypto rail if not migrated.
- OPERATIONS.md §3 — add IBEX migration as external deployment
  dependency; note fallback (flip bridge.enabled:false) if auth
  cut lands before ENG-38 ships.
- LINEAR-PROPOSAL.md §1.1 (Olaniran) — add ENG-297 (Phase 2
  Lightning parity) as post-launch wave; note ENG-38 external dep.
- LINEAR-PROPOSAL.md §1.2 (Ben) — add ENG-298 (Phase 3 schema
  cleanup) as post-launch wave; note ENG-38 external dep.
- LINEAR-PROPOSAL.md §1.4 (Dread) — add project-hygiene rows
  for ENG-16 cancel + ENG-297/298 project moves + ENG-38 cross-
  project visibility. Currency Precision intentionally left out.
- LINEAR-ORPHANS.md — reflect applied decisions: ENG-38 updated
  in Linear and kept outside project; ENG-297/298 moved into
  project; ENG-16 canceled; ENG-291 confirmed already completed
  and deployed (no longer a blocker); Currency Precision
  (ENG-318/319/326) intentionally out of this project plan;
  ENG-344 routing speculation removed.

Linear mutations executed out-of-band:
- ENG-297 → Bridge Wallet Integration project
- ENG-298 → Bridge Wallet Integration project
- ENG-16  → Canceled
- ENG-38 already at assignee=Ben, priority=Urgent, due=2026-05-31

Co-Authored-By: Claude Opus 4.6 <[email protected]>
islandbitcoin added a commit that referenced this pull request Apr 22, 2026
…arking, ticket boundaries, W5 graduated gate

Per Dread 2026-04-22 16:30 ET: the plan is good enough to move into
Linear, but a few red flags need fixing first so we don't encode
confusion into the Linear board.

Seven changes, all scoped to planning/LINEAR-PROPOSAL.md:

1. Stale owner refs fixed
   - TL;DR ENG-297 line: 'under Olaniran (W1/W2)' → 'under Ben
     (W1, post-15:36-ET IBEX-spine handoff)'.
   - Nick §1.3 ENG-275 mobile-half: 'Coordinate with Olaniran's
     server-side trigger' → 'Coordinate with Ben's server-side
     trigger (reassigned from Olaniran to Ben 2026-04-22 15:36 ET)'.

2. Ben flagged as schedule-risk concentration
   - Added [⚠ CRIT-PATH] markers on Ben's four W1/W2 rows in §1.2
     (ENG-296, ENG-297, NEW-OPTIN server half, NEW-ERPNEXT-LEDGER).
   - Added matching marker in §3 critical-path ASCII.
   - Added callout block in §1.2 preamble: ~14 owned tickets +
     ENG-38 makes Ben the project's single biggest schedule risk;
     Dread should monitor these four at standups; ENG-297 can split
     into send/receive as pre-baked scope relief.

3. Ticket-boundary discipline (new §5A)
   - NEW-1 / NEW-2 / NEW-6 (GraphQL-surface triad): scope, non-
     goals, dependencies, acceptance for each.
   - ENG-276 vs NEW-ERPNEXT-LEDGER (reconciliation vs audit):
     ENG-276 flags orphan gaps; NEW-ERPNEXT-LEDGER writes finance
     rows. Same event source, different sinks.
   - NEW-OPTIN vs NEW-CASHOUT-V1-WALLET (state vs routing):
     NEW-OPTIN = 'which wallet does the user have'; NEW-CASHOUT-V1-
     WALLET = 'which wallet does Cashout V1 debit'.
   - §5A.4 summary matrix: 'where each edge lives'.

4. ENG-273 structural decision (§6A)
   Keep ENG-273 as parent/meta in Linear. Create two sub-issues
   via Linear's native parent/child — NOT informal 273a/273b
   suffix tickets. The 'a/b' names in the doc are placeholders;
   real IDs get assigned at creation.

5. NEW-13 structural decision (§6A)
   Promote to sub-issue of ENG-284, not a fold-in acceptance
   checkbox. Schema constraint deserves own commit, test, and
   migration strategy.

6. §6 rewritten: required vs nice-if-available vs fallbacks
   - 6A required: right issues, right owners, right priority,
     right project, critical-path marker, block-on links, ENG-273
     parent/child, NEW-13 sub-issue, project description link.
   - 6B nice-if-available (permission/tooling gated): Doc-reference
     custom field, Wave custom field, area labels.
   - 6C fallbacks if 6B blocked: W*-prefix titles, 'Doc ref:'
     first-line convention, area prefix instead of labels.

7. §2 launch gate tightened — graduated
   W5 reframed. Must-haves (blocks ship):
     - ENG-274 (sandbox E2E)
     - ENG-273 child 1 (alerts to PagerDuty/Slack)
     - ENG-275 server-deposit trigger
   Strong should-haves (target for launch, not blockers):
     - ENG-273 child 2 (dashboards)
     - ENG-275 server-withdrawal trigger
     - ENG-275 mobile half
   Per Dread: 'we should be careful not to over-gate.'

History row added. All other docs untouched in this cascade.

Parent: a626c71 (cascade #6)
islandbitcoin added a commit that referenced this pull request Apr 22, 2026
…pendix

Per Dread "go!" 2026-04-22 18:11 ET. All ~50 mutations against the live
Linear workspace landed cleanly.

Linear side (no code in this commit — this is the doc follow-up):
- 16 new tickets ENG-345 → ENG-360 (NEW-OPTIN split server/mobile per
  Option B; NEW-1 split gql/svc per Option B; the rest 1:1 with the plan).
- 3 sub-issues: ENG-361 (alerts, parent ENG-273), ENG-362 (dashboards +
  ERPNext-audit panel, parent ENG-273), ENG-363 (NEW-13 schema constraint,
  parent ENG-284).
- 8 reassignments (ENG-273/274/298 → Dread; ENG-275/297 → Ben;
  ENG-276/285/286 → Olaniran).
- 4 priority bumps (ENG-275 + ENG-297 → Urgent; ENG-273 + ENG-274 → High).
- 11 description rewrites + 2 title rewrites (ENG-296 → "ETH-USDT Cash
  Wallet provisioning"; ENG-297 → "Lightning parity on ETH-USDT Cash Wallet
  (launch blocker)" — dropping the misleading [Phase 2] prefix).
- 12 blocks relations (plan's 11 + 1 for the NEW-OPTIN split correctness:
  ENG-345 blocks ENG-346).
- critical-path label on ENG-296, ENG-297, ENG-345, ENG-348.
- Project description + long-form content body updated.

Doc side (this commit):
- planning/LINEAR-PROPOSAL.md: status banner + ID translation table at
  the top mapping all NEW-* / ENG-273a/b placeholders → live Linear IDs
  (ENG-345 through ENG-363), with hyperlinks. Cascade #8 row appended to
  the Document History table with a full mutation-by-mutation summary.
- SESSION-CONTEXT-2026-04-22.md: cascade #6 row untouched; added cascade
  #7 (3d9e570, pre-Linear-mirror cleanup) + cascade #8 (this commit) rows;
  refreshed all four ticket-by-assignee lists with the live ENG-345…363
  IDs; noted Dread's manual-UI follow-up (cross-project blocks link to a
  Cashout V1 issue — skipped in the mirror per the 18:11 ET "skip"
  decision); retired the "file the NEW-* tickets" next-step.

Skipped per Dread defaults:
- Cross-project blocks link from ENG-296 to a Cashout V1 issue (no
  specific target picked — Dread does in UI).

Fallbacks used (6C):
- Linear's GraphQL API does not expose issue custom-field create/update
  for Doc-ref or Wave. Using the 6C convention: "Doc ref:" as first line
  of every ticket description + "[⚠ CRIT-PATH]" prefix + wave name in body.

Surprise win:
- All four area labels (area:bridge-svc / area:flash-app / area:ops /
  critical-path) already existed at workspace level. No permission issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant