-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into sm/better-project-error
- Loading branch information
Showing
190 changed files
with
12,851 additions
and
12,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ECCN: Open Source | ||
#GUSINFO:Open Source,Open Source Workflow | ||
|
||
# For more info on this file syntax: | ||
# https://help.github.com/en/articles/about-code-owners | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. | ||
|
||
* @forcedotcom/platform-cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Bundle | ||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
description: 'Set the branch to bundle core' | ||
required: false | ||
type: string | ||
nodeVersion: | ||
description: version of node to use. It's better to specify latest, lts/* or lts/-1 than to hardode numbers | ||
type: string | ||
default: lts/* | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.nodeVersion }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- name: Install esbuild Dependencies | ||
run: | | ||
yarn add -D esbuild@^0.19.5 esbuild-plugin-pino@^2.1.0 npm-dts@^1.3.12 esbuild-plugin-tsc@^0.4.0 | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- name: Update for Bundling | ||
run: | | ||
node scripts/updateForBundling.js | ||
- name: Generate Bundle | ||
run: | | ||
yarn build | ||
node scripts/build.js | ||
- name: Post Bundling Update | ||
run: | | ||
node scripts/postBundlingUpdate.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: create-github-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- prerelease/** | ||
tags-ignore: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
prerelease: | ||
type: string | ||
description: 'Name to use for the prerelease: beta, dev, etc. NOTE: If this is already set in the package.json, it does not need to be passed in here.' | ||
|
||
jobs: | ||
release: | ||
uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main | ||
secrets: inherit | ||
with: | ||
prerelease: ${{ inputs.prerelease }} | ||
# If this is a push event, we want to skip the release if there are no semantic commits | ||
# However, if this is a manual release (workflow_dispatch), then we want to disable skip-on-empty | ||
# This helps recover from forgetting to add semantic commits ('fix:', 'feat:', etc.) | ||
skip-on-empty: ${{ github.event_name == 'push' }} | ||
docs: | ||
needs: release | ||
if: github.ref_name == 'main' | ||
uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: esbuild Compilation & npm Publish Workflow | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- create-github-release | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Set the branch to use for automation tests' | ||
type: string | ||
required: false | ||
default: 'main' | ||
nodeVersion: | ||
description: version of node to use. It's better to specify latest, lts/* or lts/-1 than to hardode numbers | ||
type: string | ||
default: lts/* | ||
required: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.nodeVersion }} | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: yarn | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- name: Install esbuild Dependencies | ||
run: | | ||
yarn add -D esbuild@^0.19.5 esbuild-plugin-pino@^2.1.0 npm-dts@^1.3.12 esbuild-plugin-tsc@^0.4.0 | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
- name: Update for Bundling | ||
run: | | ||
node scripts/updateForBundling.js | ||
- name: Generate Bundle | ||
run: | | ||
yarn build | ||
node scripts/build.js | ||
- name: Post Bundling Update | ||
run: | | ||
node scripts/postBundlingUpdate.js | ||
- name: Publish a Package | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# runs some very-large-repo tests (for windows filesystem limits) and commits perf results for comparison | ||
name: perf-tests | ||
on: | ||
push: | ||
branches-ignore: [main, gh-pages] | ||
workflow_dispatch: | ||
|
||
# linux will finish ahead of windows, but prevent other branches/commits from hitting simultaneously | ||
# since we're pushing git commits and there would be conflicts | ||
concurrency: perf-test | ||
|
||
jobs: | ||
perf-tests: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
fail-fast: false | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
cache: yarn | ||
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main | ||
with: | ||
ignore-scripts: true | ||
- run: yarn build | ||
- run: npm run test:perf | tee test/perf/output.txt | ||
|
||
# Run `github-action-benchmark` action | ||
- name: Store benchmark result | ||
uses: benchmark-action/github-action-benchmark@5bbce78ef18edf5b96cb2d23e8d240b485f9dc4a | ||
with: | ||
name: Logger Benchmarks - ${{ matrix.os }} | ||
tool: 'benchmarkjs' | ||
output-file-path: test/perf/output.txt | ||
comment-on-alert: true | ||
# Push and deploy GitHub pages branch automatically | ||
# this has a bug where it creates duplicate commits when summary-always and aut-push are both true | ||
# summary-always: true | ||
comment-always: true | ||
benchmark-data-dir-path: perf-${{ runner.os}} | ||
auto-push: true | ||
github-token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c718a47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logger Benchmarks - ubuntu-latest
Child logger creation
466722
ops/sec (±1.70%
)469254
ops/sec (±0.57%
)1.01
Logging a string on root logger
800875
ops/sec (±6.47%
)831676
ops/sec (±8.24%
)1.04
Logging an object on root logger
633821
ops/sec (±6.44%
)624083
ops/sec (±8.95%
)0.98
Logging an object with a message on root logger
5688
ops/sec (±216.73%
)3277
ops/sec (±234.93%
)0.58
Logging an object with a redacted prop on root logger
465532
ops/sec (±8.87%
)428759
ops/sec (±9.65%
)0.92
Logging a nested 3-level object on root logger
354677
ops/sec (±7.84%
)390398
ops/sec (±8.03%
)1.10
This comment was automatically generated by workflow using github-action-benchmark.
c718a47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logger Benchmarks - windows-latest
Child logger creation
313947
ops/sec (±3.60%
)329984
ops/sec (±0.78%
)1.05
Logging a string on root logger
718456
ops/sec (±7.47%
)801521
ops/sec (±5.09%
)1.12
Logging an object on root logger
566318
ops/sec (±7.69%
)565751
ops/sec (±9.07%
)1.00
Logging an object with a message on root logger
10898
ops/sec (±190.01%
)6053
ops/sec (±205.20%
)0.56
Logging an object with a redacted prop on root logger
439354
ops/sec (±11.93%
)421431
ops/sec (±11.19%
)0.96
Logging a nested 3-level object on root logger
331882
ops/sec (±5.25%
)327142
ops/sec (±5.44%
)0.99
This comment was automatically generated by workflow using github-action-benchmark.