Skip to content

test(onboard): cover live FSM slice boundaries#4531

Merged
cv merged 103 commits into
mainfrom
stack/onboard-fsm-live-slice-boundary-tests
Jun 10, 2026
Merged

test(onboard): cover live FSM slice boundaries#4531
cv merged 103 commits into
mainfrom
stack/onboard-fsm-live-slice-boundary-tests

Conversation

@cv

@cv cv commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add subprocess coverage that proves fresh onboarding enters each live FSM slice boundary. The tests patch the slice helpers before loading onboard, then verify initial, core, and final slices are reached in order.

Changes

  • Add test/onboard-fsm-live-slices.test.ts.
  • Cover initial slice entry on fresh onboarding.
  • Cover core slice entry after the initial slice reaches provider selection.
  • Cover final slice entry after the core slice reaches the branch state.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Verification

  • npx prek run --all-files passes
  • npm test passes
  • Tests added or updated for new or changed behavior
  • No secrets, API keys, or credentials committed
  • Docs updated for user-facing behavior changes
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Carlos Villela cvillela@nvidia.com

Summary by CodeRabbit

  • Tests
    • Added comprehensive end-to-end test suite validating onboard FSM slice boundary behavior by running compiled artifacts in isolated Node processes, checking build outputs, and verifying handlers are invoked in the correct order for fresh and resumed scenarios.

cv added 30 commits May 27, 2026 15:18
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Jun 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

cv added 12 commits June 9, 2026 13:39
…al-sequence-slice

# Conflicts:
#	src/lib/onboard/machine/flow-slices.test.ts
#	src/lib/onboard/machine/flow-slices.ts
…-slice' into stack/onboard-fsm-use-initial-slice
…per' into stack/onboard-fsm-live-slice-boundary-tests
…per' into stack/onboard-fsm-live-slice-boundary-tests
@cv cv added v0.0.63 Release target and removed v0.0.62 Release target labels Jun 10, 2026
Base automatically changed from stack/onboard-fsm-live-slice-helper to main June 10, 2026 03:12
# Conflicts:
#	src/lib/onboard.ts
#	src/lib/onboard/machine/core-flow-phases.test.ts
#	src/lib/onboard/machine/core-flow-phases.ts
#	src/lib/onboard/machine/final-flow-phases.test.ts
#	src/lib/onboard/machine/final-flow-phases.ts
#	src/lib/onboard/machine/initial-flow-phases.test.ts
#	src/lib/onboard/machine/initial-flow-phases.ts
#	src/lib/onboard/machine/live-flow-slice.test.ts
#	src/lib/onboard/machine/live-flow-slice.ts
@cv cv marked this pull request as ready for review June 10, 2026 04:49
@cv cv merged commit 1c77b74 into main Jun 10, 2026
30 checks passed
@cv cv deleted the stack/onboard-fsm-live-slice-boundary-tests branch June 10, 2026 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: onboarding Onboarding FSM, provider setup, sandbox launch, or first-run flow chore Build, CI, dependency, or tooling maintenance v0.0.63 Release target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants