-
Notifications
You must be signed in to change notification settings - Fork 136
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
feat(modem): host test support of the latest ESP-IDF release (IDF-7828) #454
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -18,6 +18,12 @@ on: | |
upload_artifacts: | ||
type: boolean | ||
required: true | ||
run_executable: | ||
type: boolean | ||
required: true | ||
run_coverage: | ||
type: boolean | ||
required: true | ||
pre_run_script: | ||
type: string | ||
required: false | ||
|
@@ -28,14 +34,14 @@ on: | |
jobs: | ||
build: | ||
name: Build App | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
checks: write | ||
contents: write | ||
container: espressif/idf:${{inputs.idf_version}} | ||
steps: | ||
- name: Checkout esp-protocols | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: esp-protocols | ||
- name: Build ${{ inputs.app_name }} with IDF-${{ inputs.idf_version }} | ||
|
@@ -51,14 +57,19 @@ jobs: | |
# The sdkconfig.ci.linux specifies Linux as the build target with apropriate settings. | ||
cp sdkconfig.ci.linux sdkconfig.defaults | ||
idf.py build | ||
./build/${{inputs.app_name}}.elf -r junit -o junit.xml | ||
if [ "${{ inputs.run_executable}}" == "false" ]; then | ||
echo "Executeable wasn't run" | ||
exit 0 | ||
fi | ||
./build/${{inputs.app_name}}.elf | ||
- name: Publish Unit Test Result | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
if: ${{ inputs.publish_unit_test_result }} | ||
with: | ||
files: ${{inputs.component_path}}/**/*junit.xml | ||
- name: Build with Coverage Enabled | ||
shell: bash | ||
if: ${{ inputs.run_coverage }} | ||
run: | | ||
component=$(basename ${{ inputs.component_path }}) | ||
if [ -f "${{ inputs.pre_run_script }}" ]; then | ||
|
@@ -74,6 +85,7 @@ jobs: | |
./build/${{inputs.app_name}}.elf | ||
- name: Run Coverage | ||
shell: bash | ||
if: ${{ inputs.run_coverage }} | ||
run: | | ||
apt-get update && apt-get install -y python3-pip rsync | ||
python -m pip install gcovr | ||
|
@@ -86,6 +98,7 @@ jobs: | |
cp index.html ${{inputs.app_name}}_coverage_report | ||
cp -rf ${{inputs.app_name}}_coverage_report ${{inputs.app_name}}_coverage.xml $GITHUB_WORKSPACE | ||
- name: Code Coverage Summary Report | ||
if: ${{ inputs.run_coverage }} | ||
uses: irongut/[email protected] | ||
with: | ||
filename: esp-protocols/**/${{inputs.app_name}}_coverage.xml | ||
|
@@ -99,9 +112,10 @@ jobs: | |
thresholds: '60 80' | ||
- name: Write to Job Summary | ||
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY | ||
if: ${{ inputs.run_coverage }} | ||
- name: Upload files to artifacts for run-target job | ||
uses: actions/upload-artifact@v3 | ||
if: ${{inputs.upload_artifacts}} | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ inputs.run_coverage }} | ||
with: | ||
name: ${{inputs.app_name}}_coverage_report | ||
path: | | ||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a reusable action, correct? Wouldn't we miss the junit outputs for the websocket and mdns host tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@david-cermak good point. I will modify and fix it in another PR. I'll address and resolve it in a subsequent pull request. As today I noticed a problem with the package upgrade for the mDNS test, but I believe the second commit in this pull request will fix the issue.
Thank you for your review!