-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/dynamic_integration_pipeline_v5.1' into 'release/v…
…5.1' CI: dynamic integration pipeline v5.1 See merge request espressif/esp-idf!26654
- Loading branch information
Showing
13 changed files
with
103 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,50 +32,11 @@ push_to_github: | |
extends: | ||
- .deploy_job_template | ||
- .before_script_minimal | ||
- .rules:protected-no_label | ||
dependencies: [] | ||
- .rules:push_to_github | ||
needs: | ||
- check_submodule_sync | ||
script: | ||
- add_github_ssh_keys | ||
- git remote remove github &>/dev/null || true | ||
- git remote add github [email protected]:espressif/esp-idf.git | ||
- tools/ci/push_to_github.sh | ||
|
||
deploy_test_result: | ||
extends: | ||
- .deploy_job_template | ||
- .before_script_minimal | ||
- .rules:ref:master-always | ||
image: $CI_DOCKER_REGISTRY/bot-env:1 | ||
dependencies: [] | ||
tags: | ||
- deploy_test | ||
artifacts: | ||
when: always | ||
paths: | ||
- ${CI_PROJECT_DIR}/test-management/*.log | ||
expire_in: 1 week | ||
variables: | ||
BOT_ACCOUNT_CONFIG_FILE: "${CI_PROJECT_DIR}/test-management/Config/Account.local.yml" | ||
TEST_RESULTS_PATH: "${CI_PROJECT_DIR}/TEST_RESULTS" | ||
script: | ||
- add_gitlab_ssh_keys | ||
- export GIT_SHA=$(echo ${CI_COMMIT_SHA} | cut -c 1-8) | ||
- export REV_COUNT=$(git rev-list --count ${GIT_SHA} --) | ||
- export SUMMARY="IDF CI test result for $GIT_SHA (r${REV_COUNT})" | ||
# Download test result | ||
- export PYTHONPATH="$IDF_PATH/tools:$IDF_PATH/tools/ci/python_packages:$PYTHONPATH" | ||
- python3 ${IDF_PATH}/tools/ci/get_all_test_results.py --path ${TEST_RESULTS_PATH} --include_retried | ||
- if [[ -z $(find ${TEST_RESULTS_PATH} -name "*.xml") ]]; then exit 0; fi | ||
# Clone test-management repo | ||
- retry_failed git clone $TEST_MANAGEMENT_REPO | ||
- python3 $CHECKOUT_REF_SCRIPT test-management test-management | ||
- cd test-management | ||
- echo $BOT_JIRA_ACCOUNT > ${BOT_ACCOUNT_CONFIG_FILE} | ||
# Make sure all requirements are installed | ||
- pip3 install -r requirements.txt | ||
# Update test cases | ||
- python3 ImportTestCase.py $JIRA_TEST_MANAGEMENT_PROJECT from_xml -d ${TEST_RESULTS_PATH} -r $GIT_SHA -l IDFCI | ||
# update test results | ||
- python3 ImportTestResult.py -r "$GIT_SHA (r${REV_COUNT})" -j $JIRA_TEST_MANAGEMENT_PROJECT -s "$SUMMARY" -l IDFCI -p ${TEST_RESULTS_PATH} --pipeline_url ${CI_PIPELINE_URL} | ||
# May need a long time to upload all test results. | ||
timeout: 4 hours |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.