Skip to content

speed up and instrument site deploys - #1

Draft
neekolas wants to merge 1 commit into
07-23-agent-sitesfrom
agent/speed-up-site-deploys
Draft

speed up and instrument site deploys#1
neekolas wants to merge 1 commit into
07-23-agent-sitesfrom
agent/speed-up-site-deploys

Conversation

@neekolas

@neekolas neekolas commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • remove the deploy script's redundant artifact-validation pass while retaining the validation already performed by the clean build
  • report timings for build, staging, commit, push, activation, and total deploy duration, plus activation cache/download/upload metrics
  • teach container agents to stop exact preview processes, avoid repeated checks and standalone pre-deploy builds, use pnpm run deploy, and preserve command failures
  • correct the starter template so newly created agents receive the same deployment command

Why

The observed agent workflow performed several production builds, left Vite and Wrangler previews competing for container resources, and used pnpm deploy, which invokes pnpm's unrelated workspace-deploy command. Existing telemetry exposed only a coarse terminal span around local build and Git work. These changes remove redundant work and make the remaining deploy phases directly visible without weakening build, Git, activation, or health-validation safeguards.

Validation

  • pnpm check
  • pnpm build
  • node --check scripts/deploy.mjs
  • parsed TEMPLATE.json with Node
  • git diff --check

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Note

Speed up and instrument site deploys with per-phase timing and activation metrics

  • Wraps build, staging, commit, push, and activation steps in a timed() helper in scripts/deploy.mjs that logs duration and errors to stderr for each phase
  • Logs activation metrics (reused artifact, downloaded files, uploaded blobs, validation duration) after a successful deploy, and prints total elapsed time
  • Skips commit creation with an explicit log when no changes are staged, instead of silently failing
  • Removes the separate validate-artifacts script invocation; validation is now folded into the build phase
  • Updates AGENTS.md and skills/manage-agent-site/SKILL.md to use pnpm run deploy (not pnpm deploy, which is pnpm's unrelated workspace-deploy command)

Macroscope summarized 64d9d35.

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