githubnext / githubnext/gh-aw-test

Suggested test: copilot/on-bots-import-from-shared-workflow

Open
#13,852 0 comments 0 reactions 0 assignees View on GitHub
suggested new test
Dominant language
Shell
Stars
8
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## Motivation

github/gh-aw#57968 — Fix import merging so shared workflows can contribute `on.bots` allowlists via `on.bots` (previously read incorrectly from top level); imported bots are unioned with the importing workflow's bots, deduped, order preserved.

## Proposed test

- **Workflow file**: `test-copilot-on-bots-import.md`
- **Trigger**: `workflow_dispatch` (with an `issues`/`issue_comment` trigger also declaring `on.bots`, exercised via dispatch path for determinism)
- **Engine**: copilot
- **Safe output**: `create-issue` (simple, verifiable output confirming the workflow compiled and ran with merged bot allowlist)
- **Variant**: standard

## Minimal test prompt sketch

Compile a workflow that imports a shared workflow snippet declaring `on.bots: [dependabot[bot]]`, while the main workflow also declares its own `on.bots` list; assert the compiled lock file's bot allowlist is the union of both, then have the agent create an issue confirming success.

## New fixtures or secrets needed

Requires a new shared workflow snippet under `.github/workflows/shared/` declaring `on.bots`. No new secrets needed.

## Notes

This is primarily a compile-time/lockfile-shape assertion (union + dedup + order), so the E2E value is mostly in confirming `gh aw compile` succeeds and produces the expected merged allowlist — the runtime dispatch is a secondary check. No existing test exercises `on.bots` import merging.

> Generated by [🔍 Suggest New E2E Tests](https://github.com/githubnext/gh-aw-test/actions/runs/33734461438) · copilot · auto · 19.8 AIC · ⌖ 6.58 AIC · ⊞ 8.8K · [◷](https://github.com/search?q=repo%3Agithubnext%2Fgh-aw-test+is%3Aissue+%22gh-aw-workflow-call-id%3A+githubnext%2Fgh-aw-test%2Fsuggest-new-e2e-tests%22&type=issues)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the proposed test in test-copilot-on-bots-import.md and inspect shared workflow fixtures under .github/workflows/shared/. Run gh aw compile and verify the compiled lock file contains the union of the importing and shared workflows' on.bots lists, with duplicates removed and order preserved; the dispatch path should then produce the described create-issue confirmation.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, shell
Domain
ci-cd, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.