ChainSafe / ChainSafe/gossamer

Implement CI setup to download required blocks & state for testing

Open
#4,497 0 comments 0 reactions 0 assignees View on GitHub
T-implementation
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Issue summary

Currently we have some regression tests that require to use some data from certain blocks. This data could be bigger (more than 100mb) and github does not allow us to push it to our code.
Also, it's not performant to upload and download this data in an open source project.

## Implementation details

What I propose is to create a CI action to download this data before executing the tests, so we can get rid of it locally.
For that, we can rely on the scripts we have in `scripts` folder such as `retrieve_state` or `retrieve_block` then configure a CI action to download the required state for the tests and run those tests with the `CI=true` flag only

## Acceptance criteria

- [ ] CI is downloading the required data and executing the tests
- [ ] We don't have this files in our code anymore

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.