-
Notifications
You must be signed in to change notification settings - Fork 286
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
refactor(examples): include sample apps in monorepo build #2030
refactor(examples): include sample apps in monorepo build #2030
Conversation
@petermetz @izuru0 Please review. |
bc68370
to
e7b4d3c
Compare
@petermetz I wrongly assumed that CI runs inside |
@jagpreetsinghsasan Do you have any ideas on this? I can add that Indy SDK is already required since initial indy support I suppose, but it did not affect the CI earlier since it had to be built manually. |
@outSH is this what you are looking for? https://github.com/hyperledger/cactus/blob/main/.github/workflows/ci.yml |
@jagpreetsinghsasan My question was: what is your preferred way to install additional dependency in CI environment. Do you mean that I should add additional step in build-node jobs that will install these dependencies? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@outSH is this what you are looking for? https://github.com/hyperledger/cactus/blob/main/.github/workflows/ci.yml
@jagpreetsinghsasan My question was: what is your preferred way to install additional dependency in CI environment. Do you mean that I should add additional step in build-node jobs that will install these dependencies?
@outSH Sorry for the slow response. The preferred way is to do it declaratively (same as we do for NodeJS).
I found an GH workflow action that is pre-built to do what you want (AFAICT) here: https://github.com/actions/setup-python
If you find it too troublesome to do it this way I would also be okay with hacking it in ci.sh as long as you open a follow-up issue in the tracker so that later on someone gets it done in the ci.yml file with the action (or some other action) declaratively.
I can also offer to help with implementation of the workflow action, you can find me on the daily pair programming calls every morning that's on the HL Cactus calendar so if you stop by there we can collaborate live too.
|
b1f0529
to
54c1e3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@petermetz @jagpreetsinghsasan (cc: @izuru0) |
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@outSH LGTM, thank you!
- Enclose starting sawtooth ledger into single container that will fetch and run the entire setup. - Remove reduntant files, update the readme. - Add SawtoothTestLedger class to simplify setting the test ledger in jest tests. - Refactor electricity-trade to generate usage without sawtooth shell patching. - Refactor electricity-trade to use new sawtooth ledger container and wait until it's healthy. Closes: hyperledger-cacti#2108 Depends on: hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Enclose starting sawtooth ledger into single container that will fetch and run the entire setup. - Remove reduntant files, update the readme. - Add SawtoothTestLedger class to simplify setting the test ledger in jest tests. - Refactor electricity-trade to generate usage without sawtooth shell patching. - Refactor electricity-trade to use new sawtooth ledger container and wait until it's healthy. Closes: hyperledger-cacti#2108 Depends on: hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
514dd7f
to
3ffaeb9
Compare
fe96c27
to
214847a
Compare
3a7aef4
to
e31a2c4
Compare
e31a2c4
to
7ae332e
Compare
- Include discounted-cartrade and electricity trade in monorepo setup, - Update the devcontainer and include new environment setup instructions in BUILD.md, - Fix sample apps build error, - Rename of sample apps to cactus-example-*, - Change any "car" references to "asset" (in code, comments, documentation, etc..), - Rename asset-trade files to match the format of the rest of this repository. - Remove asset-trade eth asset management class and endpoint (not used right now, and it would confuse with fabric asset). - Renamed some uses of cartrade to asset-trade, (more complete changes are included in follow-up commit), - Add indy build artifacts to .gitignore, - Add cmake to devcontainer build (fixed warning during npm dependency build stage), - Fix random whitespace and typos errors, BREAKING CHANGE: building discounted-asset-trade app (or any future app that use indy validator) requires Indy SDK to be installed on the build machine. Closes: 2029 Signed-off-by: Michal Bajer <[email protected]>
7ae332e
to
00ea603
Compare
@outSH Thank you and sorry for the conflicts you (I guess) had with my PR.
It would be cool if we migrated the CI to run on the dev container, I agree! |
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Enclose starting sawtooth ledger into single container that will fetch and run the entire setup. - Remove reduntant files, update the readme. - Add SawtoothTestLedger class to simplify setting the test ledger in jest tests. - Refactor electricity-trade to generate usage without sawtooth shell patching. - Refactor electricity-trade to use new sawtooth ledger container and wait until it's healthy. Closes: hyperledger-cacti#2108 Depends on: hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Enclose starting sawtooth ledger into single container that will fetch and run the entire setup. - Remove reduntant files, update the readme. - Add SawtoothTestLedger class to simplify setting the test ledger in jest tests. - Refactor electricity-trade to generate usage without sawtooth shell patching. - Refactor electricity-trade to use new sawtooth ledger container and wait until it's healthy. Closes: hyperledger-cacti#2108 Depends on: hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Enclose starting sawtooth ledger into single container that will fetch and run the entire setup. - Remove reduntant files, update the readme. - Add SawtoothTestLedger class to simplify setting the test ledger in jest tests. - Refactor electricity-trade to generate usage without sawtooth shell patching. - Refactor electricity-trade to use new sawtooth ledger container and wait until it's healthy. Closes: hyperledger-cacti#2108 Depends on: hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Enclose starting sawtooth ledger into single container that will fetch and run the entire setup. - Remove reduntant files, update the readme. - Add SawtoothTestLedger class to simplify setting the test ledger in jest tests. - Refactor electricity-trade to generate usage without sawtooth shell patching. - Refactor electricity-trade to use new sawtooth ledger container and wait until it's healthy. Closes: #2108 Depends on: #2030 Signed-off-by: Michal Bajer <[email protected]>
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes hyperledger-cacti#2102 Depends on hyperledger-cacti#2030 Signed-off-by: Michal Bajer <[email protected]>
- Add support for starting Cactus CMD SocketIO server with multiple Bussiness Logic Plugins (BLP). All required TransactionManagement request should be routed to the correct BLP. - Add optional onListening callback when starting the cactus cmd socketio server, to simplify tests. - Fix some bugs and hard-coded BLP Ids in TransactionManagement. - Add new unit tests to check newly added functionalities. Closes #2102 Depends on #2030 Signed-off-by: Michal Bajer <[email protected]>
(not used right now, and it would confuse with fabric asset).
(more complete changes are included in follow-up commit),
BREAKING CHANGE: building discounted-asset-trade app (or any future app that use indy validator) requires Indy SDK to be installed on the build machine.
Closes: #2029
Signed-off-by: Michal Bajer <[email protected]