Skip to content

feat(ci): env-aware bulletin benchmarks and timeline dashboard#136

Merged
andrew-ifrita merged 6 commits into
mainfrom
spha/benchmark-env-and-size-chart
May 13, 2026
Merged

feat(ci): env-aware bulletin benchmarks and timeline dashboard#136
andrew-ifrita merged 6 commits into
mainfrom
spha/benchmark-env-and-size-chart

Conversation

@sphamjoli
Copy link
Copy Markdown
Member

Summary

  • Adds an env workflow input to deploy-sized-benchmark-entry.yml (default paseo-v2), forwarded to deploy.yml so sized benchmark runs target the active DotNS environment.
  • Sets register-base: true on the on-demand UI deploy and the per-PR UI benchmark deploy so the base domain is registered if it is not already owned.
  • Adds a per-size duration timeline to the bulletin benchmark dashboard using ECharts, with a Flatpickr custom-range picker alongside the 7d / 30d / All presets.

Test plan

  • Trigger an on-demand benchmark and confirm the UI deploy runs register-base: true for bulletin-benchmarks.dot on Paseo V2.
  • Open the dashboard, toggle sizes via the legend, switch between 7d / 30d / All, then pick a custom date range. Confirm the chart updates and the slider zooms within the selected window.
  • Resize the browser; the chart container scales without overflow.

Order

Fifth in the stack. Base is spha/cli-misc-cleanup (#135).

sphamjoli added 6 commits May 13, 2026 04:41
Adds a `--env` / `--network` selector that lets the CLI target
multiple DotNS deployments, with per-environment RPC and contract
addresses. Native token decimals and symbol are read from chain
spec metadata instead of being hard-coded.

* Adds `resolveDotnsEnvironment` and `getChainTokenInfo`
* Threads env into auth options, lookup, info, and context
* Adds per-env entries in `CONTRACTS` and shared constants
* Mirrors the env mapping in the UI network store
* Surfaces `--env` in deploy and bulletin GitHub Actions
Personhood status is no longer mutable from the CLI; the precompile is
now the source of truth for reads. This PR removes the `dotns pop set`
command, the `--status` flag on `dotns register`, and the helper
plumbing that supported them. `getUserProofOfPersonhoodStatus` now
calls the personhood precompile via the env-aware constants added in
the previous PR, and `finalizeRegularRegistration` threads native
token decimals through.

Depends on the multi-environment PR.
The `StoreFactory` on the latest deployment splits storage into a
protocol-managed `LabelStore` (deployed automatically by the
registrar) and a user-claimed `UserStore`. The CLI previously called
the removed `getDeployedStore` selector and tried to authorise the
store as a registrar writer, both of which now revert.

This PR refreshes `StoreFactory.json`, removes the obsolete
`displayDeployedStore` / `ensureStoreAuthorizations` helpers, and adds
`claimUserStoreIfNeeded` which reads `getUserStore` and claims it for
the signer if none exists. The two-step "Displaying store" +
"Ensuring store authorizations" stage in the register flow collapses
into a single "Claiming user store" step.

Depends on the previous two PRs (multi-env + setPop removal).
Reads the renamed `transactions` / `bytes` fields from
`AuthorizationExtent` (replacing the `_allowance` aliases that no
longer exist on the new chain types), updates the CLI README to
reflect the env-aware command surface, and tidies the UI doc pages,
modal, and IPFS helper.

Depends on the previous three PRs.
* Adds an `env` workflow input to `deploy-sized-benchmark-entry.yml`
  (default `paseo-v2`), forwarded to `deploy.yml` so sized benchmark
  runs target the active DotNS environment.
* Sets `register-base: true` on the on-demand UI deploy and the
  per-PR UI benchmark deploy so the base domain is registered if it
  is not already owned.
* Adds a per-size duration timeline to the bulletin benchmark
  dashboard using ECharts, with a Flatpickr custom-range picker
  alongside the existing 7d / 30d / All presets.

Depends on the docs / bulletin cleanup PR.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

CI Summary

Check Result
PR Title Passed
Labels Passed

Labels

pkg: cli, scope: bulletin, type: docs, type: test, dependencies, pkg: ui, scope: benchmark

Copy link
Copy Markdown
Collaborator

@andrew-ifrita andrew-ifrita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrew-ifrita andrew-ifrita merged commit fddb3b4 into main May 13, 2026
9 checks passed
@andrew-ifrita andrew-ifrita deleted the spha/benchmark-env-and-size-chart branch May 13, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants