Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/test-copilot-restore-memory-custom-job.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
on:
workflow_dispatch:

permissions:
issues: read
pull-requests: read
actions: read
contents: read
discussions: read
copilot-requests: write

engine:
id: copilot

jobs:
setup:
restore-memory:
cache-memory: true
steps:
- name: Verify cache-memory restore step was injected
run: echo "cache-memory restore step injection verified"
agent:
needs: [setup]

safe-outputs:
create-issue:
title-prefix: "[copilot-test] "
labels: [copilot, automation]
samples:
- title: "restore-memory custom job smoke test"
body: "The restore-memory step was injected into the custom setup job and the agent job ran after it."
---

Create an issue in repository ${{ github.repository }} titled "restore-memory custom job smoke test".

The body should say: "The restore-memory step was injected into the custom setup job and the agent job ran after it."
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Tracking the full matrix of [safe outputs](https://github.com/github/gh-aw/blob/
- [x] frontmatter `skills:` install + invocation — test-copilot-skills-frontmatter
- [x] `custom safe output jobs` — test-copilot-custom-safe-outputs
- [x] `gh-steps` — test-copilot-gh-steps
- [ ] `restore-memory` in custom job (`jobs.<id>.restore-memory`) — test-copilot-restore-memory-custom-job
- [x] `add-comment` — test-copilot-add-comment
- [x] `add-comment` (discussions) — test-copilot-add-discussion-comment
- [x] `add-labels` — test-copilot-add-labels
Expand Down
5 changes: 3 additions & 2 deletions e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ get_all_tests() {
echo "test-codex-custom-safe-outputs"
echo "test-copilot-custom-safe-outputs"
echo "test-copilot-gh-steps"
echo "test-copilot-restore-memory-custom-job"
# Issue-triggered tests
echo "test-claude-add-comment"
echo "test-claude-add-labels"
Expand Down Expand Up @@ -3428,7 +3429,7 @@ run_single_test() {
fi
;;
# Workflow dispatch tests - triggered with gh aw run
*"create-issue"|*"create-discussion"|*"create-pull-request"|*"create-two-pull-requests"|*"code-scanning-alert"|*"create-check-run"|*"mcp"*|*"safe-jobs"|*"gh-steps"|*"custom-safe-outputs"|*"noop"|*"report-incomplete"|*"assign-to-agent"|*"set-issue-field"|*"issue-intents"|*"skills-frontmatter")
*"create-issue"|*"create-discussion"|*"create-pull-request"|*"create-two-pull-requests"|*"code-scanning-alert"|*"create-check-run"|*"mcp"*|*"safe-jobs"|*"gh-steps"|*"restore-memory-custom-job"|*"custom-safe-outputs"|*"noop"|*"report-incomplete"|*"assign-to-agent"|*"set-issue-field"|*"issue-intents"|*"skills-frontmatter")
local workflow_success=false
if trigger_workflow_dispatch_and_await_completion "$workflow"; then
workflow_success=true
Expand All @@ -3447,7 +3448,7 @@ run_single_test() {
validation_success=true
fi
;;
*"create-issue"|*"skills-frontmatter")
*"create-issue"|*"skills-frontmatter"|*"restore-memory-custom-job")
local title_prefix=$(get_title_prefix "$workflow" "$ai_type")
local expected_labels=$(get_expected_labels "$ai_type")
if validate_issue_created "$title_prefix" "$expected_labels" "$target_repo"; then
Expand Down