You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the Trackio library validator (examples are only the workload; failures are interpreted as possible Trackio regressions):
@@ -17,13 +17,8 @@ Behavior:
17
17
- Runs a random subset of `examples/` scripts (default `--count 3`) to exercise logging, imports, and CLI
18
18
- Uses isolated `TRACKIO_DIR` per run (one shared DB when `--jobs 1`, separate sandboxes when `--jobs` > 1)
19
19
-**Sequential vs parallel:** default is **parallel** (`--jobs 3`). Use **`--jobs N`** to tune worker count; use `--jobs 1` for sequential mode. CLI checks and UI driving stay sequential afterward so ports and Playwright stay stable
20
-
- After successful example runs, validates **Trackio CLI** (`list` / `get` with JSON) and the **dashboard** via Playwright (tabs, checkboxes, screenshots)
20
+
- After successful example runs, validates **Trackio CLI** (`list` / `get` with JSON) and the **dashboard** via Playwright to ensure that the demos' UI/UX is as expected, as you check on/on different runs, navigate different tabs, and ensure the expected plots and data appear.
21
21
- Collects **Trackio-related** signals (tracebacks touching `trackio`, CLI failures, dashboard console/page issues, etc.), **deduplicates** them, and prints a **`=== Trackio library health report ===`** section at the end. Exit code is non-zero if anything was collected or an example run failed (unless you stop early without `--continue-on-failure`)
22
22
- Writes `summary.json` under the artifacts directory (includes `trackio_issues` and paths)
23
23
- For remote Spaces data, pass **`--space`** to CLI-backed checks as documented in the Trackio CLI
24
24
25
-
Optional:
26
-
27
-
-`--continue-on-failure` — run the remaining examples after a failure; CLI/UI run only for examples that completed successfully
28
-
-`--include-extra-deps-examples` — include examples that need optional packages (e.g. `datasets` / `transformers`); excluded by default so missing optional deps are not mistaken for Trackio bugs
29
-
-`--include-secret-env-examples` — include examples that need secrets in the environment (e.g. `SLACK_WEBHOOK_URL`); excluded by default
Copy file name to clipboardExpand all lines: trackio/__init__.py
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -390,6 +390,16 @@ def init(
390
390
"* Warning: settings is not used. Provided for compatibility with wandb.init(). Please create an issue at: https://github.com/gradio-app/trackio/issues if you need a specific feature implemented."
391
391
)
392
392
393
+
previous_run=context_vars.current_run.get()
394
+
ifprevious_runisnotNone:
395
+
try:
396
+
previous_run.finish()
397
+
exceptExceptionase:
398
+
_emit_nonfatal_warning(
399
+
f"trackio.init() could not finish the previous run '{previous_run.name}': {e}. Continuing with new run."
0 commit comments