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

feat(e2e): relayer tests framework #578

Merged
merged 35 commits into from
Aug 11, 2023
Merged

feat(e2e): relayer tests framework #578

merged 35 commits into from
Aug 11, 2023

Conversation

debendraoli
Copy link
Collaborator

@debendraoli debendraoli commented Aug 4, 2023

Description:

Commit Message

add: client creation
add: connections handshake on both chains.
add: relayer crash and recover

see the guidelines for commit messages.

Changelog Entry

adds: relayer IBC test framework

Checklist:

  • I have performed a self-review of my own code
  • I have documented my code in accordance with the documentation guidelines
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have run the unit tests
  • I only have one commit (if not, squash them into one commit).
  • I have a descriptive commit message that adheres to the commit message guidelines

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

@debendraoli debendraoli changed the title Feat/relayer tests feat(e2e0: relayer tests framework Aug 7, 2023
@debendraoli debendraoli marked this pull request as ready for review August 9, 2023 11:30
@debendraoli debendraoli changed the title feat(e2e0: relayer tests framework feat(e2e): relayer tests framework Aug 9, 2023
@debendraoli
Copy link
Collaborator Author

Closes:
#506, #592, #604.

Copy link
Collaborator

@AntonAndell AntonAndell left a comment

Choose a reason for hiding this comment

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

Looks like a good start to me, seems extensible and usable for writing more tests

ibrizsabin
ibrizsabin previously approved these changes Aug 11, 2023
Copy link
Collaborator Author

@debendraoli debendraoli left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@redlarva redlarva left a comment

Choose a reason for hiding this comment

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

looks good for now

@redlarva redlarva merged commit faab716 into main Aug 11, 2023
@redlarva redlarva deleted the feat/relayer-tests branch August 11, 2023 11:25
redlarva added a commit that referenced this pull request Aug 17, 2023
* feat: add range queries (#595)

* fix: add packet heights

* feat: add packet receipt

* fix: add prev consensus state query

* chore: build pass

* fix: return type as map

* chore: fix lint

---------

Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>

* feat: Add Range query for packet heights and receipts (#594)

For each packet sent store the height at it which it was sent and clear it as packets are acknowledged. Add range query to get all missing packets receipts in a range.

Co-authored-by: viveksharmapoudel <viveksharmapoudel@gmail.com>

* fix: Use string keys for return map in getPacketHeights (#608)

* feat: e2e testing on package size (#606)

* Add tests for MaxSizeLimit from Chain A to ChainB and vice-versa

* return error message(icon) on `ExecuteContract()`

* docs: add test badges for java and rust (#602)

Signed-off-by: Night Owl <nightowl121@protonmail.com>

* feat: updated code owner lists (#610)

* docs: add cicd documentation (#603)

* docs: add cicd documentation

* docs: rename file

* feat: add  mock app  docs (#607)

* feat: add docs

* fix: add write-ack

* fix: add write-ack

---------

Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>

* chore: ibc system architecture docs (#615)

* chore: add ibc design docs.

* chore: remove relay.md

* chore: more about ibc architecture

* feat: update docs (#614)

* feat: update docs

* feat: add java build commands

* feat: add guidelines

* fix: topic order

* fix: update license name

* Update README.md

Co-authored-by: AntonAndell <anton@andell.eu>

* fix: remove integration test block

---------

Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>
Co-authored-by: AntonAndell <anton@andell.eu>

* feat(e2e): relayer tests framework (#578)

* feat: support expanding config value, convert json to yaml

* fix: invalid basepath, fix: correct goloop docker image

* WIP: initial relayer e2e

* fix: client state test

* add: relayer crash and recover

* fix(e2e): test results

* add(e2e): connections test

* fix(e2e): connection and client state tests

* fix(e2e): connection setup

* add(e2e): channel tests

* refactor: integration test setup (#616)

refactor: test setup

---------

Co-authored-by: redlarva <91685111+redlarva@users.noreply.github.com>

* docs: add docs for java smart contracts (#622)

Signed-off-by: Night Owl <nightowl121@protonmail.com>

* ci: add cw-xcall-ibc-connection to Codecov (#620)

* rf: linting

---------

Signed-off-by: Night Owl <nightowl121@protonmail.com>
Co-authored-by: ibrizsabin <101165234+ibrizsabin@users.noreply.github.com>
Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>
Co-authored-by: AntonAndell <anton@andell.eu>
Co-authored-by: viveksharmapoudel <viveksharmapoudel@gmail.com>
Co-authored-by: Sudeep Bhandari <bhandari.sudeep68@gmail.com>
Co-authored-by: Night Owl <91905208+nightowl121@users.noreply.github.com>
Co-authored-by: redlarva <91685111+redlarva@users.noreply.github.com>
Co-authored-by: DeepakBomjan <44976635+DeepakBomjan@users.noreply.github.com>
ibrizsabin added a commit that referenced this pull request Aug 18, 2023
* feat: support expanding config value, convert json to yaml

* fix: invalid basepath, fix: correct goloop docker image

* WIP: initial relayer e2e

* fix: client state test

* add: relayer crash and recover

* fix(e2e): test results

* add(e2e): connections test

* fix(e2e): connection and client state tests

* fix(e2e): connection setup

* add(e2e): channel tests

* feat: WIP crash tests

* improve: crash tests

* rf: concurrent call

* chore: workpoint

* rf: linting

* rm: concurrent wallet build due to xcall issue

* feat: stop relay without cleaning for reuse purpose

* rf: interface calls for better reusablity

* fix: comarision of sent packet

* feat: ability to save blockheight on relayer stop

* chore: workpoint

* fix: donot crash chain

* Merge branch 'main' into fix/merge-conflicts (#632)

* feat: add range queries (#595)

* fix: add packet heights

* feat: add packet receipt

* fix: add prev consensus state query

* chore: build pass

* fix: return type as map

* chore: fix lint

---------

Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>

* feat: Add Range query for packet heights and receipts (#594)

For each packet sent store the height at it which it was sent and clear it as packets are acknowledged. Add range query to get all missing packets receipts in a range.

Co-authored-by: viveksharmapoudel <viveksharmapoudel@gmail.com>

* fix: Use string keys for return map in getPacketHeights (#608)

* feat: e2e testing on package size (#606)

* Add tests for MaxSizeLimit from Chain A to ChainB and vice-versa

* return error message(icon) on `ExecuteContract()`

* docs: add test badges for java and rust (#602)

Signed-off-by: Night Owl <nightowl121@protonmail.com>

* feat: updated code owner lists (#610)

* docs: add cicd documentation (#603)

* docs: add cicd documentation

* docs: rename file

* feat: add  mock app  docs (#607)

* feat: add docs

* fix: add write-ack

* fix: add write-ack

---------

Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>

* chore: ibc system architecture docs (#615)

* chore: add ibc design docs.

* chore: remove relay.md

* chore: more about ibc architecture

* feat: update docs (#614)

* feat: update docs

* feat: add java build commands

* feat: add guidelines

* fix: topic order

* fix: update license name

* Update README.md

Co-authored-by: AntonAndell <anton@andell.eu>

* fix: remove integration test block

---------

Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>
Co-authored-by: AntonAndell <anton@andell.eu>

* feat(e2e): relayer tests framework (#578)

* feat: support expanding config value, convert json to yaml

* fix: invalid basepath, fix: correct goloop docker image

* WIP: initial relayer e2e

* fix: client state test

* add: relayer crash and recover

* fix(e2e): test results

* add(e2e): connections test

* fix(e2e): connection and client state tests

* fix(e2e): connection setup

* add(e2e): channel tests

* refactor: integration test setup (#616)

refactor: test setup

---------

Co-authored-by: redlarva <91685111+redlarva@users.noreply.github.com>

* docs: add docs for java smart contracts (#622)

Signed-off-by: Night Owl <nightowl121@protonmail.com>

* ci: add cw-xcall-ibc-connection to Codecov (#620)

* rf: linting

---------

Signed-off-by: Night Owl <nightowl121@protonmail.com>
Co-authored-by: ibrizsabin <101165234+ibrizsabin@users.noreply.github.com>
Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>
Co-authored-by: AntonAndell <anton@andell.eu>
Co-authored-by: viveksharmapoudel <viveksharmapoudel@gmail.com>
Co-authored-by: Sudeep Bhandari <bhandari.sudeep68@gmail.com>
Co-authored-by: Night Owl <91905208+nightowl121@users.noreply.github.com>
Co-authored-by: redlarva <91685111+redlarva@users.noreply.github.com>
Co-authored-by: DeepakBomjan <44976635+DeepakBomjan@users.noreply.github.com>

* mv: tests to the e2e directory

* fix: code structure

* refactor: clean up and setup

* fix: remove unused storage for mock dapp

* fix: clean up and setup channel integration test

* fix: fix lint

---------

Signed-off-by: Night Owl <nightowl121@protonmail.com>
Co-authored-by: ibrizsabin <101165234+ibrizsabin@users.noreply.github.com>
Co-authored-by: sabinchitrakar <immortal.infidel@gmail.com>
Co-authored-by: AntonAndell <anton@andell.eu>
Co-authored-by: viveksharmapoudel <viveksharmapoudel@gmail.com>
Co-authored-by: Sudeep Bhandari <bhandari.sudeep68@gmail.com>
Co-authored-by: Night Owl <91905208+nightowl121@users.noreply.github.com>
Co-authored-by: redlarva <91685111+redlarva@users.noreply.github.com>
Co-authored-by: DeepakBomjan <44976635+DeepakBomjan@users.noreply.github.com>
Co-authored-by: red__larva <red.x.larva@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection Creation Test Client Creation on Icon & archway Relay downtime and recover on uptime
4 participants