Skip to content

Strengthen all-types integration tests with apiops compare cloud and apiops compare local#85

Draft
Copilot wants to merge 9 commits into
mainfrom
copilot/update-apiops-compare-command
Draft

Strengthen all-types integration tests with apiops compare cloud and apiops compare local#85
Copilot wants to merge 9 commits into
mainfrom
copilot/update-apiops-compare-command

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 23, 2026

Squad v0.9.1

This updates the all-types integration flow to validate the CLI compare commands directly. The round-trip test now uses apiops compare cloud for instance parity and adds a local artifact compare path that proves overrides can reconcile expected environment differences.

  • Phase 6 compare flow (cloud + local)

    • Replaced legacy compare-script dependency with apiops compare cloud.
    • Extended phase 6 to:
      • extract both source and target APIM artifacts,
      • run apiops compare local without overrides and assert expected differences,
      • generate overrides from target environment values,
      • rerun apiops compare local with overrides and assert parity.
  • Override compatibility updates

    • Updated generated override YAML in phase 4 to APIOps list-item shape (- name + properties) so local compare/publish paths consume the same structure.
  • Orchestration and pipeline wiring

    • Passed ExtractOutputDir through the round-trip orchestrator into phase 6.
    • Updated the integration workflow phase 6 invocation to provide the extract output directory.
    • Refreshed integration README phase 6 docs to match the new compare behavior.
# phase 6 now validates both compare modes
apiops compare cloud `
  --source-resource-group <src-rg> --source-service-name <src-apim> --source-subscription-id <src-sub> `
  --target-resource-group <tgt-rg> --target-service-name <tgt-apim> --target-subscription-id <tgt-sub>

apiops compare local --source <sourceExtractDir> --target <targetExtractDir> --format json
apiops compare local --source <sourceExtractDir> --target <targetExtractDir> --overrides <overrideFile> --format json

Copilot AI and others added 5 commits May 22, 2026 08:08
- Merge apimexpert-compare and nodejsdev-subscription-id decisions from inbox
- Update agent history files with team coordination context
- ApimExpert: completed cloud-to-cloud compare (34+ resource types)
- NodeJsDev: completed --subscription-id scope refactor (global → command-specific)
- TestEngineer: active testing phase for compare module
- TypescriptDev-compare-finish: spawned to fix lint errors and add unit tests

All 885 existing tests pass. 37 lint errors pending resolution.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add CompareConfig interface to config.ts with sourceClient/targetClient
- Add armResourceType to ResourceTypeMetadata (39 entries)
- Fix unsafe type assignments in compare-service.ts
- Correct resource type enum names (VersionSet, GraphQLResolver)
- Disable Workspace comparison (types not yet defined in enum)
- All 899 tests passing, zero lint errors (down from 37)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
EMaher added 4 commits May 23, 2026 00:38
- add orchestration log entry
- add session log entry
- record scribe maintenance checks
Capture the compare instance-field session in squad decisions, archives,
orchestration logs, and agent histories.
Copilot AI changed the title Add cloud/local APIM compare modes and command-scoped subscription flags Strengthen all-types integration tests with apiops compare cloud and apiops compare local Jun 5, 2026
Copilot finished work on behalf of EMaher June 5, 2026 23:32
Copilot AI requested a review from EMaher June 5, 2026 23:32
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