Skip to content

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

Draft
Copilot wants to merge 2 commits intocopilot/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
Copilot wants to merge 2 commits intocopilot/upgrade-actions-github-and-octokitfrom
copilot/fix-github-actions-integration-test

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

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.

Copilot AI changed the title [WIP] Fix failing GitHub Actions workflow integration test Fix integration test: user-agent option failing due to orchestration ID in user-agent string 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants