Skip to content

ci: dynamically discover e2e test suites#1198

Open
Copilot wants to merge 2 commits intodevelopfrom
copilot/solve-issue-1193-find-e2e-suites
Open

ci: dynamically discover e2e test suites#1198
Copilot wants to merge 2 commits intodevelopfrom
copilot/solve-issue-1193-find-e2e-suites

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 13, 2026

The e2e workflow matrix was hardcoded, causing new test suites (like shutdown-force, period-check/force-close-expiry) to be silently skipped in CI until someone noticed and manually added them.

  • Add discover job that finds all directories containing .bru files under tests/bruno/e2e/ and outputs them as a JSON array
  • Replace hardcoded matrix with fromJSON(needs.discover.outputs.workflows) so new suites are picked up automatically
  • Exclude funding-tx-verification from the base matrix — it requires specific FUNDING_TX_VERIFICATION_CASE args and is handled entirely through include entries
  • All special include entries unchanged (udt/xudt-test, 3-nodes-transfer/sha256, 3× funding-tx-verification)

Discovery logic:

find tests/bruno/e2e -name '*.bru' -printf '%h\n' | sort -u | sed 's|tests/bruno/e2e/||'

Uses sparse checkout for the discover job to keep it fast.


💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.

…e matrix

Add a `discover` job that finds all directories containing .bru files under
tests/bruno/e2e/ and outputs them as a JSON array for the matrix. The
e2e-testing job now uses fromJSON() to consume this dynamic list.

funding-tx-verification is excluded from the base matrix since it requires
specific FUNDING_TX_VERIFICATION_CASE args and is handled entirely through
the include entries.

This ensures new e2e test suites are automatically included in CI without
manually updating the workflow file, solving the problem from #1193.

Co-authored-by: doitian <35768+doitian@users.noreply.github.com>
Copilot AI changed the title [WIP] [1193] Solve the problem by finding all e2e test suites dynamically ci: dynamically discover e2e test suites Mar 13, 2026
Copilot AI requested a review from doitian March 13, 2026 04:36
@doitian doitian marked this pull request as ready for review March 14, 2026 13:53
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