Commit Graph

364 Commits

Author SHA1 Message Date
benthecarman
c6c4e83e9e Remove logging from testkit core (#2813)
* Remove logging from testkit core

* Fixup deps
2021-03-22 11:48:27 -05:00
benthecarman
07514e2348 Remove logging from core (#2810)
* Remove logging from core

* Remove slf4j from testkit core

* Remove logback from coretest
2021-03-21 19:11:55 -05:00
Chris Stewart
2287c6ced9 Implement caching of bitcoind in the walletTest,nodeTest, and partially bitcoindRpcTest project (#2792)
* Create CachedBitcoind, implement it in FundTransactionHandlingTest

* Add BaseWalletTest, extend it with BitcoinSWalletTest & BitcoinSWalletTestCachedBitcoind, add CachedBitcoinV19 and use it RescanHandlingTest

* Make ProcessBlockTest work with cached bitcoind

* Make trait for CachedBitcoindNewest for the newest version of bitcoind

* Make UTXOLifeCycleTest use cached bitcoind

* Add WalletBloom, WalletSyncTest to use cached bitcoinds

* Add WalletIntegrationTest

* Rework beforeAll() and afterAll() into the super trait like BaseWalletTest

* Add standlone BitcoindFixtures, use it in BitcoindBackendTest

* Use new BitcoindFixtures in BitcoindBlockPollingTest

* Introduce BaseNodeTest, start implementing the usage of cached bitcoinds in the nodeTest project

* Use cached bitcoind's with SpvNodeTest & SpvNodeWithWalletTest

* Fix bug on postgres with reusing database, upsert the genesis header rather than create it

* Get NeutrinoNode tests workign with cached bitcoinds

* Fix NeutrinoNodeWithWallet by destroying wallet state for Postgres

* Add teardown helper method for bitcoind

* Teardown chain project when using node fixtures since node is dependent upon the chain project.

* Turn off parallelExecution again

* Switch the parallelExecution flag to only be set on CI, so we can get better performance when running locally

* Start implementing BitcoindFixtures, use BitcoindFixturesCachedTriple on TestUtilRpcTest

* Fix compiler errors, begin implementing NodePair

* Refactor TestRpcUtilTest to use 2 bitcoinds rather than 2

* Reduce the number of bitcoinds that MultiWalletRpcTest needs from 3 -> 1

* Reduce number of bitcoinds used in WalletRpcTest from 3 -> 2

* Add some documentation

* Try to re-add parallelExecution

* Reduce the number of bitcoinds used in PsbtRpcTest from 3 -> 2

* Disable parallelExecution in Test again

* Make BitcoindV21RpcClientTest & BitcoindV20RpcClientTest reduce bitcoind usage from 2 -> 1

* Make BitcoindV19RpcClienttest reduce bitcoind usage from 2 -> 1

* Rework MempoolRpcTest to use fixtures, add BitcoindVersion to CachedBitcoindCollection

* Make sure clientAccumm has to be specified as a paramter now rather than filling in by default

* Begin parameterizing NodePair/NodeTriple to retain type information for the specific version of bitcoind that was used

* Don't implement version in super trait

* Fix docs

* Fix async issue in V21 test suite

* Append to vectors in CachedBitcoinCollection rather than replace

* Fix rebase issues

* Add scaladocs

* Fix BitcoindV18RpcClient address info test

* Implement fixtures in BitcoindV17RpcClientTest fixtures

* Cleanup v17 PsbtRpcTest

* Reduce bitcoind usage from 3 -> 1 in BitcoindV18RpcClientTest

* Remove abandon transaction test, this allows us to reduce the number of bitcoind's used in MempoolRpcTest from 3 -> 2

* Remove the requirement to inject  BitcoinSAsyncFixtureTest, add it in the test traits explicitly to make things easier. Also add explicit afterAll() method to tear down both the CachedBitcoind & BitcoinSAsyncFixtureTest

* Fix missing Await.result() in BitcoindRpcTest.afterAll()

* Rework MultiWalletRpcTest to use a NodePair

* Rework BlockchainRpcTest to use fixtures

* Rework Client start()/stop() methods. Now use an AtomicBoolean to indicate when a user has requested a client to start/stop rather than sending pings to bitcoind that can fail because the conneciton pool has been shutdown in test cases

* Try my luck with turning on parallelExecution in CI again

* Revert parallelExecution, now testes do not run in parallel on CI

* Only turn off parallelExecution for bitcoindRpcTest

* Adjust build to only have bitcoindRpcTest NOT in run parallel on mac, reduce number of blocks used in BitcoindRpcTestUtil.createNodeSequence

* Run less tests in the rpc test suite as that takes the longest, move them over to node/wallet/dlc test suite on mac osx CI

* Don't run eclair tests in parallel either

* Remove CachedBitcoind from BitcoinSWalletTest

* Fix async bug in test case

* Push to github to force re-run of CI

* Push to github to force re-run of CI

* Push to github to force re-run of CI
2021-03-19 06:37:53 -05:00
Scala Steward
1daba85ddf Update javafx-base, javafx-controls, ... to 17-ea+3 (#2804) 2021-03-17 09:47:46 -05:00
Chris Stewart
78448b277c Revert "Schnorr sigs for Scala.js (#2784)" (#2802)
This reverts commit 8e7bde0ed9.
2021-03-16 13:19:16 -05:00
rorp
8e7bde0ed9 Schnorr sigs for Scala.js (#2784) 2021-03-16 10:21:47 -07:00
Scala Steward
fba880e5a9 Update sbt-native-packager to 1.8.1 (#2798) 2021-03-16 08:16:30 -05:00
Chris Stewart
00df875ec2 update Base docker image to a ubuntu buster (#2799) 2021-03-15 15:33:17 -05:00
Scala Steward
77ee3f7e8d Update sbt-ci-release to 1.5.6 (#2789) 2021-03-15 10:48:23 -05:00
Chris Stewart
49544fc7f3 Turn off parallelExecution and remove extra AsyncUtil test class (#2790) 2021-03-11 09:36:54 -06:00
Chris Stewart
7245eb0ec9 Update all deps that failed because of bad build (#2774)
* Update all deps that failed because of bad build

* Revert jvmopts

* Try bumping jvmopts max heap size to get mac builds to work

* Double up timeout in ScriptGenerators

* Use Future.successful() in signFunction to try and reduce overload on executionContext

* Push to github to force re-run of CI

* Upgrade sbt to 1.4.9
2021-03-10 06:48:21 -06:00
rorp
5a2f95c38e WIP: Implement bcrypto facades (#2743)
* Implement bcrypto facades

* signatures

* some more facades

* move JS test

* move JVM tests

* CryptoUtilTest

* CI config

* fix CI config

* add npm dependencies

* test over fullLinkJS-generated files
2021-03-05 07:21:39 -06:00
Chris Stewart
e59057483f Resturcutre cryptoTest & coreTest to work with scalajs build (#2731)
* Get cryptoTest,coreTest projects working with scala-js

Get build working, now moving onto compile

Move jvm specific cryptoTest's into the .jvm sub project

Rework build definition names to be more concise

Fix missing cryptoTest refactor

Move logback-test.xml into jvm specific resource folder so it doesn't get ignored

Make coreTest a crossProject

Rework ci matrix to work with new project structure

Try to fix CI matrix

CI fix part 2

* Apply commonSettings to all cross projects

* Address part of roman's code review, make coreJS, make cryptoTest.dependOn(crypto)

* WIP to share with scala-js community

* Fix scalac compiler settings to be additive in CommonSettings.settings

* Remove BCryptoTest
2021-03-03 16:52:03 -06:00
Chris Stewart
99c5d6e29b Enable 'dockerUpdateLatest' option to give us the latest tag on publishing artifacts (#2752) 2021-03-03 13:58:04 -06:00
Chris Stewart
1959495cec Add testkit-core module (#2726)
* Refactor AsyncUtil to just use an execution context rather than an actor system

* Create testkit-core, start moving data structures over to testkit-core

* WIP, getting rid of the hard dependency on BitcoinSAsyncTest and akka

* Rework test traits to not be dependnent on akka, move BaseAsyncTest into testkitCore, add a test trait that just uses the default scala executionContext

* Get everything compiling

* Move logback-test.xml to testkit-core so it applies to coreTest,cryptoTest as well

* Cleanup rebase issues

* Fix Deps.scala

* Address ben's code review

* Segregate jvm settings and compiler settings

* Filter out -Xfatal-warning for scalajs for now since there is a ton of errors

* Move maintainer settings into CommonSettings.settings
2021-03-02 07:05:21 -06:00
Chris Stewart
5ba7b553b0 2021 02 27 dersignatureutil mv (#2730)
* Move CryptoParams to shared crypto project, make BouncyCastleCryptoParams for bouncy castle specific things

* Rework build structure to work better with scalajs

* Add unit test to make sure CryptoParams & BouncyCastleCryptoParams are consistent
2021-02-28 07:09:22 -06:00
Scala Steward
ecae07c8e1 Update javafx-base, javafx-controls, ... to 17-ea+2 (#2728) 2021-02-27 06:45:53 -06:00
rorp
c90f318fd7 Refactor crypto module to be compatible with Scala.js part 1 (#2719)
* Refactor crypto module to be compatible with Scala.js

* more changes

* some more changes

* abstract out Schnorr stuff

* abstract out adapter stuff

* cleanup

* some more cleanup

* fix build

* Removed references to ECPoint outside of .jvm scope

* remove references to ECPoint from the shared code

* cleanup

* remove cirlular dependencies

* more cleanup

* cleanup

* move SipHash to CryptoContext

* scaladoc

* scalafmt

Co-authored-by: nkohen <nadavk25@gmail.com>
2021-02-27 05:58:20 -06:00
Chris Stewart
94934e113d Rework docker configuration to pass in a custom configuration file (#2718)
* Rework docker configuration to pass in a custom configuration file

* Add default user of bitcoin-s for docker images

* Add runtime docker configuration to website
2021-02-26 07:35:20 -06:00
Scala Steward
06654f4e05 Update akka-http, akka-http-testkit to 10.1.14 (#2723) 2021-02-25 04:17:44 -06:00
Scala Steward
54dc824391 Update metrics-core to 4.1.18 (#2716) 2021-02-24 07:27:10 -06:00
Scala Steward
07488dd3f3 Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.13 (#2714) 2021-02-24 06:27:01 -06:00
Chris Stewart
be18b1baf2 Cache httpClient in bitcoind, rename Test.akkaHttp -> Test.akkaHttpTestkit (#2702) 2021-02-20 13:42:39 -06:00
Scala Steward
fca9e4b7d0 Update scalatest to 3.2.5 (#2687) 2021-02-20 08:09:31 -06:00
Chris Stewart
2f85b67c3f Add github workflow steps to publish to dockerhub (#2684)
* Add github workflow steps to publish to dockerhub

* Add docker image publishing for adaptor-dlc,main,master

* Add pull request tag to test

* Try to be explicit about build instruction on PR

* Remove event.push for now to try and see if the PR works

* Remove uses

* Try using DOCKERHUB_TOKEN

* Revert env name

* Try to use what is on the github README

* Revert to push rather than PR

* Use same config in release.yml for checking out from git

* remove image digest step, and remove the custom branch I added to test
2021-02-19 10:09:40 -06:00
Scala Steward
fe70391d0b Update sbt-bloop to 1.4.8 (#2683) 2021-02-19 10:00:30 -06:00
Scala Steward
fb2e5d52e3 Update postgresql to 42.2.19 (#2686) 2021-02-19 09:19:52 -06:00
Chris Stewart
d94a4ed87e 2021 02 15 appserver docker (#2673)
* App Server docker configuration w/ refactors

Get app server configuration working with docker

Add section for building the appServer for docker

* Remove compile commands
2021-02-18 13:57:18 -06:00
Scala Steward
a19f35e603 Update scalatest to 3.2.4 (#2677) 2021-02-18 06:53:11 -06:00
Scala Steward
42f3523210 Update sbt-mdoc to 2.2.18 (#2676) 2021-02-18 05:56:08 -06:00
Scala Steward
e4b0f1ff42 Update scala-collection-compat to 2.4.2 (#2670) 2021-02-17 07:22:05 -06:00
Scala Steward
775aa67975 Update scodec-bits to 1.1.24 (#2671) 2021-02-17 06:47:40 -06:00
Scala Steward
d929af4f9a Update scalacheck to 1.15.3 (#2669) 2021-02-17 06:04:53 -06:00
Scala Steward
0d5863b2f5 Update sbt-bloop to 1.4.7 (#2661) 2021-02-13 13:48:54 -06:00
Scala Steward
a5d592ac40 Update javafx-base, javafx-controls, ... to 16-ea+7 (#2654) 2021-02-12 13:32:43 -06:00
Scala Steward
19b47b8eb9 Update janino to 3.1.3 (#2559) 2021-02-09 06:14:49 -06:00
Scala Steward
0c9bba8267 Update sbt-mdoc to 2.2.17 (#2632) 2021-02-07 08:15:10 -06:00
Scala Steward
60bdf0929c Update sbt to 1.4.7 (#2598) 2021-02-02 06:32:18 -06:00
Scala Steward
452bd7e8e2 Update scala-collection-compat to 2.4.1 (#2597) 2021-02-01 07:21:13 -06:00
Scala Steward
36b8e755a8 Update metrics-core to 4.1.17 (#2580) 2021-01-29 07:57:45 -06:00
Chris Stewart
756bfc4427 2021 01 27 conectionpool (#2578)
* Give connection pool example config

* Get hikari logging working on postgres

* fix 2.12.x

* Bump metrics core to a supported version

* Add hikari-logging and hikari-logging-interval configuration options to turn off/on hikari and schedule how often logs appear

* Turn off hikari logging in the db-commons/reference.conf and add it to appserver/reference.conf

* default the logging to off in scala code

* Make sure connection pool is enabled in db-commons, add default database configuration to website

* Address code review, fix things that didn't need to be changed
2021-01-28 09:44:03 -06:00
Scala Steward
1bba325687 Update sourcecode to 0.2.3 (#2557) 2021-01-23 20:53:23 -06:00
Scala Steward
382ed968d4 Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.11 (#2517) 2021-01-22 08:29:35 -06:00
Scala Steward
7381a2339d Update sbt-mdoc to 2.2.16 (#2541) 2021-01-20 08:07:14 -06:00
Scala Steward
d89ed9c461 Update native-lib-loader to 2.3.5 (#2523) 2021-01-18 06:27:09 -06:00
Scala Steward
6426158a1c Update sbt-native-image to 0.3.0 (#2511) 2021-01-13 12:59:53 -06:00
Chris Stewart
54cd05a7f2 Add new sbt-native-image plugin that helps generate a correct native … (#2494)
* Add new sbt-native-image plugin that helps generate a correct native image for the cli

* Initialize everything at build time to try and get cli working again

* Get server working with native image build

* Add '--no-fallback' which will report failures if we fail to build a standalone image

* Revert server project, file issue 2506 to indicate problems with server build

* Add native cli publishing using github actions

* Preprend 'app/' to paths

* Enable http,https protocols on cli

* Remove old graalvm plugin settings related to sbt native packager
2021-01-13 09:41:00 -06:00
Scala Steward
53df543f6f Update scalafx to 15.0.1-R21 (#2492)
* Update scalafx to 15.0.1-R21

* Update scalafx to 15.0.1-R21
2021-01-11 09:17:11 -06:00
Scala Steward
44054e7f9a Update javafx-base, javafx-controls, ... to 16-ea+6 (#2489) 2021-01-09 11:24:15 -06:00
Scala Steward
d5408baf85 Update play-json to 2.9.2 (#2468) 2021-01-06 10:20:59 -06:00