Skip to content

Fix test comparing step order across different workflow jobs#16242

Merged
pelikhan merged 3 commits intomainfrom
copilot/fix-github-actions-workflow-c5ec5066-2679-44e5-baf6-dcab006b85bc
Feb 17, 2026
Merged

Fix test comparing step order across different workflow jobs#16242
pelikhan merged 3 commits intomainfrom
copilot/fix-github-actions-workflow-c5ec5066-2679-44e5-baf6-dcab006b85bc

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 16, 2026

TestStepSummaryIncludesWorkflowOverview was failing because it compared string positions of steps from different jobs. "Create prompt" (activation job) always appears before "Generate workflow overview" (agent job) in the compiled YAML, making the index comparison invalid.

Changes

  • Updated test to compare "Generate workflow overview" against "Download prompt artifact" instead
  • Both steps are now in the same agent job, making the ordering check valid
// Before: Comparing across jobs (activation vs agent)
promptIdx := strings.Index(lockContent, "- name: Create prompt")

// After: Comparing within same job (agent)
promptIdx := strings.Index(lockContent, "- name: Download prompt artifact")
if overviewIdx >= promptIdx {
    t.Error("Expected 'Generate workflow overview' step to run BEFORE 'Download prompt artifact' step")
}

The test now correctly validates that workflow overview generation happens before prompt download in the agent job execution sequence.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh auth status ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -30 (http block)
    • Triggering command: /usr/bin/gh gh auth status ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet --no�� --noprofile Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha runs/20260217-000049-14171/test-4184702056/.github/workflows stmain.go ache/node/24.13.0/x64/bin/node low-c5ec5066-267git /tmp/go-build352rev-parse tnet/tools/bash bash t-11�� sistency_GoAndJavaScript3417362662/001/test-empty-frontmatter.md r ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet -unreachable=falgit /tmp/go-build352rev-parse ache/node/24.13.--show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha "prettier" --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pret.prettierignore gh /opt/hostedtoolcache/node/24.13.0/x64/bin/npx view owner/repo /usr/bin/git npx pret�� --write ../../../**/*.json /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet --ignore-path ../../../.prettirev-parse /usr/bin/git /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v2 --jq .object.sha (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha 3239145438 64/pkg/tool/linu--jq g_.a --local credential.usernrev-parse ache/go/1.25.0/x--show-toplevel node --ch�� /tmp/validate-js-426382582.cjs ache/go/1.25.0/x64/pkg/tool/linu-buildtags ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet se 7734060/b051/vetrev-parse 9-44e5-baf6-dcab--show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha --show-toplevel git k/node_modules/.bin/sh --show-toplevel /tmp/go-build176rev-parse /usr/bin/git git rev-�� rite '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json git k/node_modules/.bin/node WorkflowFiles_Trgit head /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha --get-regexp 64/src/internal/fuzz/counters_supported.go ache/go/1.25.0/x64/pkg/tool/linux_amd64/cgo (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha get --local .cfg credential.helpegit (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v4 --jq .object.sha --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git Generate workflogit /home/REDACTED/worrev-parse ache/go/1.25.0/x--show-toplevel git rev-�� --show-toplevel l /usr/bin/git -unreachable=falgit /tmp/go-build352rev-parse $name) { has--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha -1679075352.cjs 64/pkg/tool/linux_amd64/vet /usr/bin/git 006b85bc .cfg 64/pkg/tool/linu--get-regexp git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/vet 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha 7790249/b418/timeutil.test --jq ache/node/24.13.0/x64/bin/node -unreachable=falgit /tmp/go-build352rev-parse ache/node/24.13.--show-toplevel iiEtxJ64HjgrP/g5FpiJ9ENbZatjTay5oJ/BhqTCoRMGewfss9ZXZGY/X4XoDkfiiEtxJ64HjgrP t-42�� sistency_KeyOrdering1825432062/001/test1.md tail 7790249/b418/_pkg_.a (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha user.email test@example.com /usr/bin/git --noprofile (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6.0.2
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6.0.2 --jq .object.sha fflib@v1.0.0/difflib/difflib.go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6.0.2 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6.0.2 --jq .object.sha ify@v1.11.1/assert/assertion_compare.go ify@v1.11.1/assert/assertion_format.go x_amd64/cgo r (http block)
  • https://api.github.com/repos/actions/complex/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/complex/git/ref/tags/v1 --jq .object.sha 006b85bc .cfg 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v7
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v7 --jq .object.sha (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -bool -buildtags sh -errorsas -ifaceassert -nilfunc bash --no�� celain --ignore-submodules | head -n 10 -tests rgo/bin/bash (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha --noprofile -tests rgo/bin/bash (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha f/tags/v6 -tests ache/go/1.25.0/x64/bin/bash (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git --noprofile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha i/install.sh node ache/node/24.13.0/x64/bin/node ./../.prettieriggit /opt/hostedtoolcrev-parse /usr/bin/gh sh t-19�� /v1.0.0 gh /opt/hostedtoolcache/go/1.25.0/x64/bin/node x_amd64/vet x_amd64/vet /usr/bin/git node (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v6 --jq .object.sha (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha g/stringutil/ide-s g/stringutil/pat-w ache/go/1.25.0/x-buildmode=exe (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha --show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet /usr/bin/git --noprofile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha 4 node /opt/pipx_bin/sh /home/REDACTED/worgit bash /usr/bin/git sh -c runs/20260217-000152-18728/test-222739931/.github/workflows git ache/node/24.13.0/x64/bin/node /tmp/TestCollectgit config run-script/lib/n--show-toplevel npm (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq .object.sha (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6.2.0
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6.2.0 --jq .object.sha ify@v1.11.1/assert/yaml/yaml_default.go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6.2.0 --jq .object.sha (http block)
  • https://api.github.com/repos/anchore/sbom-action/git/ref/tags/v0
    • Triggering command: /usr/bin/gh gh api /repos/anchore/sbom-action/git/ref/tags/v0 --jq .object.sha (http block)
  • https://api.github.com/repos/docker/build-push-action/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/docker/build-push-action/git/ref/tags/v6 --jq .object.sha (http block)
  • https://api.github.com/repos/docker/login-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq .object.sha (http block)
  • https://api.github.com/repos/docker/metadata-action/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/docker/metadata-action/git/ref/tags/v5 --jq .object.sha (http block)
  • https://api.github.com/repos/docker/setup-buildx-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/setup-buildx-action/git/ref/tags/v3 --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /tmp/go-build3541743673/b001/workflow.test /tmp/go-build3541743673/b001/workflow.test -test.testlogfile=/tmp/go-build3541743673/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true ew@v1.1.1/spew/bypass.go ew@v1.1.1/spew/common.go 64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 x_amd64/vet ache/node/24.13.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 git /usr/bin/git 8WsF/avxLPGO5v5Zgit config /usr/bin/git git rev-�� */*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore git 64/pkg/tool/linux_amd64/asm --show-toplevel 7790249/b414/_terev-parse ache/node/24.13.--show-toplevel 64/pkg/tool/linux_amd64/asm (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 x_amd64/vet ache/node/24.13.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 git /usr/bin/git s/test.md -goversion /usr/bin/git git rev-�� */*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path git 64/pkg/tool/linux_amd64/compile --show-toplevel e/git-remote-httrev-parse ache/node/24.13.--show-toplevel 64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 x_amd64/vet ache/node/24.13.0/x64/bin/node (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 git 64/bin/sh s/test.md -goversion /usr/bin/git git rev-�� */*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path git Name,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle /home/REDACTED/worgit /home/REDACTED/worrev-parse /usr/bin/git 64/pkg/tool/linux_amd64/asm (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 x_amd64/vet x_amd64/compile output-qiybvo.txgit (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 git /usr/bin/git y5oJ/g5FpiJ9ENbZgit rev-parse /usr/bin/git git rev-�� */*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore git 64/pkg/tool/linux_amd64/compile --show-toplevel l (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 x_amd64/vet x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 4qBSgoBRlrikz/av--package-lock-only /usr/bin/git ry=1 -tests (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 x_amd64/vet x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 git /usr/bin/git --show-toplevel bash 7790249/b416/vet--show-toplevel git rev-�� */*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore git 64/pkg/tool/linux_amd64/cgo --show-toplevel l /opt/hostedtoolc--show-toplevel 64/pkg/tool/linux_amd64/cgo (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 x_amd64/vet x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 iiEtxJ64HjgrP/g5FpiJ9ENbZatjTay5oJ/BhqTCoRMGewfss9ZXZGY/X4XoDkfiiEtxJ64HjgrP /usr/bin/git sistency_KeyOrdegit tail 7790249/b418/_pk--show-toplevel git rev-�� */*.json' '!../../../pkg/workflow/js/**/*.json' --ignore-path ../../../.prettierignore git 64/pkg/tool/linux_amd64/vet --show-toplevel cp ache/node/24.13.--show-toplevel 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: `/usr/bin/gh gh workflow list --json name,state,path -bool within same job

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> t -errorsas -ifaceassert -nilfunc bash --no�� n/git/ref/tags/v3 -tests /home/REDACTED/.dotnet/tools/bash` (http block)

  • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 (http block)
  • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/1.0.0 --jq .object.sha (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/1.0.0 --jq .object.sha g/workflow/action_reference.go .cfg 64/pkg/tool/linux_amd64/vet g/workflow/actiogit g/workflow/actiols-files g/workflow/actio--exclude-standard 64/pkg/tool/linu--others g/wo�� g/workflow/activation_checkout_test.go .cfg 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha successfully&#34; 7734060/b105/vet.cfg ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha .version=bb748eb&#34; -o gh-aw ./cmd/gh-aw (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha hJxxLKo_r 7734060/b133/vet.cfg ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/githubnext/this-repo-definitely-does-not-exist-12345
    • Triggering command: /tmp/go-build3541743673/b001/workflow.test /tmp/go-build3541743673/b001/workflow.test -test.testlogfile=/tmp/go-build3541743673/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true ew@v1.1.1/spew/bypass.go ew@v1.1.1/spew/common.go 64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --show-toplevel bash /usr/bin/git git tion�� --show-toplevel git son ignore ache/go/1.25.0/xrev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo low-c5ec5066-2679-44e5-baf6-dcab006b85bc -errorsas -ifaceassert -nilfunc systemd-run --un�� ef/tags/v3 --scope /home/REDACTED/work/_temp/ghcca-node/node/bin/bash --property=Memorbash --property=CPUQu--norc --property=Memor--noprofile bash (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo low-c5ec5066-2679-44e5-baf6-dcab006b85bc -errorsas -ifaceassert -nilfunc iptables -w ub-actions-workflow-c5ec5066-2679-44e5-baf6-dcab006b85bc security /home/REDACTED/.dotnet/tools/bash OUTPUT -d 168.63.129.16 /systemd-executor (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state ache/node/24.13.0/x64/bin/node -errorsas -ifaceassert -nilfunc git rev-�� -990035239.cjs -tests x_amd64/vet g_.a (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: `/usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name -bool within same job

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> ache/go/1.25.0/x64/bin/git -errorsas -ifaceassert -nilfunc bash --no�� rd -tests /home/REDACTED/.local/bin/bash` (http block)

  • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --show-toplevel x_amd64/link /usr/bin/git es.md 64/pkg/tool/linu/home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/.bin/pre�� /opt/hostedtoolc--write git rev-�� ath ../../../.pr**/*.json H5/B3jFDlCLvmLjT--ignore-path /usr/bin/git .md 64/pkg/tool/linu/home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/.bin/prettier .cfg git (http block)
  • https://api.github.com/user
    • Triggering command: /usr/bin/gh gh api user --jq .login (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login -unreachable=false /tmp/go-build3527734060/b073/vet.cfg ache/node/24.13.0/x64/bin/bash (http block)
    • Triggering command: /usr/bin/gh gh api user --jq .login low-c5ec5066-2679-44e5-baf6-dcab006b85bc /tmp/go-build3527734060/b230/vet.cfg sh (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Fix the failing GitHub Actions workflow Integration: Workflow Misc Part 2
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 63804658903
Job URL: https://github.com/github/gh-aw/actions/runs/22080524890/job/63804658903


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 17, 2026 00:00
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow Integration: Workflow Misc Part 2 Fix test comparing step order across different workflow jobs Feb 17, 2026
Copilot AI requested a review from pelikhan February 17, 2026 00:04
@pelikhan pelikhan marked this pull request as ready for review February 17, 2026 00:05
Copilot AI review requested due to automatic review settings February 17, 2026 00:05
@pelikhan pelikhan merged commit 27ad1a5 into main Feb 17, 2026
123 checks passed
@pelikhan pelikhan deleted the copilot/fix-github-actions-workflow-c5ec5066-2679-44e5-baf6-dcab006b85bc branch February 17, 2026 00:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a flaky/invalid ordering assertion in TestStepSummaryIncludesWorkflowOverview by ensuring the step-order comparison is made between steps in the same workflow job, rather than across different jobs in the compiled lock YAML.

Changes:

  • Updated TestStepSummaryIncludesWorkflowOverview to compare “Generate workflow overview” ordering against “Download prompt artifact” (same agent job) instead of “Create prompt” (activation job).
  • Regenerated the auto-generated specs/artifacts.md artifact-location reference.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
pkg/workflow/step_summary_test.go Adjusts the step-order assertion to avoid cross-job index comparisons in compiled YAML.
specs/artifacts.md Updates the generated artifact reference content (jobs/artifacts/paths/usages).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// Verify step runs before "Download prompt artifact" (in the same agent job)
// Note: "Create prompt" is in the activation job, so we compare against
// "Download prompt artifact" which is in the same agent job
promptIdx := strings.Index(lockContent, "- name: Download prompt artifact")
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

promptIdx is computed via strings.Index(...) but the test never asserts the step exists first. If the generated YAML changes and the step is missing/renamed, promptIdx will be -1 and the subsequent ordering assertion will fail with a misleading message. Add an explicit strings.Contains/promptIdx == -1 check and fail with a clear error before comparing indexes.

Suggested change
promptIdx := strings.Index(lockContent, "- name: Download prompt artifact")
promptIdx := strings.Index(lockContent, "- name: Download prompt artifact")
if promptIdx == -1 {
t.Fatalf("Expected 'Download prompt artifact' step to be present in compiled workflow, but it was not found")
}

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +27
### Job: `activation`

**Artifacts Uploaded:**

- `prompt`
- **Paths**: `/tmp/gh-aw/aw-prompts/prompt.txt`
- **Used in**: 84 workflow(s) - agent-performance-analyzer.md, agent-persona-explorer.md, ai-moderator.md, archie.md, bot-detection.md, brave.md, breaking-change-checker.md, changeset.md, chroma-issue-indexer.md, ci-coach.md, ci-doctor.md, cli-consistency-checker.md, cloclo.md, code-scanning-fixer.md, codex-github-remote-mcp-test.md, commit-changes-analyzer.md, copilot-pr-merged-report.md, copilot-pr-nlp-analysis.md, craft.md, daily-choice-test.md, daily-copilot-token-report.md, daily-fact.md, daily-file-diet.md, daily-issues-report.md, daily-mcp-concurrency-analysis.md, daily-news.md, daily-observability-report.md, daily-repo-chronicle.md, daily-team-status.md, deep-report.md, dependabot-burner.md, dependabot-go-checker.md, dev-hawk.md, dev.md, dictation-prompt.md, example-custom-error-patterns.md, example-permissions-warning.md, firewall.md, functional-pragmatist.md, github-mcp-structural-analysis.md, glossary-maintainer.md, go-fan.md, go-pattern-detector.md, grumpy-reviewer.md, hourly-ci-cleaner.md, issue-classifier.md, issue-monster.md, issue-triage-agent.md, layout-spec-maintainer.md, mergefest.md, metrics-collector.md, notion-issue-summary.md, pdf-summary.md, plan.md, poem-bot.md, pr-nitpick-reviewer.md, pr-triage-agent.md, python-data-charts.md, q.md, refiner.md, release.md, repo-audit-analyzer.md, repository-quality-improver.md, research.md, scout.md, security-compliance.md, security-review.md, slide-deck-maintainer.md, smoke-copilot-sdk.md, smoke-project.md, smoke-temporary-id.md, stale-repo-identifier.md, super-linter.md, technical-doc-writer.md, test-create-pr-error-handling.md, test-dispatcher.md, test-project-url-default.md, test-workflow.md, tidy.md, typist.md, video-analyzer.md, weekly-issue-summary.md, workflow-generator.md, workflow-health-manager.md
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is described as a targeted test fix, but it also includes a very large regeneration of the auto-generated specs/artifacts.md content (new jobs/paths/usages). If this regeneration is intentional, it should be called out in the PR description; if not, consider dropping it from this PR to keep the change focused.

Copilot uses AI. Check for mistakes.
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.

3 participants