-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors in the CI pipeline introduced by ns-3.41 (#158)
+ CI: only skip tests if they were successful on a past run with same ccache contents + Tests: compare packets with uid instead of each serialized byte
- Loading branch information
1 parent
69cb2e3
commit 7c0ca67
Showing
3 changed files
with
64 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ runs: | |
using: "composite" | ||
steps: | ||
# Pre-configuration steps | ||
# (skip ccache for --disable-precompiled-headers because it won't use it) | ||
# (skip ccache for optimized because built files are too architecture dependent) | ||
- if: env.MODE != 'optimized' && ( ! contains(env.EXTRA_OPTIONS, '--disable-precompiled-headers') ) | ||
name: "Restore build cache of this job" | ||
uses: hendrikmuhs/[email protected] | ||
|
@@ -30,6 +32,28 @@ runs: | |
- name: "Build ns-3" | ||
shell: bash | ||
run: ./ns3 build | ||
- name: "Show ccache stats" | ||
shell: bash | ||
run: ccache -s | ||
# Manage inter-run placeholder for tests | ||
- name: "Prepare env and get cache miss rate" | ||
shell: bash | ||
run: | | ||
echo "CACHE_MISS=`./utils/ccache-miss-rate.py`" >> $GITHUB_ENV | ||
echo "REF_NAME=`echo $GITHUB_REF_NAME | sed -r 's/[/]+/-/g'`" >> $GITHUB_ENV | ||
echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV | ||
touch build/tests-base.txt | ||
- if: env.CACHE_MISS != '0' | ||
name: "Create tests placeholder" | ||
shell: bash | ||
run: | | ||
touch build/tests-$BUILD_ID.txt | ||
- if: env.CACHE_MISS != '0' | ||
name: "Store tests placeholder" | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ format('tests-{0}-{1}-{2}', env.BUILD_ID, env.REF_NAME, env.NOW) }} | ||
path: build/tests-*.txt | ||
# Post-build steps | ||
- if: inputs.store-artifacts == 'true' | ||
name: "Tar files to preserve permissions" | ||
|
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