Skip to content

feat(R-CMD-check): per-leg extra-env via extra-config - #27

Merged
eliotmcintire merged 1 commit into
mainfrom
feat/per-leg-extra-env
Aug 31, 2026
Merged

eliotmcintire merged 1 commit into
mainfrom
feat/per-leg-extra-env

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

Last blocker for migrating every remaining package onto this workflow.

Why

extra-env from #26 is static, so it cannot express env that varies across the matrix. Require gates its slow tests on exactly one leg — R_REQUIRE_RUN_LONG_CI, driven by a runLong flag — specifically so its 11-job matrix "doesn't camp on GHA's 20-job concurrency cap" (its own comment). That made Require the one repo in the org that could not migrate at all.

What

An extra-config leg may now carry its own extra-env:

extra-config: |
  [{"config":{"os":"ubuntu-latest","r":"release",
              "extra-env":"R_REQUIRE_RUN_LONG_CI=true"}}]

Applied after the workflow-level block, so a leg can override it. Generic rather than Require-shaped — any caller can vary env per leg.

Verified the parser locally for both the combined case and the common MATRIX_ENV empty case.

Context

With this, every one of the 17 repos still on a hand-rolled R-CMD-check.yaml is expressible as a thin caller. Migration PRs follow.

🤖 Generated with Claude Code

https://claude.ai/code/session_012DVjmY3im9Xak7tXLSMGCa

The workflow-level extra-env from #26 is static, so it cannot express env that
varies across the matrix. Require gates its slow tests on exactly one leg
(R_REQUIRE_RUN_LONG_CI, driven by a runLong flag) specifically so its 11-job
matrix does not camp on GHA's concurrency cap. That made Require the one repo
that could not migrate onto this workflow at all.

An extra-config leg may now carry its own `extra-env`, applied after the
workflow-level block so a leg can override it. Generic rather than
Require-shaped: any caller can vary env per leg.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012DVjmY3im9Xak7tXLSMGCa
This was referenced Aug 31, 2026
@eliotmcintire
eliotmcintire merged commit 3127e9a into main Aug 31, 2026
1 check passed
@eliotmcintire
eliotmcintire deleted the feat/per-leg-extra-env branch September 9, 2026 21:30
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