-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI to handle auto test and promote to strict and moonray branches (…
…#476) * Add CI to handle auto test and promote to strict and moonray branches * also apply patch when running tests * fix missing namespace issues with calico * Disable more tests until features are implemented * Add --timeout flags to status check commands * do not fail fast on failing informing tests * skip cleanup test (not yet implemented) * relax default timeout * refactor check network ready * improve wording of x-wait-for failure commands * retry on failures of checking DNS and network * never return false without error * disable test_network too * avoid returning false, nil on CheckNetwork cilium * fixup cilium messages
- Loading branch information
1 parent
5faf42c
commit 6772673
Showing
9 changed files
with
154 additions
and
103 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 was deleted.
Oops, something went wrong.
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,51 @@ | ||
name: Auto-update branches | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'release-[0-9]+.[0-9]+' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
update: | ||
name: "${{ matrix.patch }}" | ||
permissions: | ||
contents: write # for Git to git push | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
patch: ["strict", "moonray"] | ||
outputs: | ||
branch: ${{ steps.determine.outputs.branch }} | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@v2 | ||
with: | ||
egress-policy: audit | ||
- name: Determine branch | ||
id: determine | ||
env: | ||
BRANCH: ${{ github.ref }} | ||
run: | | ||
BRANCH=${BRANCH#refs/heads/} # strip off refs/heads/ if it exists | ||
if [[ "${BRANCH}" == "main" ]]; then | ||
echo "branch=autoupdate/${{ matrix.patch }}" >> "$GITHUB_OUTPUT" | ||
elif [[ "${BRANCH}" =~ ^release-[0-9]+\.[0-9]+$ ]]; then | ||
echo "branch=autoupdate/${BRANCH}-${{ matrix.patch }}" >> "$GITHUB_OUTPUT" | ||
else | ||
exit 1 | ||
fi | ||
- name: Sync ${{ github.ref }} to ${{ needs.prepare.outputs.branch }} | ||
uses: actions/checkout@v4 | ||
with: | ||
ssh-key: ${{ secrets.DEPLOY_KEY_TO_UPDATE_STRICT_BRANCH }} | ||
- name: Apply ${{ matrix.patch }} patch | ||
run: | | ||
git checkout -b ${{ needs.prepare.outputs.branch }} | ||
./build-scripts/patches/${{ matrix.patch }}/apply | ||
- name: Push to ${{ needs.prepare.outputs.branch }} | ||
run: | | ||
git push origin --force ${{ needs.prepare.outputs.branch }} |
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