Skip to content

fix(k8s): run rag-ingest on Argo Workflows v4 - #7421

Merged
dan-petty merged 8 commits into
mainfrom
fix/5289-rag-ingest-runs-on-argo-v4
Nov 27, 2026
Merged

dan-petty merged 8 commits into
mainfrom
fix/5289-rag-ingest-runs-on-argo-v4

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The Argo Workflows controller v4.1.7 manages namespace devops. It refuses CronWorkflow rag-ingest, which sets the singular field schedule, so the RAG index gets no new content. It does not read the singular mutex of the WorkflowTemplate. The executor has no account with a token, and no rule retries exit 75.

The CronWorkflow now uses schedules. The WorkflowTemplate uses mutexes and executor.serviceAccountName: argo-executor, and the pod keeps the account devops-cli. The template ingest retries exit 75 only, at most three times. Policy argo-workflow-egress already lets the Workflow pods reach the API server.

The k8s row now runs argo lint --offline on each Argo object of the render. The lint fails on each field that the controller does not know, such as schedule, mutex and semaphore. CI copies argo from the devtools image. ADR 0008 gets a Status History line.

Closes #5289

Change: openspec/changes/archive/2026-11-27-5289-rag-ingest-runs-on-argo-v4/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 27, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local proof at head d1741b3f52db9d41daa3311495091adb4ac01e3f (branch current with origin/main at a25ccaf17).

Test first

  • The cases of tests/gate/k8s_checks/argo_workflows.py ran before their check logic existed: uv run devops ci --check --only k8s gave k8s: 193 cases, 7 failed, each with NameError: name 'argo_lint_problems' is not defined.
  • With the check and the manifests of the base: k8s: 193 cases, 1 failed. The failed case is check_each_argo_object_of_the_product_base_passes_the_offline_lint, with the lines in "rag-ingest" (CronWorkflow): strict decoding error: unknown field "spec.schedule" and in "rag-ingest" (WorkflowTemplate): strict decoding error: unknown field "spec.synchronization.mutex".
  • uv run devops ci fail-to-pass --base origin/main: k8s gate row: 1 of 193 cases failed on base, 0 of 193 on head (tests/gate/k8s_checks/argo_workflows.py). Exit 0.

Checks at head

  • uv run devops ci --check --only k8s,kube-linter,lint,format,typecheck,docs,openspec,test-tree,actionlint,zizmor,hadolint: each row passes.
  • uv run devops ci test tests/invariants/test_adr_records.py: 2 passed.
  • argo lint --offline (v4.1.7, the release of the controller) on the render of k8s/devops: no linting errors, in less than 0.1 s.

Why the check runs argo lint
A first commit of this branch walked schedule, mutex and semaphore in Python. argo lint --offline of the devtools image names the same fields, at the spec level, in a template (spec.templates[0].synchronization.mutex) and in the workflowSpec of a CronWorkflow, and each other field that the controller does not know. So the next commit replaced the rule with the open tool (AGENTS.md rule 3). Static Analysis and Fail-to-Pass Check copy argo with .github/actions/devtools-commands; the first run of each misses the cache and builds the devtools-bin stage.

Met elsewhere

  • The controller mode (--namespaced --managed-namespace devops, templateReferencing: Strict, the account argo-executor and its Role) is in the environment repository. Live on 2026-11-27: quay.io/argoproj/workflow-controller:v4.1.7 with --namespaced --managed-namespace devops, and kubectl auth can-i --as=system:serviceaccount:devops:argo-executor -n devops create workflowtaskresults.argoproj.io (and patch) answers yes.
  • The API server egress of the Workflow pods is policy argo-workflow-egress of fix(k8s): run infra-drift on Argo v4 with API server egress #7410. This pull request adds no policy.

Pending a person
After this pull request merges and releases, and Argo CD syncs Application devops, wait for the next run of cronwf/rag-ingest (every 3 minutes). Then run kubectl -n devops get workflow -l workflows.argoproj.io/cron-workflow=rag-ingest -o jsonpath='{.items[*].status.phase}'. It must print Succeeded. Before the sync, the controller log holds cron workflow must have at least one schedule for devops/rag-ingest in each round.

@dan-petty
dan-petty force-pushed the fix/5289-rag-ingest-runs-on-argo-v4 branch from d1741b3 to f930c1a Compare November 27, 2026 14:28
@dan-petty
dan-petty marked this pull request as ready for review November 27, 2026 14:38
@dan-petty
dan-petty merged commit 28036a8 into main Nov 27, 2026
40 checks passed
@dan-petty
dan-petty deleted the fix/5289-rag-ingest-runs-on-argo-v4 branch November 27, 2026 14:55
dan-petty-release Bot added a commit that referenced this pull request Nov 27, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.226.0](v0.225.1...v0.226.0)
(2026-11-27)


### Features

* **roadmap:** Add the OpenSpec row to the onboard command
([#7407](#7407))
([1d80f4d](1d80f4d))


### Bug Fixes

* **deps:** update dan-petty/devtools Docker tag to v1.3.3
([#7420](#7420))
([d6fc228](d6fc228))
* **k8s:** copy volume move data pod to pod, not via API server
([#7417](#7417))
([3a448e3](3a448e3))
* **k8s:** run rag-ingest on Argo Workflows v4
([#7421](#7421))
([28036a8](28036a8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): the Argo controller manages namespace devops for rag-ingest

1 participant