Skip to content

ci(cd_pr): skip argocd_diff for PRs targeting development#19

Merged
kasper-keunen merged 1 commit into
masterfrom
fix/skip-argocd-diff-development
Apr 29, 2026
Merged

ci(cd_pr): skip argocd_diff for PRs targeting development#19
kasper-keunen merged 1 commit into
masterfrom
fix/skip-argocd-diff-development

Conversation

@kasper-keunen
Copy link
Copy Markdown
Contributor

Summary

The reusable `argocd_diff` job currently runs on PRs targeting `development`, `master`, and `production`. For the development base, it calls the testing ArgoCD at `https://argocd.euc1.t.get-protocol.dev\` — which is currently down (HTTP 503 from the browser, HTML returned instead of JSON in the action).

This breaks every PR opened against `development` across every repo consuming this reusable workflow:

Example failure: `FetchError: invalid json response body ... reason: Unexpected token '<', "` — the standard signature of an ingress returning an error page in place of API JSON.

Change

Remove `development` from the job's `if:` condition. The job still runs on PRs targeting `master` (staging ArgoCD) and `production` (production ArgoCD, verified healthy via working `deploy-argocd` jobs).

A comment is added in-place explaining why and how to revert when the testing cluster is restored.

What this does NOT change

  • Production deploys: `push_workflow / deploy-argocd` continues to gate prod and uses the healthy production ArgoCD.
  • Master/staging diff visibility: still runs.
  • The bash branch handling `GIT_REF == "development"` inside the job is left intact for easy revert.

Test plan

  • After merge, re-run CI on the open dev-base PRs above; the `argocd_diff` check should report as skipped instead of failed.
  • Verify a master- or production-base PR still triggers `argocd_diff` (no behavior change there).

Follow-up (not in scope of this PR)

The testing ArgoCD being down is a separate infrastructure issue worth investigating — owners of `deployments` / `k8seks` / `terraform` would know whether it was decommissioned intentionally or is broken. When restored, revert the if condition per the inline comment.

🤖 Generated with Claude Code

The testing ArgoCD instance at https://argocd.euc1.t.get-protocol.dev
is currently unreachable (HTTP 503). The diff job calls /api/v1/applications
on that host, gets HTML back instead of JSON, and fails. This breaks every
PR opened against development across every repo using this reusable
workflow — message-service, entrails, and others.

Skipping the job for development base unblocks those PRs without losing
visibility on master/production diffs (production ArgoCD is healthy).

When the testing cluster is restored, revert the if condition.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@kasper-keunen kasper-keunen merged commit b75857d into master Apr 29, 2026
1 of 2 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