Skip to content

fix(arc): stop the registry cache install loop resolving the container resources setting - #72

Merged
Mearman merged 1 commit into
mainfrom
fix/registry-cache-check-mode
Oct 9, 2026
Merged

Mearman merged 1 commit into
mainfrom
fix/registry-cache-check-mode

Conversation

@Mearman

@Mearman Mearman commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Running the github_runner_arc role with the registry cache off (the default) fails at Registry cache: install the cache with "The loop value must resolve to a 'list', not 'dict'". It is not specific to --check; a normal run fails the same way.

Ansible templates a task's loop before it evaluates when, so the block's when: github_runner_arc_registry_cache_enabled | bool does not stop the loop being resolved. The loop was github_runner_arc_registry_cache_resources, which render_registry_cache.yml only sets as a fact when the cache is on. With it off the name is the role default, the cache containers' requests and limits, which is a dict. The name was used for both things.

The rendered manifests now live in github_runner_arc_registry_cache_manifests, so the loop can never resolve to the container setting; the documented github_runner_arc_registry_cache_resources input is unchanged.

Tested by running install_registry_cache.yml through a new tests/registry_cache/install.yml against a stand-in kubernetes.core collection that records module calls, with the cache off and on, in a normal run and with --check. Off asserts the removal calls and that nothing is applied; on asserts the five rendered resources are applied in order. Both off cases fail on main with the error above and pass with the change. The unit suite and ansible-lint --profile production pass locally. The kind integration workflow was not run locally.

This changes no live fleet; a consumer picks it up after a release and a re-pin.

Refs #71

…r resources setting

Ansible templates a task's loop before it evaluates the enclosing block's when, so with the cache
off the install task still resolved its loop. The loop named
github_runner_arc_registry_cache_resources, which the render task only sets as a fact when the
cache is on and which otherwise is the role default for the cache containers' requests and
limits: a dict, so the run failed with "The loop value must resolve to a list, not dict".

The rendered manifests now have their own variable, github_runner_arc_registry_cache_manifests,
and the container setting keeps its name. The install tasks are tested against a stand-in for
kubernetes.core with the cache off and on, in a normal run and in check mode.

Refs #71
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-09T05:36:35.506513Z 23c7d49 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman

Mearman commented Oct 9, 2026

Copy link
Copy Markdown
Member Author

@codex security review

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 23c7d494e4

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@Mearman
Mearman merged commit eb1c865 into main Oct 9, 2026
15 checks passed
@Mearman
Mearman deleted the fix/registry-cache-check-mode branch October 9, 2026 05:41
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.26.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant