-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.ci: ovn-kubernetes: Add a "prepare" stage to allow for custom actions.
One example is to allow us to change the ovn-kubernetes code that decides what e2e tests are run. That's needed on older stable branches that don't support all the features that newer OVN versions do. Currently, on the main branch, there's no custom change required but on older branches (branch-22.09 -> branch-22.03) the affinity timeout related tests should be disabled because the OVN feature didn't exist there. An upcoming patch does that. Signed-off-by: Dumitru Ceara <dceara@redhat.com> Acked-by: Ales Musil <amusil@redhat.com> Signed-off-by: Mark Michelson <mmichels@redhat.com> (cherry picked from commit 05a7b97)
- Loading branch information
Showing
5 changed files
with
38 additions
and
1 deletion.
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -ev | ||
|
||
ovnk8s_path=$1 | ||
topdir=$PWD | ||
|
||
pushd ${ovnk8s_path} | ||
|
||
# Add here any custom operations that need to performed on the | ||
# ovn-kubernetes cloned repo, e.g., custom patches. | ||
|
||
# git apply --allow-empty is too new so not all git versions from major | ||
# distros support it, just check if the custom patch file is not empty | ||
# before applying it. | ||
[ -s ${topdir}/.ci/ovn-kubernetes/custom.patch ] && \ | ||
git apply -v ${topdir}/.ci/ovn-kubernetes/custom.patch | ||
|
||
popd # ${ovnk8s_path} | ||
exit 0 |
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