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

Test vectors: use tarballs, allow multiple spec versions for progressive spec updates #514

Merged
merged 10 commits into from
Nov 1, 2019

Conversation

mratsim
Copy link
Contributor

@mratsim mratsim commented Oct 31, 2019

This updates the test vectors.

Now we use the EF tarballs to ensure that no git clone ever uses the EF quota.
We can also have different versions of the test vectors at the same time to allow progressive updates to v0.9.0 as requested by @tersec.

The only usage left of LFS is for the SSZ test vectors that are still using v0.8.1 format. It is against our own LFS quota however.

@stefantalpalaru
Copy link
Contributor

Don't merge this until I'm done reviewing it.

download_lfs_files() {
[[ -z "$1" ]] && { echo "usage: download_lfs_files() subdir_name"; exit 1; }
# download/unpack Ethereum Foundation tests functions
source "$SUBREPO_DIR/scripts/download_functions.sh"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why would you need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's for separating the download functions from their usage.

I need per-version flexibility for the CI compared to if someone does a manual clone and uses https://github.com/status-im/nim-eth2-official-tests/blob/master/download_test_vectors.sh

@tersec
Copy link
Contributor

tersec commented Oct 31, 2019

Azure CIs are showing:

--_curl_--https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.8.3/minimal.tar.gz
--_curl_--https://github.com/ethereum/eth2.0-spec-tests/releases/download/v0.8.3/mainnet.tar.gz

/d/a/1/s/jsonTestsCache /d/a/1/s
/d/a/1/s
ln: failed to create symbolic link 'tests/official/fixtures/tarballs': No such file or directory

##[error]Bash exited with code '1'.

@mratsim
Copy link
Contributor Author

mratsim commented Oct 31, 2019

@mratsim
Copy link
Contributor Author

mratsim commented Oct 31, 2019

It was not. bash is playing tricks on me:

DeepinScreenshot_select-area_20191031165627

@mratsim mratsim merged commit 753d5af into master Nov 1, 2019
@delete-merged-branch delete-merged-branch bot deleted the update-test-vectors branch November 1, 2019 08:44
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.

3 participants