MentraOS / .github /DEVICE-ROUTINES.md
Anirudh1950's picture
Add files using upload-large-folder tool
e3d9fc7 verified
|
Raw History Blame Contribute Delete
3.77 kB

Device routine requests

Routine identities, names, supported platforms, resource requirements and execution policies come from Core's enrolled definitions. GitHub workflows maintain no routine registry.

Add the relevant routine:<id> labels to your PR. Each ID selects its declared supported platforms. The App-owned Routine tests check is queued against the PR's exact head while app builds or compatible lanes are pending. It freezes one routine revision for the coverage and each platform's exact PR artifact; build callbacks reconcile the same work rather than starting another original.

The GitHub check shows live phase, current test step, observed completed/total test steps and elapsed time. Open Details for each routine's lane, current activity, latest result link and authenticated Admin controls. A pending build, unavailable lane or stale observation is not a pass. No routine tests requested discloses that no coverage was selected; it does not mean a device test ran.

After a check finishes, its Re-run routines button verifies the latest unsuccessful selected members, or all members after a complete pass, preserving previous results and exact app/routine selections. To stop active work, open Details and use Cancel routine tests. Cancellation requests ordinary cleanup and cannot turn the check green; custody must settle before a rerun. A timeout remains visible even while containment continues.

Check an active request

  1. Open the Routine tests check on the PR's current head. Confirm the selected routines and follow their phase, current step and completed/total test steps. No routine tests requested means there are no selected routines.
  2. Open Details to inspect each member and its latest observation. A waiting or stale row needs its stated prerequisite; it does not establish that a routine is currently running.
  3. To stop active work, use authenticated Admin Cancel routine tests once. Follow the original attempt through cancellation and ordinary cleanup; an accepted cancellation is not a completed release.
  4. After the original attempt finishes and custody settles, open that completed check and use Re-run routines. Follow the linked attempt and retain the original results. Rerunning an Actions job or submitting another manual request does not perform this check action.

Select coverage and wait for its pending check before enabling auto-merge. Disable auto-merge before changing routine labels on an already-green head; label changes cannot atomically invalidate GitHub's existing commit check. PR routine check configuration describes App setup and required-check activation. Require the App-owned Routine tests context only after installed-App event and UI verification.

Coordinated publication displays generic available-test and exact-build result links. Publication callbacks reconcile selected PR coverage; publication alone starts no routine.

The internal catalog, dispatch and result endpoints require TEST_RUN_INGEST_TOKEN_DEV. Execution additionally requires Core's configured host/lane binding and a compatible enrolled definition. A queue acknowledgement is not a passing result.

Publish routine results reads Core's frozen framework report. It can run automatically after request/dispatch workflows or manually with the accepted request ID. PR comments bind to the original candidate head and retain one comment per request. Release Slack updates require a retained bot-owned post whose platform archive hash matches the tested build; full desired state is retained before chat.update. Missing results, incomplete uploads and evidence failures remain explicit.