Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: cross-save resistant configFile #959

Merged
merged 80 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
bad6dfb
feat(wip): crdt-configfile
mshanemc Oct 9, 2023
20a6c90
refactor: share lockfile options
mshanemc Oct 10, 2023
91316a7
feat: configFile file locks and write-via-merge
mshanemc Oct 10, 2023
947b3df
test: mocks for new stat/read changes
mshanemc Oct 10, 2023
03a7b8e
test(wip): mocks for lockfile, but also some TBD skips
mshanemc Oct 11, 2023
e7e23bb
test: how are the nuts
mshanemc Oct 11, 2023
8e346ca
feat!: remove parameters on config.write
mshanemc Oct 11, 2023
cdd36fb
refactor: defaults via spread
mshanemc Oct 11, 2023
dddd83b
refactor: configFile.write handles file creation
mshanemc Oct 11, 2023
a039b7f
test: soiGenerator uses testSetup for projects, auth
mshanemc Oct 11, 2023
bde5005
feat: typing for what goes in the org-user file
mshanemc Oct 11, 2023
a36f946
test: un-skip more tests
mshanemc Oct 11, 2023
13dd085
refactor: set configs username prop, no mutating
mshanemc Oct 11, 2023
469373f
test: remove more skips
mshanemc Oct 11, 2023
57d56ce
test: ttlConfig expiration logic
mshanemc Oct 12, 2023
41423d6
feat!: make AuthInfo.getFields return readonly
mshanemc Oct 12, 2023
c5926f0
refactor: restore testSetup.uniqid export
mshanemc Oct 13, 2023
2481288
chore: bump dev-scripts
mshanemc Oct 13, 2023
4e02b0a
chore: bump jsforce deps
mshanemc Oct 13, 2023
9dff8f0
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Oct 13, 2023
70633b9
chore(release): 6.0.1-crdt.0 [skip ci]
svc-cli-bot Oct 13, 2023
e4407a7
chore: use v5 for consistent resolutions
mshanemc Oct 13, 2023
51c1b9f
Merge branch 'sm/crdt-config' of https://github.com/forcedotcom/sfdx-…
mshanemc Oct 13, 2023
a45bbf5
chore(release): 5.4.0-crdt.1 [skip ci]
svc-cli-bot Oct 13, 2023
6904cf2
refactor: further reduce contents replacement
mshanemc Oct 13, 2023
f6f677f
chore: downgrade jsforce
mshanemc Oct 16, 2023
079d73b
Merge branch 'sm/crdt-config' of https://github.com/forcedotcom/sfdx-…
mshanemc Oct 16, 2023
5a85d53
ci: don't update jsforce to latest
mshanemc Oct 16, 2023
f3abda1
ci: pdr tracking xnuts
mshanemc Oct 16, 2023
79540e6
test: pin jsforce to 27
mshanemc Oct 16, 2023
2cb98df
test: not data, yes pdr
mshanemc Oct 17, 2023
c03ec4d
ci: try forcing to jsforce top-level
mshanemc Oct 18, 2023
1f85774
test: restore plugin-data tests
mshanemc Oct 18, 2023
60bfafd
test: remove core from more libraries to force this version
mshanemc Oct 18, 2023
1f0bc06
chore: comment about jsforce nut versioning
mshanemc Oct 18, 2023
cd80931
test: run all ttlConfig tests
mshanemc Oct 18, 2023
1b8145d
feat!: remove everything about tokenConfig
mshanemc Oct 18, 2023
b0790f3
feat!: drop support for lodash-style deep get/set
mshanemc Oct 18, 2023
af58bc9
feat!: setContents becomes protected
mshanemc Oct 19, 2023
7412d10
fix: permissionSet type changes
mshanemc Oct 19, 2023
68bab5d
refactor: no id/peer required
mshanemc Oct 19, 2023
20e32bd
refactor: tighten up property keys
mshanemc Oct 19, 2023
f1f20a6
test: more timestamp offset for bigInt UT
mshanemc Oct 19, 2023
a332085
feat!: don't export findUppercaseKeys
mshanemc Oct 19, 2023
b184d51
test: nuts wait for UT
mshanemc Oct 19, 2023
903fc59
feat!: remove SchemaPrinter
mshanemc Oct 19, 2023
25a525a
perf: parallelize clear writes
mshanemc Oct 19, 2023
86f3213
fix!: remove accidental export of getLoginAudienceCombos
mshanemc Oct 20, 2023
b3ba85b
refactor: crdt patterns on sfdxConfig
mshanemc Oct 20, 2023
f33dc5d
test: safe when no sfdx config file
mshanemc Oct 20, 2023
5eaeb2f
test: catch when sfdx-config.json isn't there
mshanemc Oct 20, 2023
80f21a3
feat: remove sfdxConfig class
mshanemc Oct 23, 2023
46ea638
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Oct 23, 2023
67e6f5a
test: back to jsforce latest
mshanemc Oct 23, 2023
938e5da
chore: bump deps for xnuts
mshanemc Oct 23, 2023
02bc9d6
refactor: remove barrel files
mshanemc Oct 24, 2023
d2e31b4
refactor: example imports and shared timestamp fn
mshanemc Oct 25, 2023
ead7330
test: concurrency tests in configFile
mshanemc Oct 25, 2023
6227ee0
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Oct 25, 2023
37ed65b
chore: remove unused unexported code
mshanemc Oct 25, 2023
cdfdc79
docs: v5 to v6 migration
mshanemc Oct 26, 2023
b0f12e2
refactor: extract duplicat code, log more file contents
mshanemc Oct 26, 2023
2a3dbec
chore: pr feedback
mshanemc Oct 27, 2023
19e4679
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Oct 27, 2023
e36e102
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Oct 31, 2023
9d99e61
refactor: steve review
mshanemc Oct 31, 2023
29c59e0
feat: reusable file locks outside of ConfigFile
mshanemc Nov 8, 2023
5562a3d
Merge pull request #981 from forcedotcom/sm/reusable-file-locks
mshanemc Nov 9, 2023
a702f2b
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Nov 9, 2023
9fe6f49
refactor: dev-scripts
mshanemc Nov 9, 2023
7a940f3
test: remove plugin-env from external nuts (it has none)
mshanemc Nov 9, 2023
3e9c988
test: add apex, comunity nuts
mshanemc Nov 9, 2023
d5b345f
ci: also remove core from apex-node lib
mshanemc Nov 10, 2023
a57f79f
Merge pull request #982 from forcedotcom/sm/dev-scripts
mshanemc Nov 10, 2023
4dbd64a
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Nov 10, 2023
4e66905
feat: ts5 and ts-patch
mshanemc Nov 10, 2023
2b6556b
Merge pull request #983 from forcedotcom/sm/ts-patch
WillieRuemmele Nov 10, 2023
82c4e18
Merge remote-tracking branch 'origin/main' into sm/crdt-config
mshanemc Nov 13, 2023
515b5a8
chore: bump major
mshanemc Nov 13, 2023
ac78de4
refactor: revert #980 in favor of a jsforce solution
mshanemc Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
55 changes: 33 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
windows-unit-tests:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
nuts:
xNuts:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
strategy:
Expand All @@ -40,26 +40,37 @@ jobs:
os: ${{ matrix.os }}
useCache: false
preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install'
preExternalBuildCommands: 'shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@salesforce/core'
preExternalBuildCommands: 'shx rm -rf node_modules/@salesforce/core/node_modules/jsforce shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@salesforce/core node_modules/@salesforce/cli-plugins-testkit/node_modules/@salesforce/core node_modules/@salesforce/source-tracking/node_modules/@salesforce/core node_modules/@salesforce/source-deploy-retrieve/node_modules/@salesforce/core'
secrets: inherit
# hidden until we fix source-testkit to better handle jwt
# deployRetrieveNuts:
# needs: unit-tests
# uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
# strategy:
# fail-fast: false
# matrix:
# os: ['windows-latest-16x', 'ubuntu-latest-16x']
# command:
# - yarn test:nuts:deploy:metadata:manifest
# - yarn test:nuts:deploy:metadata:metadata
# - yarn test:nuts:deploy:metadata:source-dir
# - yarn test:nuts:deploy:metadata:test-level
# - yarn test:nuts:static
# with:
# packageName: '@salesforce/core'
# externalProjectGitUrl: 'https://github.com/salesforcecli/plugin-deploy-retrieve'
# preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install'
# command: ${{ matrix.command }}
# os: ${{ matrix.os }}
# secrets: inherit
pdrNuts:
needs: linux-unit-tests
uses: salesforcecli/github-workflows/.github/workflows/externalNut.yml@main
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest']
command:
- 'yarn test:nuts:convert'
- 'yarn test:nuts:deb'
- 'yarn test:nuts:delete'
- 'yarn test:nuts:deploy:metadata:manifest'
- 'yarn test:nuts:deploy:metadata:metadata'
- 'yarn test:nuts:deploy:metadata:metadata-dir'
- 'yarn test:nuts:deploy:metadata:source-dir'
- 'yarn test:nuts:deploy:metadata:test-level'
- 'yarn test:nuts:destructive'
- 'yarn test:nuts:manifest'
- 'yarn test:nuts:retrieve'
- 'yarn test:nuts:specialTypes'
- 'yarn test:nuts:static'
- 'yarn test:nuts:tracking'
with:
packageName: '@salesforce/core'
externalProjectGitUrl: 'https://github.com/salesforcecli/plugin-deploy-retrieve'
preSwapCommands: 'yarn upgrade jsforce@beta; npx yarn-deduplicate; yarn install'
command: ${{ matrix.command }}
os: ${{ matrix.os }}
preExternalBuildCommands: 'shx rm -rf node_modules/@salesforce/core/node_modules/jsforce shx rm -rf node_modules/@salesforce/sf-plugins-core/node_modules/@salesforce/core node_modules/@salesforce/cli-plugins-testkit/node_modules/@salesforce/core node_modules/@salesforce/source-tracking/node_modules/@salesforce/core node_modules/@salesforce/source-deploy-retrieve/node_modules/@salesforce/core'
secrets:
TESTKIT_AUTH_URL: ${{ secrets.TESTKIT_AUTH_URL }}
Loading