Skip to content

PR_26177_CHARLIE_030-r2-storage-health-expanded-validation#178

Merged
ToolboxAid merged 1 commit into
mainfrom
pr/26177-CHARLIE-030-r2-storage-health-expanded-validation
Jun 25, 2026
Merged

PR_26177_CHARLIE_030-r2-storage-health-expanded-validation#178
ToolboxAid merged 1 commit into
mainfrom
pr/26177-CHARLIE-030-r2-storage-health-expanded-validation

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

Summary

  • Expands System Health R2 validation into an API-owned current-environment validation run.
  • Adds duration, operation label, cleanup status, and permanent-object metadata for bucket/list/upload/read/delete diagnostics.
  • Updates Storage Health UI timing display without inline styles or page-local CSS.

Stack

  • Base: pr/26177-CHARLIE-029-system-health-postgres-metrics-panel

Validation

  • PASS: node --check src/dev-runtime/server/local-api-router.mjs
  • PASS: node --check assets/theme-v2/js/admin-system-health.js
  • PASS: node --check src/api/admin-system-health-api-client.js
  • PASS: node --test tests/api/admin-system-health/contract.test.mjs
  • PASS: node --test tests/dev-runtime/AdminHealthOperations.test.mjs
  • PASS: npx playwright test tests/playwright/tools/AdminHealthOperationsPage.spec.mjs --workers=1 --reporter=line
  • PASS: git diff --check

Artifact

  • tmp/PR_26177_CHARLIE_030-r2-storage-health-expanded-validation_delta.zip

Do not merge without Owner approval.

@ToolboxAid ToolboxAid force-pushed the pr/26177-CHARLIE-030-r2-storage-health-expanded-validation branch from 3acec8b to 8455fb6 Compare June 25, 2026 19:27
@ToolboxAid ToolboxAid marked this pull request as ready for review June 25, 2026 19:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8455fb6d2d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +4250 to +4252
for (const actionId of SYSTEM_HEALTH_STORAGE_ACTION_IDS) {
results.push(await this.runStorageConnectivityAction(actionId, { scope }));
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Normalize upload cleanup metadata after expanded delete

When a configured R2 bucket allows both the upload and delete steps to pass, this stores the standalone upload result unchanged in storageDiagnostics; that row still reports cleanupStatus: "requires-delete-action" and permanentObjectCreated: true even though the same expanded validation just deleted the object and the top-level result reports no permanent object. Consumers of the storage-check / expanded-validation contract will see contradictory cleanup metadata in successful real-storage runs, so the upload diagnostic should be reconciled after the delete result is known.

Useful? React with 👍 / 👎.

Comment on lines +4110 to +4112
if (actionId === SYSTEM_HEALTH_STORAGE_EXPANDED_VALIDATION_ACTION_ID) {
return this.runStorageExpandedValidation(options);
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restrict expanded validation to System Health scope

Because this special case sits in the shared connectivity helper, the existing /api/admin/infrastructure/storage-connectivity-action handler also accepts actionId: "storage-expanded-validation" even though it calls this helper without the System Health environment-folder scope. In that route, the new action runs the full list/upload/read/delete sequence against the default project-prefix target instead of the current environment folder, so a hidden action can mutate a broader prefix despite the expanded validation being scoped and tested as System Health current-environment-only.

Useful? React with 👍 / 👎.

@ToolboxAid ToolboxAid changed the base branch from pr/26177-CHARLIE-029-system-health-postgres-metrics-panel to main June 25, 2026 19:49
@ToolboxAid ToolboxAid merged commit 1fe8638 into main Jun 25, 2026
1 check 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