Skip to content

Fix integration test: user-agent option failing due to orchestration ID in user-agent string - #709

Draft
angel-jiakou with Copilot wants to merge 2 commits into
copilot/upgrade-actions-github-and-octokitfrom
copilot/fix-github-actions-integration-test
Draft

Fix integration test: user-agent option failing due to orchestration ID in user-agent string#709
angel-jiakou with Copilot wants to merge 2 commits into
copilot/upgrade-actions-github-and-octokitfrom
copilot/fix-github-actions-integration-test

Conversation

Copilot AI commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

The getUserAgentWithOrchestrationId function inserts actions_orchestration_id/... between the user-provided agent string and the octokit suffix, but the integration test was never updated to accommodate this format change.

Actual user-agent in CI:

actions/github-script actions_orchestration_id/37404db4-... octokit-core.js/7.0.6 Node.js/24

Test expected it to start with:

actions/github-script octokit-core.js/

Changes

  • .github/workflows/integration.yml — Replace glob-style != "$expected"* checks with =~ bash regex matching to allow the optional actions_orchestration_id/... segment between the user-provided agent and octokit-core.js/:
if [[ ! "$actual" =~ ^actions/github-script([[:space:]]actions_orchestration_id/[^[:space:]]+)?[[:space:]]octokit-core\.js/ ]]; then

This matches both environments where ACTIONS_ORCHESTRATION_ID is set (CI) and where it is not (local).

Original prompt

Fix the failing GitHub Actions workflow Integration test: user-agent option
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 68254844909
Job URL: https://github.com/actions/github-script/actions/runs/23458456807/job/68254844909


💬 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.

…orchestration ID

Co-authored-by: angel-jiakou <115738347+angel-jiakou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/actions/github-script/sessions/d3f337be-6e6b-4278-a1da-9baf8f3c0263
Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow integration test Mar 23, 2026
Copilot AI requested a review from angel-jiakou March 23, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants