This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
feat: add testground to ci [work in progress] #363
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #311.
This is a draft PR because it's not working currently. I'm running into testground/testground#1541. Interestingly, this only happens when using Github workflows and never when running the test plans locally. The problem is that the directories for the current run are not created at
/root/.config/testground/data/outputs/local_docker/fetching/<run-id>/<plan>/<index>
. The directory/root/.config/testground/data/outputs
exists. Manually creating these directories might be a quick fix but won't solve the underlying issue.I created a discussion in the testground repo for this issue: testground/testground#1568
Another thing to note:
At the moment, we are pulling the ursa crates from the ursa git repository. This can be seen for example here: https://github.com/fleek-network/ursa/blob/main/test-plans/fetching/Cargo.toml. This is fine but defeats the purpose of running the test plans on every PR. For this, we have to use the code from the current commit. The most straightforward way that I came up with to achieve this is to copy the code from the ursa crates into the test plan directories and then temporarily overwriting the corresponding Cargo.toml.
I added a script
scripts/run_testground.sh
that takes care of this when running testground locally.