Skip to content

fix: problems found by an end-to-end test against the NodeRings API - #18

Merged
shaygun merged 1 commit into
mainfrom
fix/prod-e2e-findings
Nov 29, 2026
Merged

shaygun merged 1 commit into
mainfrom
fix/prod-e2e-findings

Conversation

@shaygun

@shaygun shaygun commented Nov 29, 2026

Copy link
Copy Markdown
Member

Ran 0.1.1 from npm in a new @backstage/create-app (Backstage 1.57) app against the production NodeRings API, then retested the fixes against production from this branch.

What was tested against production

Area Result
Install per README Failed until packages are pre-approved (create-app sets npmMinimalAgeGate: 3d) → README note
/health, entity list by tag and by ids, one VM, snapshots, 400/404/401 paths, ownership check OK
DNS records route 400 from the API (page size 500 > 100) → fixed
Power stop / start / restart, refusal for a VM of another entity, audit events OK
UI: card, tab, snapshot panel, confirm dialog, stop from the UI OK, but long tags pushed the power buttons off-screen → fixed
noderings:vm:create dry run and real order (SC-GC-1C-1G-20, Ashburn, 30 s to running), catalog-info.yaml OK
Plan allowlist, template hostname pattern OK
noderings:vm:delete: wrong hostname, VM without backstage- tag, real delete OK
noderings:dns:record:upsert Rerun with same values failed (API quotes TXT values); FQDN name bypassed allowOverwrite → fixed

The test server, its snapshot and all test DNS records were deleted afterwards.

Changes

  • Backend: DNS records are listed 100 per page. The fake API used by the unit tests now rejects pageSize > 100 like the real one, and a new test pages through 150 records (it fails with the old value).
  • Scaffolder noderings:dns:record:upsert: reads the zone name and works with the zone-relative name (www, @, www.example.com, www.example.com. all work); values are compared normalised per type (TXT quotes, CNAME/MX final dot and case, IPv6 compression). Output name is now the zone-relative name.
  • Frontend: tags moved from a column into the row's detail panel (with snapshots); the card shows hostname, status, location and IPv4; tag chips are cut with an ellipsis and a tooltip.
  • Backend: snapshots show pending / processing / failed until the operation has completed.
  • Backend: unauthenticated /health returns only { ok }.
  • README and scaffolder README; screenshots retaken.

Checks run locally: tsc, lint:all, prettier --check, repo fix --publish --check, test:all (117 passed).

Tested 0.1.1 from npm in a new create-app 1.57 app against production:
entity routes, power actions, snapshots, the UI, and the scaffolder
actions with a real server and a real DNS zone.

- backend: list DNS records 100 per page; the API rejects more, so the
  DNS table on the entity tab always failed with 400. The fake API in
  the tests now enforces the same limit.
- scaffolder dns:record:upsert: look up and write the zone-relative
  name. A full name (www.example.com.) missed the existing record set,
  so allowOverwrite was bypassed. Compare values the way the API stores
  them (quoted TXT, CNAME/MX with a final dot, compressed IPv6), so a
  rerun with the same values no longer fails with a conflict.
- frontend: long tags (backstage-<namespace>-<kind>-<name>) pushed the
  power buttons out of view. Tags move to the row's detail panel, the
  card drops the tag and provider columns, and tags are cut with an
  ellipsis and a tooltip.
- backend: show a snapshot's operation status (pending, processing,
  failed) until it has completed, instead of "active".
- backend: the unauthenticated /health route no longer returns the
  NodeRings organization name.
- README: apps from create-app 0.9 quarantine packages for three days;
  explain npmPreapprovedPackages.
- docs screenshots retaken with the new layout.

Signed-off-by: Shaygun <17057583+shaygun@users.noreply.github.com>
@shaygun
shaygun merged commit f8559ce into main Nov 29, 2026
7 checks passed
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