From d5118cf124fdc8fc58057eff0afd9d728b37e0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Wed, 16 Sep 2026 17:26:44 +0200 Subject: [PATCH] fix: align health investigation dispatch runtime Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/devops-health-check.lock.yml | 5 +++-- .github/workflows/devops-health-check.md | 3 ++- eng/evaluation/test_token_failover.py | 11 ++++++++++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/devops-health-check.lock.yml b/.github/workflows/devops-health-check.lock.yml index 77b185ea..e6d750d2 100644 --- a/.github/workflows/devops-health-check.lock.yml +++ b/.github/workflows/devops-health-check.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"a0faa7129533cae1cee7bd7fb83138a2d06383f1d1166bea4e2ebcf5bee349c0","body_hash":"7df4a3a8d38de00a38a3f9cdf542f28355084baf214f36990b7868988dd6a978","compiler_version":"v0.88.7","strict":true,"agent_id":"copilot","agent_model":"${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'gpt-5.6-sol' }}","engine_versions":{"copilot":"1.0.80"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"3f04211a3c9698c4d2a1cd881bb46cb48266d794bc895d5d7037f350119778c7","body_hash":"7df4a3a8d38de00a38a3f9cdf542f28355084baf214f36990b7868988dd6a978","compiler_version":"v0.88.7","strict":true,"agent_id":"copilot","agent_model":"${{ vars.GH_AW_MODEL_AGENT_COPILOT || vars.GH_AW_DEFAULT_MODEL_COPILOT || 'gpt-5.6-sol' }}","engine_versions":{"copilot":"1.0.80"}} # gh-aw-manifest: {"version":1,"secrets":["COPILOT_PAT_0","COPILOT_PAT_1","COPILOT_PAT_2","COPILOT_PAT_3","COPILOT_PAT_4","COPILOT_PAT_5","COPILOT_PAT_6","COPILOT_PAT_7","COPILOT_PAT_8","COPILOT_PAT_9","GH_AW_DEFAULT_OTLP_HEADERS","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"github/gh-aw-actions/setup","sha":"5e508589e03a7757a7e05b26e834292f5445bfb6","version":"v0.88.7"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.14","digest":"sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.14@sha256:f7df036c86575527b61f3f7df91c4412349a12b2a74988d929eafa2999230c98"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14","digest":"sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.14@sha256:6f95e2234dd9bd6333a8ff28ccea7ecf0204acd4a09108723844dbd2bf6268c5"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.14","digest":"sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.14@sha256:2ce8df3abf3e9b76e9c0cf5863da41f1ab3f89b20ad14b988806ab89e7bf2cd5"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.18","digest":"sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.18@sha256:85b940556a8faa4e1fdbef124bfd75f2c4ebd855a10b88a1c3b6f3e97f6f1a53"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:33e1ec1d967ac1f28c2cedc24ce103dea3226840626de345d3fe579e96cf5c7d","pinned_image":"ghcr.io/github/gh-aw-node@sha256:33e1ec1d967ac1f28c2cedc24ce103dea3226840626de345d3fe579e96cf5c7d"},{"image":"ghcr.io/github/github-mcp-server:v1.11.0","digest":"sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699","pinned_image":"ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699"}],"mcp_servers":[{"name":"github","tools":["actions_get","actions_list","get_commit","get_file_contents","get_job_logs","get_latest_release","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_releases","list_starred_repositories","list_tags","search_code","search_issues","search_repositories"]},{"name":"safeoutputs","tools":["missing_data","missing_tool","noop","publish_health_dashboard"]}]} # This file was automatically generated by gh-aw (v0.88.7). DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # @@ -2335,7 +2335,7 @@ jobs: ) .sort()[0]; existingRuns = await github.paginate( - github.rest.actions.listWorkflowRuns, + github.rest.actions.listWorkflowRunsForWorkflow, { ...context.repo, workflow_id: "devops-health-investigate.lock.yml", @@ -2422,6 +2422,7 @@ jobs: ...dispatch, correlation_id: correlationId, health_issue_number: String(issueNumber), + dry_run: "false", }, }); dispatchedCount += 1; diff --git a/.github/workflows/devops-health-check.md b/.github/workflows/devops-health-check.md index 6c0063ac..390eaabd 100644 --- a/.github/workflows/devops-health-check.md +++ b/.github/workflows/devops-health-check.md @@ -642,7 +642,7 @@ safe-outputs: ) .sort()[0]; existingRuns = await github.paginate( - github.rest.actions.listWorkflowRuns, + github.rest.actions.listWorkflowRunsForWorkflow, { ...context.repo, workflow_id: "devops-health-investigate.lock.yml", @@ -729,6 +729,7 @@ safe-outputs: ...dispatch, correlation_id: correlationId, health_issue_number: String(issueNumber), + dry_run: "false", }, }); dispatchedCount += 1; diff --git a/eng/evaluation/test_token_failover.py b/eng/evaluation/test_token_failover.py index a5b5ea49..d4789479 100644 --- a/eng/evaluation/test_token_failover.py +++ b/eng/evaluation/test_token_failover.py @@ -360,7 +360,7 @@ const github = {{ }} }}, actions: {{ - listWorkflowRuns: async args => {{ + listWorkflowRunsForWorkflow: async args => {{ calls.push({{ type: "list-runs", args }}); return {{ data: {{ workflow_runs: {existing_runs_json} }} }}; }}, @@ -593,6 +593,15 @@ class TokenFailoverTests(unittest.TestCase): 'workflow_id: "devops-health-investigate.lock.yml"', publisher_script, ) + self.assertIn( + "github.rest.actions.listWorkflowRunsForWorkflow", + publisher_script, + ) + self.assertNotIn( + "github.rest.actions.listWorkflowRuns,", + publisher_script, + ) + self.assertIn('dry_run: "false"', publisher_script) update_index = publisher_script.index("await github.rest.issues.update") dispatch_index = publisher_script.index( "await github.rest.actions.createWorkflowDispatch"