Skip to content
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

Build all profiles but test only those used in Aether #248

Merged
merged 2 commits into from
Apr 27, 2021
Merged
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
14 changes: 7 additions & 7 deletions .jenkins/pr_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ echo "Build all profiles using SDE ${SDE_P4C_DOCKER_IMG}..."
# Pull first to avoid pulling multiple times in parallel by the make jobs
docker pull "${SDE_P4C_DOCKER_IMG}"
# Jenkins uses 8 cores 15G VM
# We commented out 'all' target, because we exceeded 45 min limit on Jenkins.
# TODO: revert once the PTF tests execution time is optimized
# make -j8 all
make -j8 fabric-int
make -j8 fabric-spgw-int
make -j8 all

echo "Build and verify Java pipeconf"
make constants pipeconf-ci MVN_FLAGS="-Pci-verify -Pcoverage"
Expand All @@ -42,9 +38,13 @@ if [ -n "$modified" ]; then
exit 1
fi

# We limit running PTF tests for only those profiles used in Aether, otherwise
# we exceed the 45 min limit on Jenkins.
# FIXME: revert once the PTF tests execution time is optimized (#238)
for profile in "fabric-int" "fabric-spgw-int"; do
# Run PTF tests for all profiles we just built
for d in ./p4src/build/*/; do
profile=$(basename "${d}")
#for d in ./p4src/build/*/; do
# profile=$(basename "${d}")

echo "Run PTF tests for profile ${profile}"
./ptf/run/tm/run "${profile}"
Expand Down