Skip to content

Add E2E test for restore-memory in custom jobs (gh-aw#44037)#5972

Merged
pelikhan merged 2 commits into
mainfrom
copilot/suggested-test-copilot-restore-memory-custom-job
Jul 8, 2026
Merged

Add E2E test for restore-memory in custom jobs (gh-aw#44037)#5972
pelikhan merged 2 commits into
mainfrom
copilot/suggested-test-copilot-restore-memory-custom-job

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

No E2E test existed for the restore-memory: frontmatter field on jobs.<id>, introduced in gh-aw#44037 to inject memory-restore steps into orchestrator jobs before the agent runs.

New test: test-copilot-restore-memory-custom-job

  • test-copilot-restore-memory-custom-job.mdworkflow_dispatch test with a jobs.setup custom job that declares restore-memory: {cache-memory: true}, a verification step, and jobs.agent depending on it via needs: [setup]:
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:
    ...
    samples:
      - title: "restore-memory custom job smoke test"
        ...
  • e2e.sh — registered in get_all_tests(), added *"restore-memory-custom-job" to the dispatch routing pattern and to the validate_issue_created inner case.
  • README.md — added [ ] coverage entry.

Note on lockfile

restore-memory: in jobs.<id> is not yet recognized by the installed gh-aw (v0.81.6). The .lock.yml will be generated by the nightly CI when it compiles against a version that includes gh-aw#44037. Until then the test will be recorded in fails.txt as a compile-failed test — expected behavior per AGENTS.md.

Copilot AI linked an issue Jul 8, 2026 that may be closed by this pull request
Adds E2E test for the restore-memory field in custom jobs (gh-aw#44037).
The test defines a custom setup job with restore-memory: {cache-memory: true}
and an agent job that depends on it, exercising the new step injection path.

The .lock.yml will be generated by the nightly CI once gh-aw#44037 ships
in a version that supports the restore-memory field for jobs.<id>.

Closes #5970
Copilot AI changed the title [WIP] Add end-to-end test for restore-memory step in custom jobs Add E2E test for restore-memory in custom jobs (gh-aw#44037) Jul 8, 2026
Copilot AI requested a review from pelikhan July 8, 2026 11:08
@pelikhan
pelikhan marked this pull request as ready for review July 8, 2026 11:09
@pelikhan
pelikhan merged commit c131948 into main Jul 8, 2026
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.

Suggested test: copilot/restore-memory-custom-job

2 participants