From fc67a4912fd1ddf6c870d488cd06439e37047d3a Mon Sep 17 00:00:00 2001 From: Mingxuan Zhang <132491513+mingxuanzhangsfdx@users.noreply.github.com> Date: Wed, 25 Sep 2024 14:14:35 -0700 Subject: [PATCH] test: metadata deploy retrieve & create project command e2e test (#5852) * test: metadata deploy and retrieve e2e * chore: add createProjectTest to misc * chore: update slack notification for core e2e --- .github/workflows/coreE2E.yml | 28 +++++++++++++++----- .github/workflows/deployRetrieveE2E.yml | 35 ++++++++++++++++++++----- 2 files changed, 51 insertions(+), 12 deletions(-) diff --git a/.github/workflows/coreE2E.yml b/.github/workflows/coreE2E.yml index 3248bd0a6d..de1dedd267 100644 --- a/.github/workflows/coreE2E.yml +++ b/.github/workflows/coreE2E.yml @@ -155,6 +155,16 @@ jobs: testToRun: 'sfdxProjectJson.e2e.ts' vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} + + createProjectTest: + if: ${{ inputs.miscellaneous }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch }} + testToRun: 'createProjectTest.e2e.ts' + vscodeVersion: ${{ inputs.vscodeVersion }} + runId: ${{ inputs.runId }} slack_success_notification: if: ${{ success() }} @@ -164,7 +174,9 @@ jobs: authentication, miscellaneous, sObjectsDefinitions, - templates + templates, + sfdxProjectJson, + createProjectTest ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -172,7 +184,7 @@ jobs: title: 'Core E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' + summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}\n- Create Project Test: ${{needs.createProjectTest.result}}' result: 'All the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' @@ -185,7 +197,9 @@ jobs: authentication, miscellaneous, sObjectsDefinitions, - templates + templates, + sfdxProjectJson, + createProjectTest ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -193,7 +207,7 @@ jobs: title: 'Core E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' + summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}\n- Create Project Test: ${{needs.createProjectTest.result}}' result: 'Not all the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' @@ -206,7 +220,9 @@ jobs: authentication, miscellaneous, sObjectsDefinitions, - templates + templates, + sfdxProjectJson, + createProjectTest ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -214,7 +230,7 @@ jobs: title: 'Core E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}' + summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- Miscellaneous: ${{ needs.miscellaneous.result }}\n- SObjects Definitions: ${{ needs.sObjectsDefinitions.result }}\n- Templates: ${{ needs.templates.result }}\n- Templates: ${{ needs.templates.result }}\n- SFDX Project Json: ${{ needs.sfdxProjectJson.result}}\n- Create Project Test: ${{needs.createProjectTest.result}}' result: 'The workflow was cancelled.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' diff --git a/.github/workflows/deployRetrieveE2E.yml b/.github/workflows/deployRetrieveE2E.yml index 814c214a7a..4aef8a8f81 100644 --- a/.github/workflows/deployRetrieveE2E.yml +++ b/.github/workflows/deployRetrieveE2E.yml @@ -33,6 +33,11 @@ on: required: false default: true type: boolean + mdDeployRetrieve: + description: 'Metadata Deploy and Retrieve' + required: false + default: true + type: boolean vscodeVersion: description: 'VSCode Version' required: false @@ -75,6 +80,11 @@ on: required: false default: true type: boolean + mdDeployRetrieve: + description: 'Metadata Deploy and Retrieve' + required: false + default: true + type: boolean vscodeVersion: description: 'VSCode Version' required: false @@ -135,6 +145,16 @@ jobs: testToRun: 'pushAndPull.e2e.ts' vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} + + mdDeployRetrieve: + if: ${{ inputs.mdDeployRetrieve }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch }} + testToRun: 'metadataDeployRetrieve.e2e.ts' + vscodeVersion: ${{ inputs.vscodeVersion }} + runId: ${{ inputs.runId }} slack_success_notification: if: ${{ success() }} @@ -143,7 +163,8 @@ jobs: # diffAndConflictDetection, manifestBuilder, orgBrowser, - pushAndPull + pushAndPull, + mdDeployRetrieve ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -152,7 +173,7 @@ jobs: vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} # summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}' - summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}' + summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- MD Deploy and Retrieve: ${{needs.mdDeployRetrieve.result}} ' result: 'All the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' @@ -164,7 +185,8 @@ jobs: # diffAndConflictDetection, manifestBuilder, orgBrowser, - pushAndPull + pushAndPull, + mdDeployRetrieve ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -173,7 +195,7 @@ jobs: vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} # summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}' - summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}' + summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- MD Deploy and Retrieve: ${{needs.mdDeployRetrieve.result}} ' result: 'Not all the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' @@ -185,7 +207,8 @@ jobs: # diffAndConflictDetection, manifestBuilder, orgBrowser, - pushAndPull + pushAndPull, + mdDeployRetrieve ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -194,7 +217,7 @@ jobs: vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} # summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Diff and Conflict Detection: ${{ needs.diffAndConflictDetection.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}' - summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}' + summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Org Browser: ${{ needs.orgBrowser.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- MD Deploy and Retrieve: ${{needs.mdDeployRetrieve.result}} ' result: 'The workflow was cancelled.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e'