Skip to content

Customer PR envs: stale cron, close reminder, #main links, comment hosts, label guard - #73

Merged
mindsdb-devops merged 8 commits into
mainfrom
feat/customer-pr-envs
Oct 30, 2026
Merged

mindsdb-devops merged 8 commits into
mainfrom
feat/customer-pr-envs

Conversation

@hamishfagg

@hamishfagg hamishfagg commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

The stale-deploy-label cron no longer strips the deploy label from PRs carrying a customer: label.
prune-pr-environments posts one reminder comment when a PR that carried both deploy and a customer: label closes. Every closed PR is scanned (paginated, about 52 pages per hourly run across the anchor repos), so a PR missed during an outage is still reminded once. The reminder points at argocd-envs filesBucket rather than naming the bucket.
pr-env-comment shows the branded host for customer envs, read from the event payload's labels.
argocd-pr-env-deploy accepts Deploys: repo#main: image tag production and git revision main (revision only for mindshub_services). Both #staging and #main links run the ECR existence check before pinning, so a repo without that tag (cowork has no production) fails fast instead of waiting out the timeout. Deploys: argocd-envs#staging|main moves the parent chart revision.
In argocd-pr-env-deploy, anton's ECR existence check uses the minds-anton-scratchpad repository.
argocd-pr-env-deploy refuses to deploy, with a PR comment, when the PR's customer: label differs from the hostBase the existing parent Application was created with.

🤖 Generated with Claude Code

hamishfagg and others added 5 commits October 30, 2026 14:42
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…abel guard

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@hamishfagg
hamishfagg requested a review from a team October 30, 2026 01:46
hamishfagg and others added 2 commits October 30, 2026 14:47
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
mindsdb-devops
mindsdb-devops previously approved these changes Oct 30, 2026
…els API call

- argocd-pr-env-deploy: `repo#staging`/`repo#main` run the ECR existence
  check before pinning (cowork publishes no `production` tag); revision-only
  repos get the chart branch alone for both forms; `argocd-envs#staging|main`
  moves the parent revision instead of failing as a missing PR; the PR fetch
  guard also covers a non-JSON body.
- pr-env-comment: customer host comes from the event payload's labels, not a
  second API call inside the redirect group.
- prune: scan every closed PR (--paginate) and remind only PRs that carried
  `deploy` as well as `customer:`; the reminder points at argocd-envs
  `filesBucket` instead of naming the bucket.
- tests: deploy-label filter, pagination flag, comments-read failure path.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mindsdb-devops
mindsdb-devops merged commit f2d1901 into main Oct 30, 2026
6 checks passed
@mindsdb-devops
mindsdb-devops deleted the feat/customer-pr-envs branch October 30, 2026 03:59
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.

2 participants