Skip to content

[refactoring] Extract shared Go and Node CI toolchain setup into a shared component #77040

Closed as not planned

Description

@github-actions

Summary

Go and Node setup steps are copied across 16 workflow files (setup-go) and 19 files (setup-node). Each copy pins the same action versions and cache settings, so every version bump has to be repeated by hand.

Current usage

  • setup-go (go-version-file go.mod, cache true): tidy.md L55-66, hourly-ci-cleaner.md L90-106, avenger.md L96-112, go-logger.md L136-147, pr-finisher.md L97-104, auditor.md L515-522, shared/ci-data-analysis.md L70-77, shared/mcp-debug.md L134-139, plus others
  • setup-node (node-version "24", cache npm, cache-dependency-path actions/setup/js/package-lock.json): 19 files
  • Apt install of make, then make deps-dev and npm ci in actions/setup/js: repeated in tidy.md, avenger.md, hourly-ci-cleaner.md, go-logger.md

Proposed shared component

.github/workflows/shared/ci-toolchain-setup.md with the setup-go and setup-node steps. Put the make and deps install steps behind a separate component, or leave them local, since not every workflow needs them. Keep shared/mcp/serena-go.md separate: it runs in pre-agent-steps and configures GOROOT and gopls itself.

Estimated impact

  • About 16 workflows, roughly 10-12 lines each: about 160-200 lines removed
  • One place to update action versions (setup-go v7.0.0 and setup-node v7.1.0 are currently copied)

Migration plan

  1. Create shared/ci-toolchain-setup.md with the setup steps.
  2. Canary on tidy.md and go-logger.md. Run make recompile and confirm the lock diff only moves setup steps.
  3. Check step order: imported steps are appended in import order (pkg/parser/import_extract_steps.go). Confirm where they land relative to a workflow own steps.
  4. Replace the copied blocks in the remaining workflows.
  5. Skip upstream-managed workflows with a source: field; change those through gh aw update.

Example usage

imports:
  - uses: shared/ci-toolchain-setup.md

Generated by 🔍 Workflow Skill Extractor · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~1 AIC · ⊞ 3K · ◷

  • expires on Nov 13, 2026, 7:49 PM UTC-08:00

Activity

  1. github-actions commented on Nov 12, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 10.5K · ◷

  2. github-actions commented on Nov 14, 2026

    @github-actions
    ContributorAuthor

    This issue was automatically closed because it expired on 2026-11-14T03:49:29.681Z.

    Closed by Workflow

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions