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

build: add all subservers to dev build with an optional with-rpc build param #4380

Merged
merged 1 commit into from Aug 20, 2020

Conversation

bhandras
Copy link
Collaborator

@bhandras bhandras commented Jun 16, 2020

This PR enables having a dev build with all subservers with an optional with-rpc=1 build param.

make/testing_flags.mk Outdated Show resolved Hide resolved
Copy link
Contributor

@halseth halseth left a comment

Choose a reason for hiding this comment

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

Concept ACK

@@ -1,8 +1,14 @@
DEV_TAGS = dev
RPC_TAGS = chainrpc walletrpc signrpc invoicesrpc autopilotrpc watchtowerrpc
Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC there are a few other subservers also, should we just enable them?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The original idea was to only include the subservers that are also present in the release build, but actually I think it makes sense to include all.
This also changes what we itest, but imho it is more correct to itest on the full build and have a smaller subset for release than itest on the smaller subset. PTAL

@bhandras bhandras requested a review from halseth July 20, 2020 09:27
@bhandras bhandras changed the title build: add all subservers to dev build build: add all subservers to dev build with an optional with-rpc build param Jul 20, 2020
@bhandras
Copy link
Collaborator Author

ping @cfromknecht

@@ -61,6 +67,6 @@ backend = btcd
endif

# Construct the integration test command with the added build flags.
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc watchtowerrpc $(backend)
ITEST_TAGS := $(DEV_TAGS) $(RPC_TAGS) rpctest $(backend)
Copy link
Contributor

Choose a reason for hiding this comment

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

won't this result in duplicating the tags? or is the assumption that you don't need with-rpc for itest compilation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My original intention was to allow creating a dev build which includes all RPC subservers while we also keep backward compatibility with existing build targets. I'd expect with-rpc to be used standalone and never as part of automated builds.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now reading it again, it could be I'm misunderstanding your comment though :)

Copy link
Contributor

Choose a reason for hiding this comment

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

nope that answers my q, agree it doesn't make sense to use with-rpc for itests so should be fine

Copy link
Contributor

@cfromknecht cfromknecht left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@cfromknecht cfromknecht added this to the 0.12.0 milestone Aug 11, 2020
@cfromknecht cfromknecht added this to In progress in v0.12.0-beta via automation Aug 11, 2020
@Roasbeef Roasbeef moved this from In progress to Reviewer approved in v0.12.0-beta Aug 12, 2020
@cfromknecht cfromknecht merged commit 9a44d3e into lightningnetwork:master Aug 20, 2020
v0.12.0-beta automation moved this from Reviewer approved to Done Aug 20, 2020
@bhandras bhandras deleted the dev_build_tags branch September 12, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v0.12.0-beta
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants