From c51d4a2251dd2aa82894b35e363d6ec3964c81eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Ca=C3=B1izales?= <113132642+CristiCanizales@users.noreply.github.com> Date: Fri, 9 Aug 2024 23:33:10 +0200 Subject: [PATCH] feat: update vscode min supported version to 1.86 (#5715) * feat: update vscode min supportede version to 1.86 * feat: update vscode min supportede version to 1.86 * chore: refactor to separate esm and cjs * chore: fix vscode versions in e2e yml * chore: fix name for slack notifs * chore: merge 2 e2e workflows --- .github/workflows/baseSuiteE2E.yml | 246 ------------------ .github/workflows/deployRetrieveE2E.yml | 24 +- .github/workflows/e2e.yml | 88 ++++--- .github/workflows/e2eCJS.yml | 113 ++++++++ .github/workflows/e2eNew.yml | 236 ----------------- .github/workflows/lspE2E.yml | 45 +++- .github/workflows/lwcE2E.yml | 38 +-- .../salesforcedx-vscode-expanded/README.md | 2 +- packages/salesforcedx-vscode/README.md | 4 +- 9 files changed, 228 insertions(+), 568 deletions(-) delete mode 100644 .github/workflows/baseSuiteE2E.yml create mode 100644 .github/workflows/e2eCJS.yml delete mode 100644 .github/workflows/e2eNew.yml diff --git a/.github/workflows/baseSuiteE2E.yml b/.github/workflows/baseSuiteE2E.yml deleted file mode 100644 index 7ae20b597b..0000000000 --- a/.github/workflows/baseSuiteE2E.yml +++ /dev/null @@ -1,246 +0,0 @@ -name: Base E2E Test Suite for Minimum VSCode Version - -on: - workflow_run: - workflows: - - Nightly Build Develop - - Test, Build, and Release - types: - - completed - - workflow_dispatch: - inputs: - automationBranch: - description: 'Set the branch to use for automation tests' - required: false - default: 'develop' - type: string - anInitialSuite: - description: 'Verify Extensions' - required: false - default: true - type: boolean - authentication: - description: 'Authentication' - required: false - default: true - type: boolean - lwcLSP: - description: 'LWC LSP' - required: false - default: true - type: boolean - deployAndRetrieve: - description: 'Deploy and Retrieve' - required: false - default: true - type: boolean - apexLsp: - description: 'Apex LSP' - required: false - default: true - type: boolean - runApexTests: - description: 'Run Apex Tests' - required: false - default: true - type: boolean - vscodeVersion: - description: 'VSCode Version' - required: false - default: '1.82.3' - type: string - runId: - description: 'Run ID of the workflow run that created the vsixes' - required: true - type: string - os: - description: 'Operating System(s) to run the E2E tests on. Input must be a valid JSON array.' - required: false - default: '["ubuntu-latest"]' - type: string - - workflow_call: - inputs: - automationBranch: - description: 'Set the branch to use for automation tests' - required: false - default: 'develop' - type: string - anInitialSuite: - description: 'Verify Extensions' - required: false - default: true - type: boolean - authentication: - description: 'Authentication' - required: false - default: true - type: boolean - lwcLSP: - description: 'LWC LSP' - required: false - default: true - type: boolean - deployAndRetrieve: - description: 'Deploy and Retrieve' - required: false - default: true - type: boolean - apexLsp: - description: 'Apex LSP' - required: false - default: true - type: boolean - runApexTests: - description: 'Run Apex Tests' - required: false - default: true - type: boolean - vscodeVersion: - description: 'VSCode Version' - required: false - default: '1.82.3' - type: string - runId: - description: 'Run ID of the workflow run that created the vsixes' - required: true - type: string - os: - description: 'Operating System(s) to run the E2E tests on. Input must be a valid JSON array.' - required: false - default: '["ubuntu-latest"]' - type: string - -jobs: - anInitialSuite: - if: ${{ inputs.anInitialSuite || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'anInitialSuite.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: ${{ inputs.os || '["ubuntu-latest"]' }} - - authentication: - if: ${{ inputs.authentication || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'authentication.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: ${{ inputs.os || '["ubuntu-latest"]' }} - - lwcLSP: - if: ${{ inputs.lwcLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'lwcLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: ${{ inputs.os || '["ubuntu-latest"]' }} - - deployAndRetrieve: - if: ${{ inputs.deployAndRetrieve || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'deployAndRetrieve.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: ${{ inputs.os || '["ubuntu-latest"]' }} - - apexLSP: - if: ${{ inputs.apexLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'apexLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: ${{ inputs.os || '["ubuntu-latest"]' }} - - runApexTests: - if: ${{ inputs.runApexTests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'runApexTests.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: ${{ inputs.os || '["ubuntu-latest"]' }} - - slack_success_notification: - if: ${{ success() }} - needs: - [ - anInitialSuite, - authentication, - lwcLSP, - deployAndRetrieve, - apexLSP, - runApexTests - ] - uses: ./.github/workflows/slackNotification.yml - secrets: inherit - with: - title: 'Base E2E Test Suite' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - testsBranch: ${{ inputs.automationBranch || 'develop' }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- LWC LSP: ${{ needs.lwcLSP.result }}\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}' - result: 'All the tests passed.' - workflow: 'actions/runs/${{ github.run_id }}' - type: 'e2e' - - slack_failure_notification: - if: ${{ failure() }} - needs: - [ - anInitialSuite, - authentication, - lwcLSP, - deployAndRetrieve, - apexLSP, - runApexTests - ] - uses: ./.github/workflows/slackNotification.yml - secrets: inherit - with: - title: 'Base E2E Test Suite' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - testsBranch: ${{ inputs.automationBranch || 'develop' }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- LWC LSP: ${{ needs.lwcLSP.result }}\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Run Apex Tests: ${{ needs.runApexTests.result }}' - result: 'Not all the tests passed.' - workflow: 'actions/runs/${{ github.run_id }}' - type: 'e2e' - - slack_cancelled_notification: - if: ${{ cancelled() }} - needs: - [ - anInitialSuite, - authentication, - lwcLSP, - deployAndRetrieve, - apexLSP, - runApexTests - ] - uses: ./.github/workflows/slackNotification.yml - secrets: inherit - with: - title: 'Base E2E Test Suite' - vscodeVersion: ${{ inputs.vscodeVersion || '1.82.3' }} - testsBranch: ${{ inputs.automationBranch || 'develop' }} - summary: '\n- An Initial Suite: ${{ needs.anInitialSuite.result }}\n- Authentication: ${{ needs.authentication.result }}\n- LWC LSP: ${{ needs.lwcLSP.result }}\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Apex LSP: ${{ needs.apexLSP.result }}\n- Run Apex Tests: ${{ needs.runApexTests.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 6f0e805cb1..91b2260b04 100644 --- a/.github/workflows/deployRetrieveE2E.yml +++ b/.github/workflows/deployRetrieveE2E.yml @@ -6,7 +6,7 @@ on: automationBranch: description: 'Set the branch to use for automation tests' required: false - default: 'develop' + default: 'testesm' type: string deployAndRetrieve: description: 'Deploy and Retrieve' @@ -36,7 +36,7 @@ on: vscodeVersion: description: 'VSCode Version' required: false - default: '1.85.2' + default: 'stable' type: string runId: description: 'Run ID of the workflow run that created the vsixes' @@ -48,7 +48,7 @@ on: automationBranch: description: 'Set the branch to use for automation tests' required: false - default: 'develop' + default: 'testesm' type: string deployAndRetrieve: description: 'Deploy and Retrieve' @@ -78,7 +78,7 @@ on: vscodeVersion: description: 'VSCode Version' required: false - default: '1.85.2' + default: 'stable' type: string runId: description: 'Run ID of the workflow run that created the vsixes' @@ -93,7 +93,7 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'deployAndRetrieve.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} # diffAndConflictDetection: @@ -103,7 +103,7 @@ jobs: # with: # automationBranch: ${{ inputs.automationBranch }} # testToRun: "diffAndConflictDetection.e2e.ts" - # vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + # vscodeVersion: ${{ inputs.vscodeVersion }} # runId: ${{ inputs.runId }} manifestBuilder: @@ -113,7 +113,7 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'manifestBuilder.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} orgBrowser: @@ -123,7 +123,7 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'orgBrowser.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} pushAndPull: @@ -133,7 +133,7 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'pushAndPull.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} slack_success_notification: @@ -143,7 +143,7 @@ jobs: # diffAndConflictDetection, manifestBuilder, orgBrowser, - pushAndPull, + pushAndPull ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -164,7 +164,7 @@ jobs: # diffAndConflictDetection, manifestBuilder, orgBrowser, - pushAndPull, + pushAndPull ] uses: ./.github/workflows/slackNotification.yml secrets: inherit @@ -185,7 +185,7 @@ jobs: # diffAndConflictDetection, manifestBuilder, orgBrowser, - pushAndPull, + pushAndPull ] uses: ./.github/workflows/slackNotification.yml secrets: inherit diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 04142ae3f3..a77defe983 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -10,16 +10,11 @@ on: workflow_dispatch: inputs: - automationBranchForESM: + automationBranch: description: 'Set the branch to use for automation tests in ESM' required: false default: 'testesm' type: string - automationBranchForCJS: - description: 'Set the branch to use for automation tests in CJS' - required: false - default: 'develop' - type: string apexE2ETests: description: 'Apex E2E Tests' required: false @@ -40,21 +35,16 @@ on: required: false default: true type: boolean - lwcE2ETests: - description: 'LWC E2E Tests' - required: false - default: true - type: boolean - vscodeVersionForESM: + # lwcE2ETests: + # description: 'LWC E2E Tests' + # required: false + # default: false + # type: boolean + vscodeVersion: description: 'VSCode Version for ESM branches' required: false default: 'stable' type: string - vscodeVersionForCJS: - description: 'VSCode Version for CJS branches' - required: false - default: '1.85.2' - type: string runId: description: 'Run ID of the workflow run that created the vsixes' required: true @@ -66,8 +56,8 @@ jobs: uses: ./.github/workflows/apexE2E.yml secrets: inherit with: - automationBranch: ${{ inputs.automationBranchForESM || 'testesm' }} - vscodeVersion: ${{ inputs.vscodeVersionForESM || 'stable' }} + automationBranch: ${{ inputs.automationBranch || 'testesm' }} + vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} runId: ${{ inputs.runId || github.event.workflow_run.id }} Core_E2E_tests: @@ -75,8 +65,8 @@ jobs: uses: ./.github/workflows/coreE2E.yml secrets: inherit with: - automationBranch: ${{ inputs.automationBranchForESM || 'testesm' }} - vscodeVersion: ${{ inputs.vscodeVersionForESM || 'stable' }} + automationBranch: ${{ inputs.automationBranch || 'testesm' }} + vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} runId: ${{ inputs.runId || github.event.workflow_run.id }} DeployAndRetrieve_E2E_tests: @@ -84,8 +74,8 @@ jobs: uses: ./.github/workflows/deployRetrieveE2E.yml secrets: inherit with: - automationBranch: ${{ inputs.automationBranchForCJS || 'develop' }} - vscodeVersion: ${{ inputs.vscodeVersionForCJS || '1.85.2' }} + automationBranch: ${{ inputs.automationBranch || 'testesm' }} + vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} runId: ${{ inputs.runId || github.event.workflow_run.id }} LSP_E2E_tests: @@ -93,15 +83,51 @@ jobs: uses: ./.github/workflows/lspE2E.yml secrets: inherit with: - automationBranch: ${{ inputs.automationBranchForCJS || 'develop' }} - vscodeVersion: ${{ inputs.vscodeVersionForCJS || '1.85.2' }} + automationBranch: ${{ inputs.automationBranch || 'testesm' }} + vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} runId: ${{ inputs.runId || github.event.workflow_run.id }} - LWC_E2E_tests: - if: ${{ inputs.lwcE2ETests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/lwcE2E.yml + # LWC_E2E_tests: + # if: ${{ inputs.lwcE2ETests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} + # uses: ./.github/workflows/lwcE2E.yml + # secrets: inherit + # with: + # automationBranch: ${{ inputs.automationBranch || 'testesm' }} + # vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} + # runId: ${{ inputs.runId || github.event.workflow_run.id }} + + Apex_E2E_tests_min_vscode_version: + if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }} + uses: ./.github/workflows/apexE2E.yml secrets: inherit with: - automationBranch: ${{ inputs.automationBranchForCJS || 'develop' }} - vscodeVersion: ${{ inputs.vscodeVersionForCJS || '1.85.2' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} + automationBranch: 'testesm' + vscodeVersion: '1.86.0' + runId: ${{ github.event.workflow_run.id }} + + Core_E2E_tests_min_vscode_version: + if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }} + uses: ./.github/workflows/coreE2E.yml + secrets: inherit + with: + automationBranch: 'testesm' + vscodeVersion: '1.86.0' + runId: ${{ github.event.workflow_run.id }} + + DeployAndRetrieve_E2E_tests_min_vscode_version: + if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }} + uses: ./.github/workflows/deployRetrieveE2E.yml + secrets: inherit + with: + automationBranch: 'testesm' + vscodeVersion: '1.86.0' + runId: ${{ github.event.workflow_run.id }} + + LSP_E2E_tests_min_vscode_version: + if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }} + uses: ./.github/workflows/lspE2E.yml + secrets: inherit + with: + automationBranch: 'testesm' + vscodeVersion: '1.86.0' + runId: ${{ github.event.workflow_run.id }} diff --git a/.github/workflows/e2eCJS.yml b/.github/workflows/e2eCJS.yml new file mode 100644 index 0000000000..971f9bb4cb --- /dev/null +++ b/.github/workflows/e2eCJS.yml @@ -0,0 +1,113 @@ +name: E2E Test Suite - CJS + +on: + workflow_run: + workflows: + - Nightly Build Develop + - Test, Build, and Release + - Create and Test Beta Release Branch + types: + - completed + + workflow_dispatch: + inputs: + automationBranch: + description: 'Set the branch to use for automation tests in CJS' + required: false + default: 'develop' + type: string + debugLwcTests: + description: 'Debug LWC Tests' + required: false + default: true + type: boolean + runLwcTests: + description: 'Run LWC Tests' + required: false + default: true + type: boolean + visualforceLsp: + description: 'Visualforce LSP' + required: false + default: true + type: boolean + runId: + description: 'Run ID of the workflow run that created the vsixes' + required: true + type: string + +jobs: + debugLwcTests: + if: ${{ inputs.debugLwcTests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch || 'develop' }} + testToRun: 'debugLwcTests.e2e.ts' + vscodeVersion: '1.85.2' + runId: ${{ inputs.runId || github.event.workflow_run.id }} + os: '["macos-latest"]' + + runLwcTests: + if: ${{ inputs.runLwcTests || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch || 'develop' }} + testToRun: 'runLwcTests.e2e.ts' + vscodeVersion: '1.85.2' + runId: ${{ inputs.runId || github.event.workflow_run.id }} + os: '["macos-latest"]' + + visualforceLsp: + if: ${{ inputs.visualforceLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch || 'develop' }} + testToRun: 'visualforceLsp.e2e.ts' + vscodeVersion: '1.85.2' + runId: ${{ inputs.runId || github.event.workflow_run.id }} + os: '["windows-latest"]' + + slack_success_notification: + if: ${{ success() }} + needs: [debugLwcTests, runLwcTests, visualforceLsp] + uses: ./.github/workflows/slackNotification.yml + secrets: inherit + with: + title: 'E2E Test Suite - CJS' + vscodeVersion: '1.85.2' + testsBranch: ${{ inputs.automationBranch || 'develop' }} + summary: '\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' + result: 'All the tests passed.' + workflow: 'actions/runs/${{ github.run_id }}' + type: 'e2e' + + slack_failure_notification: + if: ${{ failure() }} + needs: [debugLwcTests, runLwcTests, visualforceLsp] + uses: ./.github/workflows/slackNotification.yml + secrets: inherit + with: + title: 'E2E Test Suite - CJS' + vscodeVersion: '1.85.2' + testsBranch: ${{ inputs.automationBranch || 'develop' }} + summary: '\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' + result: 'Not all the tests passed.' + workflow: 'actions/runs/${{ github.run_id }}' + type: 'e2e' + + slack_cancelled_notification: + if: ${{ cancelled() }} + needs: [debugLwcTests, runLwcTests, visualforceLsp] + uses: ./.github/workflows/slackNotification.yml + secrets: inherit + with: + title: 'E2E Test Suite - CJS' + vscodeVersion: '1.85.2' + testsBranch: ${{ inputs.automationBranch || 'develop' }} + summary: '\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' + result: 'The workflow was cancelled.' + workflow: 'actions/runs/${{ github.run_id }}' + type: 'e2e' diff --git a/.github/workflows/e2eNew.yml b/.github/workflows/e2eNew.yml deleted file mode 100644 index c861cfbd81..0000000000 --- a/.github/workflows/e2eNew.yml +++ /dev/null @@ -1,236 +0,0 @@ -name: E2E Test Suite - ESM - -on: - workflow_run: - workflows: - - Nightly Build Develop - - Test, Build, and Release - types: - - completed - - workflow_dispatch: - inputs: - automationBranch: - description: 'Set the branch to use for automation tests' - required: false - default: 'testesm' - type: string - deployAndRetrieve: - description: 'Deploy and Retrieve' - required: false - default: true - type: boolean - manifestBuilder: - description: 'Manifest Builder' - required: false - default: true - type: boolean - pushAndPull: - description: 'Push and Pull' - required: false - default: true - type: boolean - auraLsp: - description: 'Aura LSP' - required: false - default: true - type: boolean - lwcLsp: - description: 'LWC LSP' - required: false - default: true - type: boolean - visualforceLsp: - description: 'Visualforce LSP' - required: false - default: true - type: boolean - vscodeVersion: - description: 'VSCode Version' - required: false - default: 'stable' - type: string - runId: - description: 'Run ID of the workflow run that created the vsixes' - required: true - type: string - - workflow_call: - inputs: - automationBranch: - description: 'Set the branch to use for automation tests' - required: false - default: 'testesm' - type: string - deployAndRetrieve: - description: 'Deploy and Retrieve' - required: false - default: true - type: boolean - manifestBuilder: - description: 'Manifest Builder' - required: false - default: true - type: boolean - pushAndPull: - description: 'Push and Pull' - required: false - default: true - type: boolean - auraLsp: - description: 'Aura LSP' - required: false - default: true - type: boolean - lwcLsp: - description: 'LWC LSP' - required: false - default: true - type: boolean - visualforceLsp: - description: 'Visualforce LSP' - required: false - default: true - type: boolean - vscodeVersion: - description: 'VSCode Version' - required: false - default: 'stable' - type: string - runId: - description: 'Run ID of the workflow run that created the vsixes' - required: true - type: string - -jobs: - deployAndRetrieve: - if: ${{ inputs.deployAndRetrieve || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch || 'testesm' }} - testToRun: 'deployAndRetrieve.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: '["macos-latest", "ubuntu-latest", "windows-latest"]' - - manifestBuilder: - if: ${{ inputs.manifestBuilder || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch || 'testesm' }} - testToRun: 'manifestBuilder.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: '["macos-latest", "ubuntu-latest", "windows-latest"]' - - pushAndPull: - if: ${{ inputs.pushAndPull || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch || 'testesm' }} - testToRun: 'pushAndPull.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: '["macos-latest", "ubuntu-latest", "windows-latest"]' - - auraLsp: - if: ${{ inputs.auraLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch || 'testesm' }} - testToRun: 'auraLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: '["macos-latest", "ubuntu-latest", "windows-latest"]' - - visualforceLsp: - if: ${{ inputs.visualforceLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch || 'testesm' }} - testToRun: 'visualforceLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: '["macos-latest", "ubuntu-latest"]' - - lwcLsp: - if: ${{ inputs.lwcLsp || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success') }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch || 'testesm' }} - testToRun: 'lwcLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - runId: ${{ inputs.runId || github.event.workflow_run.id }} - os: '["macos-latest", "ubuntu-latest", "windows-latest"]' - - slack_success_notification: - if: ${{ success() }} - needs: - [ - deployAndRetrieve, - manifestBuilder, - pushAndPull, - auraLsp, - lwcLsp, - visualforceLsp - ] - uses: ./.github/workflows/slackNotification.yml - secrets: inherit - with: - title: 'E2E Test Suite - ESM' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - testsBranch: ${{ inputs.automationBranch || 'testesm' }} - summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' - result: 'All the tests passed.' - workflow: 'actions/runs/${{ github.run_id }}' - type: 'e2e' - - slack_failure_notification: - if: ${{ failure() }} - needs: - [ - deployAndRetrieve, - manifestBuilder, - pushAndPull, - auraLsp, - lwcLsp, - visualforceLsp - ] - uses: ./.github/workflows/slackNotification.yml - secrets: inherit - with: - title: 'E2E Test Suite - ESM' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - testsBranch: ${{ inputs.automationBranch || 'testesm' }} - summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' - result: 'Not all the tests passed.' - workflow: 'actions/runs/${{ github.run_id }}' - type: 'e2e' - - slack_cancelled_notification: - if: ${{ cancelled() }} - needs: - [ - deployAndRetrieve, - manifestBuilder, - pushAndPull, - auraLsp, - lwcLsp, - visualforceLsp - ] - uses: ./.github/workflows/slackNotification.yml - secrets: inherit - with: - title: 'E2E Test Suite - ESM' - vscodeVersion: ${{ inputs.vscodeVersion || 'stable' }} - testsBranch: ${{ inputs.automationBranch || 'testesm' }} - summary: '\n- Deploy and Retrieve: ${{ needs.deployAndRetrieve.result }}\n- Manifest Builder: ${{ needs.manifestBuilder.result }}\n- Push and Pull: ${{ needs.pushAndPull.result }}\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' - result: 'The workflow was cancelled.' - workflow: 'actions/runs/${{ github.run_id }}' - type: 'e2e' diff --git a/.github/workflows/lspE2E.yml b/.github/workflows/lspE2E.yml index 574c78666d..9ae20fae37 100644 --- a/.github/workflows/lspE2E.yml +++ b/.github/workflows/lspE2E.yml @@ -6,13 +6,18 @@ on: automationBranch: description: 'Set the branch to use for automation tests' required: false - default: 'develop' + default: 'testesm' type: string auraLsp: description: 'Aura LSP' required: false default: true type: boolean + lwcLsp: + description: 'LWC LSP' + required: false + default: true + type: boolean visualforceLsp: description: 'Visualforce LSP' required: false @@ -21,7 +26,7 @@ on: vscodeVersion: description: 'VSCode Version' required: false - default: '1.85.2' + default: 'stable' type: string runId: description: 'Run ID of the workflow run that created the vsixes' @@ -33,13 +38,18 @@ on: automationBranch: description: 'Set the branch to use for automation tests' required: false - default: 'develop' + default: 'testesm' type: string auraLsp: description: 'Aura LSP' required: false default: true type: boolean + lwcLsp: + description: 'LWC LSP' + required: false + default: true + type: boolean visualforceLsp: description: 'Visualforce LSP' required: false @@ -48,7 +58,7 @@ on: vscodeVersion: description: 'VSCode Version' required: false - default: '1.85.2' + default: 'stable' type: string runId: description: 'Run ID of the workflow run that created the vsixes' @@ -63,7 +73,17 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'auraLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} + runId: ${{ inputs.runId }} + + lwcLSP: + if: ${{ inputs.lwcLsp }} + uses: ./.github/workflows/runE2ETest.yml + secrets: inherit + with: + automationBranch: ${{ inputs.automationBranch }} + testToRun: 'lwcLsp.e2e.ts' + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} visualforceLSP: @@ -73,47 +93,48 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'visualforceLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} + os: '["macos-latest", "ubuntu-latest"]' slack_success_notification: if: ${{ success() }} - needs: [auraLSP, visualforceLSP] + needs: [auraLSP, lwcLSP, visualforceLSP] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LSP E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- Aura LSP: ${{ needs.auraLSP.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' + summary: '\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLSP.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' result: 'All the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' slack_failure_notification: if: ${{ failure() }} - needs: [auraLSP, visualforceLSP] + needs: [auraLSP, lwcLSP, visualforceLSP] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LSP E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- Aura LSP: ${{ needs.auraLSP.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' + summary: '\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLSP.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' result: 'Not all the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' slack_cancelled_notification: if: ${{ cancelled() }} - needs: [auraLSP, visualforceLSP] + needs: [auraLSP, lwcLSP, visualforceLSP] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LSP E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- Aura LSP: ${{ needs.auraLSP.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' + summary: '\n- Aura LSP: ${{ needs.auraLSP.result }}\n- LWC LSP: ${{ needs.lwcLSP.result }}\n- Visualforce LSP: ${{ needs.visualforceLSP.result }}' result: 'The workflow was cancelled.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' diff --git a/.github/workflows/lwcE2E.yml b/.github/workflows/lwcE2E.yml index db23f5d925..2316bf62a2 100644 --- a/.github/workflows/lwcE2E.yml +++ b/.github/workflows/lwcE2E.yml @@ -8,11 +8,6 @@ on: required: false default: 'develop' type: string - lwcLsp: - description: 'LWC LSP' - required: false - default: true - type: boolean debugLwcTests: description: 'Debug LWC Tests' required: false @@ -40,11 +35,6 @@ on: required: false default: 'develop' type: string - lwcLsp: - description: 'LWC LSP' - required: false - default: true - type: boolean debugLwcTests: description: 'Debug LWC Tests' required: false @@ -66,16 +56,6 @@ on: type: string jobs: - lwcLsp: - if: ${{ inputs.lwcLsp }} - uses: ./.github/workflows/runE2ETest.yml - secrets: inherit - with: - automationBranch: ${{ inputs.automationBranch }} - testToRun: 'lwcLsp.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} - runId: ${{ inputs.runId }} - debugLwcTests: if: ${{ inputs.debugLwcTests }} uses: ./.github/workflows/runE2ETest.yml @@ -83,8 +63,9 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'debugLwcTests.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} + os: '["macos-latest"]' runLwcTests: if: ${{ inputs.runLwcTests }} @@ -93,47 +74,48 @@ jobs: with: automationBranch: ${{ inputs.automationBranch }} testToRun: 'runLwcTests.e2e.ts' - vscodeVersion: ${{ inputs.vscodeVersion || '1.85.2' }} + vscodeVersion: ${{ inputs.vscodeVersion }} runId: ${{ inputs.runId }} + os: '["macos-latest"]' slack_success_notification: if: ${{ success() }} - needs: [lwcLsp, debugLwcTests, runLwcTests] + needs: [debugLwcTests, runLwcTests] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LWC E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}' + summary: '\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}' result: 'All the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' slack_failure_notification: if: ${{ failure() }} - needs: [lwcLsp, debugLwcTests, runLwcTests] + needs: [debugLwcTests, runLwcTests] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LWC E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}' + summary: '\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}' result: 'Not all the tests passed.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' slack_cancelled_notification: if: ${{ cancelled() }} - needs: [lwcLsp, debugLwcTests, runLwcTests] + needs: [debugLwcTests, runLwcTests] uses: ./.github/workflows/slackNotification.yml secrets: inherit with: title: 'LWC E2E Tests' vscodeVersion: ${{ inputs.vscodeVersion }} testsBranch: ${{ inputs.automationBranch }} - summary: '\n- LWC LSP: ${{ needs.lwcLsp.result }}\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}' + summary: '\n- Debug LWC Tests: ${{ needs.debugLwcTests.result }}\n- Run LWC Tests: ${{ needs.runLwcTests.result }}' result: 'The workflow was cancelled.' workflow: 'actions/runs/${{ github.run_id }}' type: 'e2e' diff --git a/packages/salesforcedx-vscode-expanded/README.md b/packages/salesforcedx-vscode-expanded/README.md index 7793dfd7d3..1eecaf00eb 100644 --- a/packages/salesforcedx-vscode-expanded/README.md +++ b/packages/salesforcedx-vscode-expanded/README.md @@ -20,7 +20,7 @@ Before you set up Salesforce Extensions for VS Code, make sure that you have the If you also use other versions of the JDK, set your VS Code user setting `salesforcedx-vscode-apex.java.home` to point to the location where you installed Java 11, 17, or 21. -- **[Visual Studio Code](https://code.visualstudio.com/download) v1.82.0 or later** +- **[Visual Studio Code](https://code.visualstudio.com/download) v1.86.0 or later** ## Documentation diff --git a/packages/salesforcedx-vscode/README.md b/packages/salesforcedx-vscode/README.md index 953dd94840..8a486d4bba 100644 --- a/packages/salesforcedx-vscode/README.md +++ b/packages/salesforcedx-vscode/README.md @@ -14,14 +14,14 @@ Before you set up Salesforce Extensions for VS Code, make sure that you have the Open your Salesforce DX project in a directory that contains an `sfdx-project.json` file. Otherwise, some features don’t work. If you don't already have a Salesforce DX project, create one with the **SFDX: Create Project** command (for development against scratch orgs) or the **SFDX: Create Project with Manifest** command (for development against sandboxes or DE orgs). Or, see [create a Salesforce DX project](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_workspace_setup.htm) for information about setting up a project using Salesforce CLI. - **Java Platform, Standard Edition Development Kit** - + Some features in Salesforce Extensions for VS Code depend upon the Java Platform, Standard Edition Development Kit (JDK). You need to have either version 11, version 17, or version 21 of the JDK installed. If you don’t already have version 11, 17 or 21 of the JDK installed, you can install the latest version of the Java 11 JDK from [Java 11 Downloads](https://www.oracle.com/java/technologies/downloads/#java11), Java 17 from [Java 17 Downloads](https://www.oracle.com/java/technologies/downloads/#java17), or Java 21 from [Java 21 Downloads](https://www.oracle.com/java/technologies/downloads/#java21). If you also use other versions of the JDK, set your VS Code user setting `salesforcedx-vscode-apex.java.home` to point to the location where you installed Java 11, 17, or 21. -- **[Visual Studio Code](https://code.visualstudio.com/download) v1.82 or later**. We recommend that you use Salesforce Extension Pack versions earlier than 59.15.0 if you aren't able to update your version of VS Code. Note that we aren't able to support fixes for these earlier versions. +- **[Visual Studio Code](https://code.visualstudio.com/download) v1.86 or later**. We recommend that you use Salesforce Extension Pack versions earlier than 59.15.0 if you aren't able to update your version of VS Code. Note that we aren't able to support fixes for these earlier versions. ## Documentation