Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

feat: add version-checker to ganache startup #3285

Open
wants to merge 220 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
220 commits
Select commit Hold shift + click to select a range
7e10c4a
feat: create version-check package
davidmurdoch Apr 6, 2022
5e7574d
attempt CI fix
davidmurdoch Apr 7, 2022
2d3c88a
fix
davidmurdoch Apr 7, 2022
366b1d5
Add some missing colors
davidmurdoch Apr 8, 2022
ec42c83
small refactor
davidmurdoch Apr 8, 2022
14d1867
chore(release): publish v7.0.4
TrufBot Apr 5, 2022
7e53ed2
perf: improve performance of the persistent cache used in forking (#2…
jeffsmale90 Apr 7, 2022
47d583d
chore: remove outdated warning about EIP-1193 fork providers (#2856)
gnidan Apr 8, 2022
81219d7
ci: automated release improvements (#2892)
MicaiahReid Apr 18, 2022
0fe323d
squashme - VersionChecker class plated
tenthirtyone Apr 20, 2022
2710629
squashme stub unit tests
tenthirtyone Apr 20, 2022
082fb00
feat: create version-check package
davidmurdoch Apr 6, 2022
8ad68af
attempt CI fix
davidmurdoch Apr 7, 2022
2df3a84
fix
davidmurdoch Apr 7, 2022
9bafbb9
Add some missing colors
davidmurdoch Apr 8, 2022
ce7bab5
small refactor
davidmurdoch Apr 8, 2022
688d51f
squashme unit test start
tenthirtyone Apr 21, 2022
7254472
Merge branch 'feat/version-check' of github.com:trufflesuite/ganache …
tenthirtyone Apr 21, 2022
b075cb7
squashme semver unit tests
tenthirtyone Apr 22, 2022
8486394
squashme fetch wired up
tenthirtyone Apr 22, 2022
eda5028
squashme cleaning up a bit
tenthirtyone Apr 22, 2022
cceae3c
comment out failing semvers
tenthirtyone Apr 22, 2022
72649fb
log unit tests
tenthirtyone Apr 22, 2022
067b6ef
test e2e, add semver package
tenthirtyone Apr 26, 2022
7d2b242
snipe errant branches
tenthirtyone Apr 26, 2022
9dd9100
replace init race condition test with sinon spy
tenthirtyone Apr 26, 2022
101cba1
fail silently if server unavailable
tenthirtyone Apr 26, 2022
b31fd98
final preflight before squash and PR
tenthirtyone Apr 26, 2022
4acdceb
add constructor and config types
tenthirtyone Apr 26, 2022
4eb0838
disable if in CI
tenthirtyone Apr 26, 2022
6677957
logVersionMessage for --version
tenthirtyone Apr 26, 2022
79005d9
Merge branch 'develop' into feat/version-check
tenthirtyone Apr 26, 2022
507801c
remove the disable in CI... because it actually disables in CI... for…
tenthirtyone Apr 26, 2022
42d1a33
add to ganache, fix versionMesage string for yargs
tenthirtyone Apr 26, 2022
d00426b
add version-check back to cli
tenthirtyone Apr 27, 2022
b1dd39d
handle invalid semver
tenthirtyone Apr 27, 2022
4708e1e
only setLatestSemver if valid semver
tenthirtyone Apr 27, 2022
c42334f
clean up my testing changes that were accidentally committed
tenthirtyone Apr 27, 2022
b708e00
Merge branch 'develop' into feat/version-check
tenthirtyone Apr 28, 2022
5cf6fd3
bump @ganache/colors, shrinkwrap
tenthirtyone Apr 28, 2022
ea2016e
add clean and validate function, reduce function checks
tenthirtyone May 2, 2022
acfac1d
disable if currentVersion is not valid semver
tenthirtyone May 2, 2022
6e65b34
validate and clean semver at entry
tenthirtyone May 2, 2022
72db2d5
sparse config test
tenthirtyone May 3, 2022
30ece90
alpha and beta, v strings
tenthirtyone May 3, 2022
33a05c6
Update src/packages/version-check/index.ts
tenthirtyone May 3, 2022
3b56123
move banner to end of CLI, before starting message
tenthirtyone May 3, 2022
e362f23
fix session being held open after stopping in vs code
tenthirtyone May 3, 2022
57682ae
remove scope from package.json
tenthirtyone May 3, 2022
63438e5
fix startGanache banner log location. Add to README
tenthirtyone May 3, 2022
46189b9
fix req.end holding a connection open that prevents starting multiple…
tenthirtyone May 3, 2022
f0aef85
Merge remote-tracking branch 'origin/develop' into feat/version-check
tenthirtyone May 3, 2022
3866f6e
move server files in
tenthirtyone Jun 23, 2022
e510412
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jun 23, 2022
0a864d7
move toml into ganache directory
tenthirtyone Jun 23, 2022
1461133
add version-check back to cli package.json
tenthirtyone Jun 23, 2022
10a946c
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jun 23, 2022
709431f
remove server folder
tenthirtyone Jun 24, 2022
eb9ed4d
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jun 24, 2022
3c088ed
default opt out and update tests
tenthirtyone Jun 24, 2022
8db79ba
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jun 24, 2022
01cdb58
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jun 28, 2022
77e80af
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jul 8, 2022
2a0ddd0
Merge branch 'develop' into feat/version-check-server
davidmurdoch Jul 18, 2022
48e1562
restore a new line
davidmurdoch Jul 18, 2022
1cca690
fix leftover cotenant conf issue, remove hardcoded config key, add pe…
tenthirtyone Jul 20, 2022
2ff8e70
Merge branch 'feat/version-check-server' of github.com:trufflesuite/g…
tenthirtyone Jul 20, 2022
54166b5
Remove conf defaults, change to spread.
tenthirtyone Jul 20, 2022
41ae7b4
the fail is silent, remove unused (e) in catch
tenthirtyone Jul 20, 2022
3456cff
remove cleanSemver from fetchLatest response
tenthirtyone Jul 20, 2022
c9b4256
Update src/packages/version-check/README.md
tenthirtyone Jul 20, 2022
cd741a9
Update src/packages/version-check/src/index.ts
tenthirtyone Jul 20, 2022
0691eac
Update src/packages/version-check/tests/index.test.ts
tenthirtyone Jul 20, 2022
0ca4519
Update src/packages/version-check/src/index.ts
tenthirtyone Jul 20, 2022
fa00b22
change protected properties to private
tenthirtyone Jul 20, 2022
3eca52e
Merge remote-tracking branch 'origin/feat/version-check-server' into …
tenthirtyone Jul 20, 2022
8bc6fbc
finish Types
tenthirtyone Jul 20, 2022
5b89f0d
remove redundant semver clean after validation
tenthirtyone Jul 20, 2022
124555c
banner message types
tenthirtyone Jul 20, 2022
5d3a374
canNotifyUser checks for no change in version
tenthirtyone Jul 20, 2022
65559e7
update unit tests for #logBannerMessage
tenthirtyone Jul 20, 2022
68feff3
remove redundant isValidSemver checks in detectSemverChange
tenthirtyone Jul 20, 2022
399f0de
move enabled check into canNotifyUser
tenthirtyone Jul 20, 2022
5ee7efa
reduce redundancy in canNotify/log
tenthirtyone Jul 20, 2022
043c074
remove cleanSemver
tenthirtyone Jul 20, 2022
208aca8
Update src/packages/version-check/README.md
tenthirtyone Jul 22, 2022
b1f9ea8
Update src/packages/version-check/README.md
tenthirtyone Jul 22, 2022
55eea00
Update src/packages/version-check/README.md
tenthirtyone Jul 22, 2022
b26f68c
Update src/packages/version-check/README.md
tenthirtyone Jul 22, 2022
5adcfd7
Update src/packages/version-check/README.md
tenthirtyone Jul 22, 2022
68314da
Update src/packages/version-check/README.md
tenthirtyone Jul 22, 2022
cafb43f
remove some stuff
tenthirtyone Jul 22, 2022
234c816
destroy function w/ simple app status
tenthirtyone Jul 22, 2022
3b232dd
Merge remote-tracking branch 'origin/feat/version-check-server' into …
tenthirtyone Jul 22, 2022
fb340db
update unit tests for destroy and status
tenthirtyone Jul 22, 2022
6c50f11
remove inner describe
tenthirtyone Jul 26, 2022
ec83182
add done to unit test
tenthirtyone Jul 26, 2022
91243da
remove breakage from destroy
tenthirtyone Jul 26, 2022
83cf282
give mocha an explicit done
tenthirtyone Jul 26, 2022
cc6ab70
remove unnecessary dones
tenthirtyone Jul 26, 2022
45f9ed8
change function in destroy unit test, comment out fail silent test
tenthirtyone Jul 26, 2022
3b8d951
remove broken test
tenthirtyone Jul 26, 2022
d668ce0
add back silent fail test
tenthirtyone Jul 26, 2022
2b83c83
add tests for destroy
tenthirtyone Jul 26, 2022
07485ff
remove broken fail silently test
tenthirtyone Jul 26, 2022
d008f78
remove setTimeout from test api response
tenthirtyone Jul 27, 2022
8af5ac8
remove fail silent test
tenthirtyone Jul 27, 2022
5d7e151
increase default ttl to 2 seconds
tenthirtyone Jul 27, 2022
aab568b
update README, remove sinon from unit tests
tenthirtyone Jul 27, 2022
7377a6c
remove nock and sinon from devdeps
tenthirtyone Jul 27, 2022
1a6e802
remove looooon lines from README sh
tenthirtyone Jul 27, 2022
cccf7b1
rename files from index.ts, split out unit tests
tenthirtyone Jul 27, 2022
b03a266
break ci and semver into separate files
tenthirtyone Jul 27, 2022
a34069b
break ci and semver into separate files
tenthirtyone Jul 27, 2022
2857bd0
move status change in version fetch
tenthirtyone Jul 27, 2022
931ff79
rename fetchLatestVersion fetchLatest
tenthirtyone Jul 27, 2022
b5f06d7
split out ci, semver, update tests
tenthirtyone Jul 27, 2022
2321989
disable in ci
tenthirtyone Jul 27, 2022
47d489a
Merge branch 'feat/version-check-server' of github.com:trufflesuite/g…
tenthirtyone Jul 27, 2022
443ea76
add disableInCI config option to override disable in unit tests
tenthirtyone Jul 27, 2022
d6642e0
remove status
tenthirtyone Jul 27, 2022
61cc14f
ignore ci disable when unit testing
tenthirtyone Jul 27, 2022
e806eb4
fix unit test
tenthirtyone Jul 27, 2022
a9a9d0c
update readme
tenthirtyone Jul 27, 2022
a98dc21
remove Status type
tenthirtyone Jul 27, 2022
e61bd17
add unit tests CI env
tenthirtyone Jul 27, 2022
676e8c9
fix unit test inside ci
tenthirtyone Jul 27, 2022
fe84993
update shrinkwrap
tenthirtyone Jul 27, 2022
90af012
bash -> json README sections
tenthirtyone Jul 27, 2022
0a9a888
add notification interval
tenthirtyone Jul 28, 2022
e2799e4
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jul 28, 2022
17a6034
change test file name, update shrinkwrap
tenthirtyone Jul 28, 2022
8585b06
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Jul 28, 2022
0644054
remove set to null
tenthirtyone Aug 2, 2022
ea0cc48
Update src/packages/version-check/tests/ci.test.ts
tenthirtyone Oct 3, 2022
4b7bd79
Merge remote-tracking branch 'origin/develop' into feat/version-check…
tenthirtyone Oct 3, 2022
555efcb
Update src/packages/cli/src/cli.ts
tenthirtyone Oct 3, 2022
5bd9a53
class uses defaults, makes config properties optional
tenthirtyone Oct 6, 2022
32f1e4b
reduce unnecessary setters
tenthirtyone Oct 6, 2022
334717f
rename ConfigManager ConfigFileManager
tenthirtyone Oct 6, 2022
377a39c
fix tests
tenthirtyone Oct 6, 2022
0f03f14
update cli
tenthirtyone Oct 6, 2022
2037166
rename isValidSemver, semverIsValid
tenthirtyone Oct 7, 2022
9558ff8
fix space in readme
tenthirtyone Oct 7, 2022
d535154
add ONE_DAY const
tenthirtyone Oct 7, 2022
e07dc7a
rename alreadyLoggedVersion alreadyLoggedThisVersion
tenthirtyone Oct 7, 2022
cdfa953
shorten canNotifyUser
tenthirtyone Oct 7, 2022
89ad8f1
refactor file manager into its own class
tenthirtyone Oct 7, 2022
3080243
move config defaults into config manager
tenthirtyone Oct 7, 2022
64d6ff9
private _setConfig
tenthirtyone Oct 7, 2022
dcaa235
move banner message into its own file
tenthirtyone Oct 7, 2022
15d5b4e
reduce/rename
tenthirtyone Oct 11, 2022
2eaba34
add some types, update some readme
tenthirtyone Oct 13, 2022
f439087
initial scan, move some types
tenthirtyone Nov 16, 2022
260814a
cross platform readme; add didInit to config and save config on a fir…
tenthirtyone Nov 16, 2022
21131ad
Update src/packages/version-check/package.json
tenthirtyone Nov 16, 2022
dd0e1c3
bump ts
tenthirtyone Nov 16, 2022
1e8dfd7
reinstall and fix unit tests
tenthirtyone Nov 16, 2022
b5f94e8
Merge branch 'develop' into feat/version-check-server
tenthirtyone Nov 16, 2022
164c7f1
update shrinkwrap
tenthirtyone Nov 16, 2022
3295809
Merge remote-tracking branch 'origin/feat/version-check-server' into …
tenthirtyone Nov 16, 2022
be85599
change to semverGte
tenthirtyone Nov 16, 2022
ea167a8
Update src/packages/version-check/src/version-check.ts
tenthirtyone Nov 16, 2022
f8fd4db
i think fix ci on a 2 tests
tenthirtyone Nov 16, 2022
92293d0
new Date().getTime() -> Date.now()
tenthirtyone Nov 16, 2022
e35206c
hey, who would have thought unit tests would fix bugs?
tenthirtyone Nov 16, 2022
f45f7fe
replace detectCI with isCI
tenthirtyone Nov 16, 2022
dc4ac06
ignore isCI when running ganache ci environment
tenthirtyone Nov 17, 2022
6efc100
update tests with ignore isCI
tenthirtyone Nov 17, 2022
db79352
catch ci test in ganache ci
tenthirtyone Nov 17, 2022
1f5a2f1
shift some responsibility into VC from cfm.
tenthirtyone Nov 18, 2022
8ca4ea2
some better names, docs, types, and tests
tenthirtyone Nov 18, 2022
c3e68a3
jsdoc and remove didInit from config
tenthirtyone Nov 18, 2022
4f78605
ttl unit test
tenthirtyone Nov 18, 2022
d42ee2a
remove defensive unit tests, remove some no checks
tenthirtyone Nov 18, 2022
87689bc
remove some deadcode, update shrinkwrap
tenthirtyone Nov 21, 2022
9c9e184
update tests, ttl to 30s, cli
tenthirtyone Nov 21, 2022
52d2646
_sanitizeConfig
tenthirtyone Nov 22, 2022
c44cb68
update readme and some function sigs
tenthirtyone Nov 22, 2022
62b9680
error squelching, sanitize update, comments
tenthirtyone Nov 22, 2022
17174e8
update to production endpoint
tenthirtyone Nov 22, 2022
c4278aa
update test api paths. docs. add isDeactivated flag to type
tenthirtyone Nov 22, 2022
a440958
remove opt out, prep for deactivated status at deploy, remove dead test
tenthirtyone Nov 22, 2022
ec5d0b5
remove isDeactivated from config, swap to CONST. Accomodate shipping …
tenthirtyone Nov 22, 2022
eb713de
osx11 with node 16...
tenthirtyone Nov 22, 2022
22fc248
node 14*
tenthirtyone Nov 22, 2022
e6064b0
nope just mac os11
tenthirtyone Nov 22, 2022
4f71a30
good... or lucky? Id rather be lucky
tenthirtyone Nov 23, 2022
90c0d89
handle all requests now, just slower
tenthirtyone Nov 23, 2022
0c9b072
alright fine, a sleep function it is
tenthirtyone Nov 23, 2022
f9024f8
add the await
tenthirtyone Nov 23, 2022
817405c
maybe mac likes this way more
tenthirtyone Nov 23, 2022
4aa9669
sleep
tenthirtyone Nov 23, 2022
de7bdb2
remove other tests
tenthirtyone Nov 23, 2022
d38642b
remove ttl test, add other tests back
tenthirtyone Nov 23, 2022
aa0467a
comment out the ttl test
tenthirtyone Nov 23, 2022
3bb582c
add activated flag
tenthirtyone Nov 23, 2022
0fb2639
readme tweaks
tenthirtyone Nov 23, 2022
1fe6ee4
better names
tenthirtyone Dec 6, 2022
ac5d3e3
semver return types
tenthirtyone Dec 6, 2022
e8f5b57
merge up
tenthirtyone Dec 13, 2022
3002310
type some unit test stuff
tenthirtyone Dec 13, 2022
3ce53a9
add back to cli
tenthirtyone Dec 13, 2022
3a3f9df
hey, it wouldnt turn back on if it had been disabled
tenthirtyone Dec 13, 2022
07c3c26
why did I shrinkwrap before?
tenthirtyone Dec 13, 2022
ba12df0
update doc to match spec
tenthirtyone Jan 12, 2023
9bb606a
change ACTIVATED from env var to const
tenthirtyone Jan 12, 2023
d45443f
coerce env var
tenthirtyone Jan 12, 2023
71ecfd1
Update src/packages/version-check/src/version-check.ts
tenthirtyone Jan 12, 2023
146673c
Apply suggestions from code review
tenthirtyone Jan 12, 2023
d335945
Update src/packages/version-check/src/config-file-manager.ts
tenthirtyone Jan 12, 2023
df7f915
meeting changes
tenthirtyone Jan 13, 2023
8780323
Merge remote-tracking branch 'origin/feat/version-check-server' into …
tenthirtyone Jan 13, 2023
4c9b12a
Update src/packages/version-check/tests/version-check.test.ts
tenthirtyone Jan 13, 2023
d112ded
update cfm tests
tenthirtyone Jan 13, 2023
cf944ce
update log tests to performVersionCheckAndOutputBanner
tenthirtyone Jan 13, 2023
e945f79
return activation flag
tenthirtyone Jan 13, 2023
9ad9618
fix and dress up the unit tests
tenthirtyone Jan 13, 2023
b0baf5a
merge up
tenthirtyone Jan 13, 2023
6945bd4
fix the fix that broke the thing that was working.
tenthirtyone Jan 13, 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
Loading