Skip to content

ci: add pr-and-push workflow#4

Merged
awsarron merged 3 commits into
strands-labs:mainfrom
cagataycali:add-pr-and-push-workflow
Jun 7, 2026
Merged

ci: add pr-and-push workflow#4
awsarron merged 3 commits into
strands-labs:mainfrom
cagataycali:add-pr-and-push-workflow

Conversation

@cagataycali

Copy link
Copy Markdown
Member

Adds the pr-and-push.yml workflow (ported from strands-labs/robots).

What

  • Triggers the existing reusable test-lint.yml workflow on:
    • Pull requests to main/dev (opened, synchronize, reopened, ready_for_review, review events)
    • Pushes to main/dev
  • Adds concurrency control to cancel in-progress runs for the same PR/ref.

Why

Provides consistent CI gating on PRs and pushes, matching the convention used in the robots repo.

Notes

  • Compatible with the existing test-lint.yml which already declares workflow_call with a required ref input.
  • Passes github.event.pull_request.head.sha || github.sha as the checkout ref.

Adds reusable workflow trigger that calls test-lint.yml on PRs and pushes
to main/dev branches, with concurrency control to cancel in-progress runs.
Package was renamed context_alchemy -> harness_optimizer but this test
still referenced the old module name, causing ModuleNotFoundError during
collection. Aligns with all other test modules.
MultiAgentOptimizer referenced multi_agent/{system_prompt,
task_message_system_prompt,rollout_analyzer}.jinja via load_builtin_template
but the files were never committed, causing FileNotFoundError in tests.

Adds the three templates, modeled on the contrastive_reflection variants and
adapted for the swarm-based orchestration workflow (sub-agent rollout analysis,
contrastive insight aggregation, original-prompt preservation).
@awsarron awsarron merged commit 0085afd into strands-labs:main Jun 7, 2026
1 check passed
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