Skip to content

fix(self-hosting): let sim-setup update adopt a manually installed compose file, and correct the last doc gaps - #10786

Merged
waleedlatif1 merged 6 commits into
stagingfrom
waleed/selfhost-lastpass-fixes
Dec 5, 2026
Merged

waleedlatif1 merged 6 commits into
stagingfrom
waleed/selfhost-lastpass-fixes

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Dec 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • npx sim-setup update now works on manually installed Compose stacks: a compose file with no sim-setup record (downloaded per the docs) is backed up to docker-compose.prod.yml.bak-<timestamp> and replaced after confirmation (--yes when non-interactive). A managed file you edited is still refused, with a clearer message. Before this, every manual install upgrading past a compose change hit "has local changes"
  • sim-setup --mode k8s sets the app, realtime and migrations image tags (the release's current tags, else latest) instead of falling back to the checkout's stale appVersion
  • Chart 1.22.3: NOTES always print helm test … --timeout 10m (the self-check can outlast helm's 5m default)
  • Docs: manual Compose upgrade path, External Secrets moves NEXT_PUBLIC_APP_URL to envDefaults, helm test --timeout 10m everywhere (and leads the sandbox verify steps), vX.Y.Z vs helm-chart-* tags, uploads volume backup/restore with the real volume name, sim-dev release wording, Caddy/Nginx proxy configs, pin SIM_CRON_VERSION with an older SIM_VERSION, and the stale uploads note in the sim-setup README
  • From a real EKS Auto Mode + Nitro run (published 1.21.0 → staging upgrade succeeded; full self-check passed when warm): the self-check starts its two sandboxes together with a 270 s budget (route 300 s, chart 330 s) so a cold Nitro cluster fits; the pre-pull DaemonSet is scheduled only where the RuntimeClass runs (it left Pending pods and broke helm --wait); self-check failures log at error so they show at the default log level; sandbox and test pods carry karpenter.sh/do-not-disrupt; EKS docs cover the missing default StorageClass and warm capacity
  • sim-setup --mode k8s uses pullPolicy: Always when it falls back to latest; generated table cells escape backslashes before pipes (CodeQL)
  • Intentional docs code-example changes (new upgrade/backup/helm test snippets) are recorded in the compatibility baseline

Type of Change

  • Bug fix

Testing

  • sim-setup: 151 tests pass (new: adopt unmanaged file with --yes, refuse without a terminal, decline leaves the file, refuse edited managed file, identical no-op — red against the old code); type-check, biome
  • helm lint, helm-unittest 325/325 (NOTES timeout test red before); check:self-hosting-docs, check:site-urls, content:verify-compatibility, images:check

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 5, 2026 11:28am UTC

Request Review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 18 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-setup/src/modes/k8s.ts Resolved
@waleedlatif1
waleedlatif1 force-pushed the waleed/selfhost-lastpass-fixes branch from 45fa90f to b85a84c Compare December 5, 2026 11:00
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 36 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread helm/sim/values.schema.json Resolved
Comment thread packages/sim-setup/src/modes/k8s.ts Resolved
Comment thread helm/sim/templates/_helpers.tpl Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 37 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-setup/src/modes/k8s.ts Resolved
Comment thread packages/sim-setup/src/modes/k8s.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 37 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 90fb33c into staging Dec 5, 2026
98 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 3068b57a Deployed Dec 5, 2026 by vercel[bot]
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