Skip to content

Commit

Permalink
fix: use CI_E2E_FILENAME in s3 prefix (#1255)
Browse files Browse the repository at this point in the history
* fix e2e
  • Loading branch information
shiqizng authored Oct 3, 2022
1 parent f176b4f commit e228d44
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions misc/e2elive.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,17 @@ def main():
from botocore.config import Config
from botocore import UNSIGNED
s3 = boto3.client("s3", config=Config(signature_version=UNSIGNED))
prefix = "indexer/e2e4"
if "/" in tarname:
tarname = tarname.split("/")[1]
# parse tarname like fafa8862/rel-nightly
cmhash_tarnme = tarname.split("/")
cmhash = cmhash_tarnme[0]
tarname =cmhash_tarnme[1]
prefix+="/"+cmhash
tarpath = os.path.join(tempdir, tarname)
else:
tarpath = os.path.join(tempdir, tarname)
prefix = "indexer/e2e4"

success = firstFromS3Prefix(s3, bucket, prefix, tarname, outpath=tarpath)
if not success:
raise Exception(
Expand Down Expand Up @@ -203,7 +208,7 @@ def countblocks(path):
return row[0]


def tryhealthurl(healthurl, verbose=False, waitforround=100):
def tryhealthurl(healthurl, verbose=False, waitforround=200):
try:
response = urllib.request.urlopen(healthurl)
if response.code != 200:
Expand Down

0 comments on commit e228d44

Please sign in to comment.