Skip to content

Commit bc043a8

Browse files
Merge pull request #248 from forcedotcom/release-1.8.0
RELEASE @W-18718646@ Releasing v1.8.0
2 parents 6727b8f + f87013c commit bc043a8

19 files changed

+1406
-2771
lines changed

.github/ISSUE_TEMPLATE/0-bug-report.yml

Lines changed: 0 additions & 107 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/1-feature-request.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Report a Bug
4+
url: https://github.com/forcedotcom/code-analyzer/issues/new?template=2-vscode_extension_bug.yml
5+
about: Create an issue in our main repository.
6+
- name: Request a New Feature
7+
url: https://github.com/forcedotcom/code-analyzer/issues/new?template=5-feature_request.yml
8+
about: Request a feature in our main repository.

.github/workflows/build-scanner-tarball.yml renamed to .github/workflows/build-tarball.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: build-scanner-tarball
1+
name: build-tarball
22
on:
33
workflow_call:
44
inputs:
55
target-branch:
6-
description: "Which branch of the scanner should be built?"
6+
description: "Which branch of code analyzer should be built?"
77
required: false
88
type: string
9-
default: "dev-4"
9+
default: "dev"
1010

1111
jobs:
1212
build-tarball:
@@ -22,11 +22,15 @@ jobs:
2222
with:
2323
distribution: 'temurin'
2424
java-version: '11' # Always use Java v11 for building the tarball.
25+
- name: 'Install Python'
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: '3.10' # Minimum version required by code-analyzer.
2529
- name: 'Check out, build, pack'
2630
run: |
2731
# Check out the target branch.
28-
git clone -b ${{ inputs.target-branch }} https://github.com/forcedotcom/sfdx-scanner.git sfdx-scanner
29-
cd sfdx-scanner
32+
git clone -b ${{ inputs.target-branch }} https://github.com/forcedotcom/code-analyzer.git code-analyzer
33+
cd code-analyzer
3034
# Install and build dependencies.
3135
if [[ "${{ inputs.target-branch}}" == "dev-4" ]]; then
3236
yarn
@@ -40,5 +44,5 @@ jobs:
4044
# Upload the tarball as an artifact so it's usable elsewhere.
4145
- uses: actions/upload-artifact@v4
4246
with:
43-
name: scanner-tarball-${{ inputs.target-branch }}
47+
name: tarball-${{ inputs.target-branch }}
4448
path: ./**/salesforce-*.tgz

.github/workflows/create-release-branch.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ jobs:
4747
if: ${{ needs.verify-should-run.outputs.should-run == 'true' }}
4848
env:
4949
GH_TOKEN: ${{ github.token }}
50-
permissions:
51-
contents: write
5250
outputs:
5351
branch-name: ${{ steps.create-branch.outputs.branch_name }}
5452
steps:
@@ -141,36 +139,36 @@ jobs:
141139
git push -d origin ${NEW_VERSION}-interim
142140
# Output the release branch name so we can use it in later jobs.
143141
echo "branch_name=release-$NEW_VERSION" >> "$GITHUB_OUTPUT"
144-
# Build the scanner tarballs so they can be installed locally when we run tests.
142+
# Build the tarballs so they can be installed locally when we run tests.
145143
build-v4-scanner-tarball:
146144
name: 'Build v4 scanner tarball'
147145
needs: verify-should-run
148-
uses: ./.github/workflows/build-scanner-tarball.yml
146+
uses: ./.github/workflows/build-tarball.yml
149147
with:
150148
# Note: Using `dev-4` here is technically incorrect. For full completeness's sake, we should probably be
151149
# using the branch corresponding to the upcoming scanner release. However, identifying that branch is
152150
# non-trivial, and there are unlikely to be major differences between the two that appear in the few days
153151
# between creating the branch and releasing it, so it _should_ be fine.
154152
target-branch: 'dev-4'
155-
build-v5-scanner-tarball:
156-
name: 'Build v5 scanner tarball'
153+
build-v5-code-analyzer-tarball:
154+
name: 'Build v5 code-analyzer tarball'
157155
needs: verify-should-run
158-
uses: ./.github/workflows/build-scanner-tarball.yml
156+
uses: ./.github/workflows/build-tarball.yml
159157
with:
160158
# Note: Using `dev` here is technically incorrect. For full completeness's sake, we should probably be
161-
# using the branch corresponding to the upcoming scanner release. However, identifying that branch is
159+
# using the branch corresponding to the upcoming code-analyzer release. However, identifying that branch is
162160
# non-trivial, and there are unlikely to be major differences between the two that appear in the few days
163161
# between creating the branch and releasing it, so it _should_ be fine.
164162
target-branch: 'dev'
165163
# Run all the various tests against the newly created branch.
166164
test-release-branch:
167165
name: 'Run unit tests'
168-
needs: [build-v4-scanner-tarball, build-v5-scanner-tarball, create-release-branch]
166+
needs: [build-v4-scanner-tarball, build-v5-code-analyzer-tarball, create-release-branch]
169167
uses: ./.github/workflows/run-tests.yml
170168
with:
171-
# We want to validate the extension against whatever version of the scanner we *plan* to publish,
169+
# We want to validate the extension against whatever version of code analyzer we *plan* to publish,
172170
# not what's *already* published.
173-
use-scanner-tarballs: true
171+
use-tarballs: true
174172
v4-tarball-suffix: 'dev-4'
175173
v5-tarball-suffix: 'dev'
176174
target-branch: ${{ needs.create-release-branch.outputs.branch-name }}

.github/workflows/daily-smoke-test.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,24 @@ on:
99
- cron: "30 17 * * 1-5"
1010

1111
jobs:
12-
# Step 1: Build the scanner tarballs so they can be installed locally.
13-
build-v4-scanner-tarball:
12+
# Step 1: Build the tarballs so they can be installed locally.
13+
build-v4-tarball:
1414
name: 'Build v4 scanner tarball'
15-
uses: ./.github/workflows/build-scanner-tarball.yml
15+
uses: ./.github/workflows/build-tarball.yml
1616
with:
1717
target-branch: 'dev-4'
18-
build-v5-scanner-tarball:
19-
name: 'Build v5 scanner tarball'
20-
uses: ./.github/workflows/build-scanner-tarball.yml
18+
build-v5-tarball:
19+
name: 'Build v5 code analyzer tarball'
20+
uses: ./.github/workflows/build-tarball.yml
2121
with:
2222
target-branch: 'dev'
2323
# Step 2: Actually run the tests.
2424
smoke-test:
2525
name: 'Run smoke tests'
26-
needs: [build-v4-scanner-tarball, build-v5-scanner-tarball]
26+
needs: [build-v4-tarball, build-v5-tarball]
2727
uses: ./.github/workflows/run-tests.yml
2828
with:
29-
# For daily builds, we want to make sure we haven't pushed a breaking change
30-
# to the scanner's `dev-4` branch.
31-
use-scanner-tarballs: true
29+
use-tarballs: true
3230
v4-tarball-suffix: 'dev-4'
3331
v5-tarball-suffix: 'dev'
3432
secrets: inherit
@@ -41,15 +39,15 @@ jobs:
4139
report-problems:
4240
name: 'Report problems'
4341
runs-on: ubuntu-latest
44-
needs: [build-v4-scanner-tarball, build-v5-scanner-tarball, smoke-test, create-vsix-artifact]
42+
needs: [build-v4-tarball, build-v5-tarball, smoke-test, create-vsix-artifact]
4543
if: ${{ failure() || cancelled() }}
4644
steps:
4745
- name: Report problems
4846
shell: bash
4947
env:
5048
RUN_LINK: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
5149
run: |
52-
ALERT_SEV="critical"
50+
ALERT_SEV="info"
5351
ALERT_SUMMARY="Daily smoke test failed on ${{ runner.os }}"
5452
5553
generate_post_data() {

.github/workflows/production-heartbeat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123

124124
run: |
125125
126-
ALERT_SEV="critical"
126+
ALERT_SEV="info"
127127
ALERT_SUMMARY="Production heartbeat script failed on ${{ runner.os }}"
128128
# Define a helper function to create our POST request's data, to sidestep issues with nested quotations.
129129
generate_post_data() {

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
# Set other miscellaneous environment variables as outputs for later.
5353

5454
run-tests:
55-
name: 'Test against production scanner'
55+
name: 'Test against production plugin'
5656
needs: [ 'validate-release-environment' ]
5757
uses: ./.github/workflows/run-tests.yml
5858
with:
5959
# Before publishing, we want to test the extension against whatever
60-
# version of the scanner is currently live.
61-
use-scanner-tarballs: false
60+
# version of code analyzer is currently live.
61+
use-tarballs: false
6262

6363
publish-vscode:
6464
name: 'Publish to VSCode Marketplace'

0 commit comments

Comments
 (0)