Skip to content

Add QA Smoke Kit sample to com.beamable#4719

Open
allister-beamable wants to merge 1 commit into
mainfrom
qa-smoke-kit-sample
Open

Add QA Smoke Kit sample to com.beamable#4719
allister-beamable wants to merge 1 commit into
mainfrom
qa-smoke-kit-sample

Conversation

@allister-beamable

Copy link
Copy Markdown
Contributor

Adds an importable internal smoke-test harness as a new sample in com.beamable. It is co-located with the SDK so it tracks API changes: when the SDK changes, the harness imported alongside it stays in sync. It installs in one click via the Beam Samples window.

What's included

  • Three scripts under Samples/QASmokeKit/:
    • SmokeRunner.cs — happy-path readiness harness; awaits BeamContext.Default.OnReady and Accounts.OnReady, logs [SMOKE] PASS/FAIL to the Editor log.
    • SmokeRetryWatcher.cs — passive watcher that flags an IndexOutOfRangeException / overflow during BeamContext init (retry-buffer fault check).
    • SmokeReferenceContent.cs — a smoke_ref content type giving the MustReferenceContent picker a top-level test surface.
  • Pre-wired scene QASmokeKit.unity — one GameObject named "QA Smoke Runner" with SmokeRunner attached; open and press Play.
  • README — generic smoke-test procedure: how to use each script, fault-injection recipe A (Accounts.OnReady stale-token resilience), recipe B (BeamContext retry-buffer), the MustReferenceContent picker test, and how to read [SMOKE] results from the Editor log.
  • Registration — one entry appended to the samples array in package.json; docsUrl omitted (optional, avoids a dead link) per LibraryService.cs. Changelog entry added under [5.1.1] > Added.

Verification notes

  • jq parses package.json; all six new asset GUIDs are unique; the scene's MonoBehaviour m_Script references SmokeRunner.cs.meta's GUID.
  • The scene and .meta files are hand-authored to match the LightBeam samples' format. Worth opening once in Unity during review to confirm the scene loads cleanly and the sample appears/imports correctly from the Beam Samples window.

🤖 Generated with Claude Code

Ship an importable internal smoke-test harness inside the SDK package so it stays
in sync with the code it tests and installs in one click via the Beam Samples window.

Includes SmokeRunner (BeamContext / Accounts.OnReady readiness), SmokeRetryWatcher
(retry-buffer overflow watcher), SmokeReferenceContent (smoke_ref MustReferenceContent
test type), a pre-wired QASmokeKit scene, a generic README procedure, the package.json
samples registration, and a changelog entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Lightbeam link

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