Skip to content

Suggested test: copilot/sandbox-mounts-from-partial #6385

Description

@github-actions

Motivation

Link to the gh-aw PR: github/gh-aw#44500 — Allow shared workflow partials to define and merge sandbox.agent.mounts

This PR enables shared workflow partials to carry sandbox.agent.mounts entries, which are merged (with deduplication) into the consuming main workflow at compile time. Previously, partials could not declare sandbox config. No existing test exercises this merge behaviour.

Proposed test

  • Workflow file: test-copilot-sandbox-mounts-from-partial.md
  • Trigger: workflow_dispatch
  • Engine: copilot
  • Safe output: create-issue (simple output to confirm the workflow ran successfully)
  • Variant: standard

Minimal test prompt sketch

Create a shared partial .github/workflows/shared/mounts-partial.md that declares sandbox.agent.mounts with one bind mount. The main workflow imports it and declares its own overlapping mount. The agent creates a GitHub issue confirming it ran. The test asserts the compiled lock file merges both mount declarations without duplication.

New fixtures or secrets needed

A new shared partial file in .github/workflows/shared/ of the githubnext/gh-aw-test repo is needed. No new secrets required.

Notes

This is a compiler/merge behaviour test — the assertion is on the compiled .lock.yml (mounts deduplicated) plus runtime success. Overlaps conceptually with test-copilot-inline-sub-agents.md but exercises a different frontmatter surface.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by 🔍 Suggest New E2E Tests · 20.8 AIC · ⌖ 5.52 AIC · ⊞ 5.6K ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions