Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions __tests__/e2e/ci-mac-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ else
echo "skip test trigger"
fi


echo "test model download"
cd model
pip install -r requirements.txt
export fc_component_function_name=model-$(uname)-$(uname -m)-$RANDSTR
python deploy_and_test_model.py --model-id iic/cv_LightweightEdge_ocr-recognitoin-general_damo --region cn-shanghai --auto-cleanup
python deploy_and_test_model.py --model-id Qwen/Qwen2.5-0.5B-Instruct --region cn-shanghai --auto-cleanup
cd ..

echo "test go runtime"
cd go
export fc_component_function_name=go1-$(uname)-$(uname -m)-$RANDSTR
Expand Down
1 change: 1 addition & 0 deletions __tests__/e2e/local/layer/python/code/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from flask import Flask
import pycurl


def handler(event, context):
logger = logging.getLogger()
logger.info(event)
Expand Down
19 changes: 10 additions & 9 deletions __tests__/e2e/local/nas/code/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
import logging
import os


def handler(event, context):
filename = '/mnt/auto/test.txt'
if os.path.exists(filename):
with open(filename, 'r') as file:
content = file.read()
filename = "/mnt/auto/test.txt"
if os.path.exists(filename):
with open(filename, "r") as file:
content = file.read()
return "read:{}".format(content)
else:
with open(filename, 'w') as file:
file.write("hello world")
with open(filename, 'r') as file:
content = file.read()
else:
with open(filename, "w") as file:
file.write("hello world")
with open(filename, "r") as file:
content = file.read()
return "write:{}".format(content)
Loading
Loading