Skip to content

fix: inline python-ci-setup composite action for external repo compat…#49

Merged
stranske merged 9 commits intomainfrom
codex/integration-consumer-workflow
Dec 22, 2025
Merged

fix: inline python-ci-setup composite action for external repo compat…#49
stranske merged 9 commits intomainfrom
codex/integration-consumer-workflow

Conversation

@stranske
Copy link
Copy Markdown
Owner

…ibility

Composite actions with relative paths (./.github/actions/...) don't work when external repos call reusable workflows - the path resolves to the caller's repo, not the Workflows repo.

This change inlines the python-ci-setup action steps directly into reusable-10-ci-python.yml at all 4 usage locations:

  • lint-format job
  • lint-ruff job
  • typecheck-mypy job
  • tests job

Each inlined block includes:

  • actions/setup-python@v5
  • actions/setup-node@v4
  • uv installation
  • uv cache (conditional)
  • dependency installation script

External consumer repos can now call the reusable workflow without needing any local composite actions.

…ibility

Composite actions with relative paths (./.github/actions/...) don't work
when external repos call reusable workflows - the path resolves to the
caller's repo, not the Workflows repo.

This change inlines the python-ci-setup action steps directly into
reusable-10-ci-python.yml at all 4 usage locations:
- lint-format job
- lint-ruff job
- typecheck-mypy job
- tests job

Each inlined block includes:
- actions/setup-python@v5
- actions/setup-node@v4
- uv installation
- uv cache (conditional)
- dependency installation script

External consumer repos can now call the reusable workflow without
needing any local composite actions.
Copilot AI review requested due to automatic review settings December 22, 2025 04:50
@stranske
Copy link
Copy Markdown
Owner Author

⚠️ Action Required: Unable to determine source issue for PR #49. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 22, 2025

Automated Status Summary

Head SHA: 0ce6694
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 77.97%
Baseline 0.00%
Delta +77.97%
Minimum 70.00%
Status ✅ Pass

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses an external repository compatibility issue by inlining the .github/actions/python-ci-setup composite action directly into the reusable-10-ci-python.yml workflow. Composite actions with relative paths don't work when called from external repositories, as the path resolves to the caller's repository rather than the Workflows repository.

Key Changes:

  • Removed 4 calls to the python-ci-setup composite action across different jobs
  • Inlined the complete setup logic (Python, Node.js, uv installation, caching, and dependency management) at each location
  • Adapted environment variable handling to work directly in workflow steps rather than through composite action inputs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

github-actions bot and others added 7 commits December 22, 2025 04:56
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@stranske stranske merged commit 07c3a6c into main Dec 22, 2025
36 checks passed
stranske pushed a commit that referenced this pull request Dec 27, 2025
When copying agents-63-issue-intake.yml from Workflows to consumer repos,
it contains a LOCAL reference to reusable-agents-issue-bridge.yml that
doesn't exist in consumer repos and will cause issue intake to fail.

Added:
1. Critical warning in section 4.1b with:
   - Explanation of the problem
   - Before/after code showing what to change
   - Alternative: copy from Template instead (already correct)

2. New item #5 in Common Mistakes section

This was discovered when Manager-Database issue #49 and trip-planner
issue intake failed after copying agents-63-issue-intake.yml directly
from Workflows without fixing the local reference.
stranske added a commit that referenced this pull request Dec 27, 2025
When copying agents-63-issue-intake.yml from Workflows to consumer repos,
it contains a LOCAL reference to reusable-agents-issue-bridge.yml that
doesn't exist in consumer repos and will cause issue intake to fail.

Added:
1. Critical warning in section 4.1b with:
   - Explanation of the problem
   - Before/after code showing what to change
   - Alternative: copy from Template instead (already correct)

2. New item #5 in Common Mistakes section

This was discovered when Manager-Database issue #49 and trip-planner
issue intake failed after copying agents-63-issue-intake.yml directly
from Workflows without fixing the local reference.

Co-authored-by: GitHub Copilot <copilot@github.com>
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.

2 participants