Repository navigation
test: run integration suite against released live node - #405
Cryptoloveer wants to merge 4 commits into
Conversation
|
The classpath and |
|
Thank you for your contribution! 🎉 This PR is eligible for an contribution-minor reward as a token of our appreciation. If you'd like to receive it, please add your address to the description of this PR. 🙏 |
|
Hey @Cryptoloveer! Is your PR ready for review? The PR is still marked as a draft, so I just wanted to check if there’s anything still unfinished. |
|
Thank you for your contribution! 🎉 This PR is eligible for an contribution-minor reward as a token of our appreciation. If you'd like to receive it, please add your address to the description of this PR. 🙏 |
|
Thank you for your contribution! 🎉 This PR is eligible for an contribution-minor reward as a token of our appreciation and will be sent to |
|
Yes—this is ready for review now. Both the classpath and released |
rotilho
left a comment
There was a problem hiding this comment.
Thanks for putting this together! Would you mind confirming whether you’ve had a chance to run the full suite against the released :live image?
| - uses: gradle/actions/setup-gradle@v6 | ||
|
|
||
| - run: ./gradlew ${{ inputs.agent_enabled && '-Pagent' || '' }} test --no-daemon --info --fail-fast | ||
| - run: ./gradlew ${{ inputs.agent_enabled && '-Pagent' || '' }} test --no-daemon --info --fail-fast -Datto.test.neighbour-mode=${{ inputs.neighbour_mode }} |
There was a problem hiding this comment.
This need to be forward to the test. The current implementation as-is always use classpath
|
|
||
| @Given("is a default node") | ||
| fun setAsDefaultNode() { | ||
| val neighbour = PropertyHolder[Neighbour::class.java] | ||
| networkProperties.defaultNodes.add("ws://localhost:${neighbour.websocketPort}") | ||
| private fun startLiveNode(args: Array<String>) { |
There was a problem hiding this comment.
Loopback should be allowed, the node blocks loopback with the default configs.
Problem
The integration suite currently starts neighbour nodes from the same classpath under test. That preserves coverage but only validates the current implementation against itself, so compatibility regressions with the released network image can be missed.
Fix
liveneighbour mode that starts a freshghcr.io/attocash/node:livecontainer.:liveimage for every run.Validation
ghcr.io/attocash/node:liveintegration suite passed.mainand ready for review.Reward address
atto://ad5mogtl3hfcherkbufxiewl7k74q7svljqdfgnby7d52lj4o2ifh2horqj6uCloses #271.