Skip to content

Preserve ENABLE_WORK_IQ during CI toolbox substitution - #1055

Merged
Wei Meng (m5i-work) merged 3 commits into
mainfrom
m5i/preserve-work-iq
Oct 9, 2026
Merged

Wei Meng (m5i-work) merged 3 commits into
mainfrom
m5i/preserve-work-iq

Conversation

@m5i-work

Copy link
Copy Markdown
Contributor

Problem

The hosted-agent cloud E2E runner copies sample manifests into a job-local workspace and replaces their declared toolboxes with shared test toolboxes. During that substitution, prepare-hosted-agent-ci-toolboxes.sh also unconditionally sets ENABLE_WORK_IQ=true across all supported environment shapes.

The Python agent-framework/responses/07-teams-activity sample explicitly declares ENABLE_WORK_IQ: 'false'. Enabling it implicitly in app-only CI triggers WorkIQ tool discovery without the delegated Microsoft Entra user context those tools require. Both container and code deployment cells failed with that identity error in daily build 239410755.

Minimal fix

  • Remove only the three unconditional WorkIQ enablement assignments from shared-toolbox substitution. Continue rewriting toolbox names, endpoints, and dependencies as before.
  • Preserve explicit enabled/disabled settings and leave absent settings absent.
  • Add regression coverage for env, environmentVariables, and config.env, and update the actual Python Teams manifest check to expect its existing disabled setting.

No sample implementation, pipeline retry, credential, skip-list, or merge-policy changes are included. With WorkIQ disabled, the Python Teams job remains a deployment/chat smoke test; this does not validate Teams/calendar integration or repair GitHub MCP authentication.

Validation

  • Before the fix, the new regression failed: shared preparation must preserve WorkIQ in .env (want=false got=true).
  • After the fix, test-hosted-agent-ci-toolboxes.sh: passed, including real sample manifests and cleanup mocks.
  • Hosted-agent Python unit tests: 70 passed.
  • bash -n on both changed scripts: passed.
  • git diff --check: passed.

No manual live deployments or pipeline reruns were performed. Shared lifecycle-helper changes select the full cloud E2E matrix on this PR, so unrelated known GitHub MCP credential failures may still make that required check fail.

@m5i-work
Wei Meng (m5i-work) requested a review from a team as a code owner October 8, 2026 07:48
Copilot AI balanced review requested due to automatic review settings October 8, 2026 07:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused implementation matches the stated behavior and includes comprehensive regression coverage.

0 open findings

What changed in this PR

Preserves WorkIQ feature flags when CI substitutes shared toolboxes.

Changes:

  • Removes forced ENABLE_WORK_IQ=true assignments.
  • Adds regression coverage for all supported environment shapes.
File Description
prepare-hosted-agent-ci-toolboxes.sh Preserves feature flags during toolbox routing substitution.
test-hosted-agent-ci-toolboxes.sh Tests absent, enabled, and disabled WorkIQ settings.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused implementation matches the stated behavior and has comprehensive regression coverage.

0 open findings

🧠 Review effort: Balanced

@m5i-work
Wei Meng (m5i-work) enabled auto-merge (squash) October 9, 2026 05:50
Copilot AI balanced review requested due to automatic review settings October 9, 2026 09:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused implementation matches the stated contract and includes comprehensive regression coverage.

0 open findings

🧠 Review effort: Balanced

@m5i-work
Wei Meng (m5i-work) merged commit 5715b66 into main Oct 9, 2026
320 checks passed
@m5i-work
Wei Meng (m5i-work) deleted the m5i/preserve-work-iq branch October 9, 2026 10:51

This branch was successfully deployed

1 active deployment
L4-validation — 39b43f5b Deployed Oct 9, 2026 by m5i-work via trusted #480
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