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

fix: use CI_E2E_FILENAME in s3 prefix #1255

Merged
merged 2 commits into from
Oct 3, 2022
Merged

fix: use CI_E2E_FILENAME in s3 prefix #1255

merged 2 commits into from
Oct 3, 2022

Conversation

shiqizng
Copy link
Contributor

@shiqizng shiqizng commented Oct 3, 2022

Summary

This PR fixes a string parsing error in e2e test script. commit hash wasn't included in the s3 file prefix and so e2e test was only using the latest artifact from nightly build.

Test Plan

check CI build to make sure test artifact is downloaded from the correct file path.

@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Merging #1255 (9cbb98b) into develop (f176b4f) will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1255      +/-   ##
===========================================
+ Coverage    61.11%   61.14%   +0.03%     
===========================================
  Files           52       52              
  Lines         8512     8512              
===========================================
+ Hits          5202     5205       +3     
+ Misses        2848     2846       -2     
+ Partials       462      461       -1     
Impacted Files Coverage Δ
fetcher/fetcher.go 52.19% <0.00%> (+1.31%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

misc/e2elive.py Outdated
Comment on lines 87 to 92
tarname = tarname.split("/")[1]
cmhash_tarnme = tarname.split("/")
cmhash = cmhash_tarnme[0]
tarname =cmhash_tarnme[1]
prefix+="/"+cmhash
tarpath = os.path.join(tempdir, tarname)
Copy link
Contributor

@winder winder Oct 3, 2022

Choose a reason for hiding this comment

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

Could you elaborate on whats happening here?

If I'm reading right it looks like this supports tarname with one slash in it. Should we support multiple slashes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is for parsing string like fafa8862/rel-nightly and creating the correct prefix. boto3 client isn't able to find a file named fafa8862/rel-nightly.tar.bz2 ats3://algorand-testdata/indexer/e2e4/${RSTAMP}. So, we need to provide it the exact s3 folder path, s3://algorand-testdata/indexer/e2e4/${RSTAMP}/fafa8862, and the tarname rel-nightly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think it's possible to support filenames with / without having to update the prefix.

@shiqizng shiqizng merged commit e228d44 into develop Oct 3, 2022
@winder winder deleted the shiqi/e2efix branch October 3, 2022 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants