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
59 changes: 0 additions & 59 deletions .github/workflows/ce-build-ci-workflow.yml

This file was deleted.

140 changes: 0 additions & 140 deletions .github/workflows/ce-build-images.yml

This file was deleted.

58 changes: 54 additions & 4 deletions .github/workflows/model-unittest-gpu-ce-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ jobs:
bos_file: ${{ github.workspace }}/../../../bos/BosClient.py
java_file: ${{ github.workspace }}/../../../jdk1.8.0_351
allure_file: ${{ github.workspace }}/../../../allure-2.19.0/bin/allure
FLAGS_enable_CE: ${{ steps.determine.outputs.FLAGS_enable_CE }}
run: |
docker exec -t $container_name /bin/bash -c '
source ${work_dir}/../../../proxy_huggingface
Expand All @@ -306,10 +307,18 @@ jobs:
mkdir ${{ env.home_path }}/bos
tar xf ${{ env.home_path }}/bos_new.tar.gz -C ${{ env.home_path }}/bos
fi
if [ ! -f "${{ env.java_file }}" ]; then
wget -q --no-proxy -O ${{ env.home_path }}/java_linux.tar.gz https://paddle-qa.bj.bcebos.com/java/java_linux.tar.gz --no-check-certificate
tar xf ${{ env.home_path }}/java_linux.tar.gz
fi
if [ ! -f "${{ env.allure_file }}" ]; then
wget -q --no-proxy -O ${{ env.home_path }}/allure-2.19.0.zip https://xly-devops.bj.bcebos.com/tools/allure-2.19.0.zip --no-check-certificate
unzip -q ${{ env.home_path }}/allure-2.19.0.zip
fi
if [ -n "$PR_ID" ] && [ "$PR_ID" != "0" ]; then
bos_prefix="${PR_ID}/${COMMIT_ID}"
else
bos_prefix="schedule/$(date +%Y%m%d)"
bos_prefix="schedule_${FLAGS_enable_CE}/$(date +%Y%m%d)"
fi
# logs
cd /workspace/PaddleFormers/model_unittest_logs
Expand Down Expand Up @@ -345,16 +354,43 @@ jobs:
with:
repository: PaddlePaddle/PaddleFormers
ref: develop
- name: Checkout gh-pages
uses: actions/checkout@v5
with:
ref: gh-pages
path: gh-pages
continue-on-error: true
- name: Determine FLAGS_enable_CE
id: determine
run: |
schedule_time="${{ github.event.schedule || '' }}"
if [[ "$schedule_time" == "0 9 "* ]]; then
echo "FLAGS_enable_CE=CE_Develop_cu130_py313" >> $GITHUB_OUTPUT
elif [[ "$schedule_time" == "0 10 "* ]]; then
echo "FLAGS_enable_CE=CE_Develop_cu130_py312" >> $GITHUB_OUTPUT
else
echo "FLAGS_enable_CE=${{ github.event.inputs.FLAGS_enable_CE || 'CE_Develop_cu130_py313' }}" >> $GITHUB_OUTPUT
fi
- name: Restore history
env:
FLAGS_enable_CE: ${{ steps.determine.outputs.FLAGS_enable_CE }}
run: |
if [ -d "gh-pages/model_${FLAGS_enable_CE}/history" ]; then
mkdir -p result
cp -r gh-pages/model_${FLAGS_enable_CE}/history result/history
fi
- name: Download report
id: download_report
env:
FLAGS_enable_CE: ${{ steps.determine.outputs.FLAGS_enable_CE }}
run: |
if [ -n "$PR_ID" ] && [ "$PR_ID" != "0" ]; then
bos_prefix="${PR_ID}/${COMMIT_ID}"
else
bos_prefix="schedule/$(date +%Y%m%d)"
bos_prefix="schedule_${FLAGS_enable_CE}/$(date +%Y%m%d)"
fi
echo "bos_prefix=${bos_prefix}"
echo "bos_prefix=${bos_prefix}" >> "$GITHUB_OUTPUT"

wget -q --no-proxy \
https://paddle-github-action.bj.bcebos.com/PR/PaddleFormers/model-unittest-gpu/${bos_prefix}/logs/report.tar.gz \
--no-check-certificate
Expand All @@ -376,4 +412,18 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./report

destination_dir: model_${FLAGS_enable_CE}
- name: Display GitHub Pages URL
if: always()
run: |
# GitHub Pages URL
PAGES_URL="https://paddlepaddle.github.io/PaddleFormers/model_${FLAGS_enable_CE}/"
echo "GitHub Allure Pages URL: ${PAGES_URL}"

echo "## 🚀 Allure Report" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Item | Value |" >> $GITHUB_STEP_SUMMARY
echo "|---|---|" >> $GITHUB_STEP_SUMMARY
echo "| Workflow | ${{ github.workflow }} |" >> $GITHUB_STEP_SUMMARY
echo "| CE Mode | $FLAGS_enable_CE |" >> $GITHUB_STEP_SUMMARY
echo "| Report | [Open Report](${PAGES_URL}) |" >> $GITHUB_STEP_SUMMARY
Loading
Loading