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

Allow remote debugging of background Bisq apps #4433

Merged
merged 5 commits into from Aug 31, 2020

Conversation

ghubstan
Copy link
Member

A unique hard coded debug listening port is assigned to the different Bisq app types in the BisqAppConfig enum, and background Bisq apps will be started with remote debug options if the scaffold-setup method is passed an --enableBisqDebugging=true option.

  • Added enableBisqDebugging (default=false) option to ApiTestConfig.

  • Added remoteDebugPort field to BisqAppConfig enum.

  • Added debugOpts field to BisqApp (using BisqAppConfig#remoteDebugPort).

  • Appends debugOpts to exported JAVA_OPTS environment variable if present.

  • Removed messy quotes from BisqAppConfig enum javaOpts values.

  • Removed redundant return statement from BisqApp#shutdown().

PR 5 of 5, to be reviewed/merged in PR number order.

Adds the missing String[] params to the method signature, so test cases
can pass any needed combination of options to the scaffolding setup
from a @BeforeAll method.
* The bats test script was moved to the apitest subproject and renamed.

* Version tests were updated for release 1.3.7.

* The duplicated "test getoffers buy eur check return status" was
  replaced by a new "test getoffers sell eur check return status" test.

* The bats dependency was switched to bats-core because development
  has halted on https://github.com/sstephenson/bats/tree/master.
  The new bats repository is
          https://github.com/bats-core/bats-core/tree/master
The :apitest GrpcStubs class was removed and recreated in the :cli
subproject, to be used by both :cli and :apitest.  CliMain was changed
to use the new GrpcStubs.
This change removes three options: runArbNodeAsDesktop,
runAliceNodeAsDesktop, and runBobNodeAsDesktop, which should have
been deleted when the supportingApps option was added.  The comma
delimited list of apps passed with the supportingApps option
now determines whether arbitration / bob / alice nodes are started as
desktops or daemons.
A unique hard coded debug listening port is assigned to the different
Bisq app types in the BisqAppConfig enum, and background Bisq apps
will be started with remote debug options if the scaffold-setup method
is passed an --enableBisqDebugging=true option.

* Added enableBisqDebugging (default=false) option to ApiTestConfig.

* Added remoteDebugPort field to BisqAppConfig enum.

* Added debugOpts field to BisqApp (using BisqAppConfig#remoteDebugPort).

* Appends debugOpts to exported JAVA_OPTS environment variable if present.

* Removed messy quotes from BisqAppConfig enum javaOpts values.

* Removed redundant return statement from BisqApp#shutdown().
Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@sqrrm sqrrm merged commit 8c6b525 into bisq-network:master Aug 31, 2020
Ship Bisq Daemon and API automation moved this from In progress to Done Aug 31, 2020
@sqrrm sqrrm added this to the v1.3.8 milestone Aug 31, 2020
@ghubstan ghubstan deleted the 5-add-remote-debug-option branch September 1, 2020 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants