-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into qe-op-installation
- Loading branch information
Showing
16 changed files
with
1,011 additions
and
1,019 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 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 |
---|---|---|
|
@@ -35,19 +35,19 @@ jobs: | |
touch ${PFLT_DOCKERCONFIG} | ||
echo '{ "auths": {} }' >> ${PFLT_DOCKERCONFIG} | ||
- name: Set up Go 1.23 | ||
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | ||
with: | ||
go-version: 1.23.6 | ||
|
||
- name: Disable default go problem matcher | ||
run: echo "::remove-matcher owner=go::" | ||
|
||
- name: Check out code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
ref: ${{ github.sha }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | ||
with: | ||
go-version-file: go.mod | ||
|
||
- name: Disable default go problem matcher | ||
run: echo "::remove-matcher owner=go::" | ||
|
||
- name: Check out `certsuite-sample-workload` | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
|
@@ -59,34 +59,15 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install -y python3-pip | ||
- name: Create docker/daemon.json if it does not exist | ||
run: | | ||
if [ ! -f /etc/docker/daemon.json ]; then | ||
echo '{}' | sudo tee /etc/docker/daemon.json | ||
fi | ||
# Create a Kind cluster for testing. | ||
- name: Bootstrap the Kind and OC/Kubectl binaries for the `local-test-infra` | ||
run: make bootstrap-cluster | ||
working-directory: certsuite-sample-workload | ||
|
||
# Restart docker using /mnt/docker-storage (sdb) instead of /var/lib/docker (sda). | ||
# This step needs to be done right after the partner repo's bootstrap scripts, as they | ||
# overwrite the docker's daemon.json. | ||
- name: Make docker to use /mnt (sdb) for storage | ||
run: | | ||
df -h | ||
lsblk | ||
sudo mkdir /mnt/docker-storage | ||
sudo jq '. +={"data-root" : "/mnt/docker-storage"}' < /etc/docker/daemon.json > /tmp/docker-daemon.json | ||
sudo cp /tmp/docker-daemon.json /etc/docker/daemon.json | ||
cat /etc/docker/daemon.json | ||
sudo systemctl restart docker | ||
sudo ls -la /mnt/docker-storage | ||
- name: Create `local-test-infra` OpenShift resources | ||
run: make rebuild-cluster | ||
working-directory: certsuite-sample-workload | ||
- name: Setup up k8s cluster | ||
uses: palmsoftware/[email protected] | ||
with: | ||
disableDefaultCni: true | ||
numControlPlaneNodes: 1 | ||
numWorkerNodes: 2 | ||
installOLM: true | ||
removeDefaultStorageClass: true | ||
removeControlPlaneTaint: true | ||
|
||
- name: Install partner resources | ||
run: python3 -m venv .venv; source .venv/bin/activate; pip install --upgrade pip; pip install jinjanator; cp .venv/bin/jinjanate .venv/bin/j2; make install-for-qe | ||
|
@@ -108,13 +89,13 @@ jobs: | |
ref: main | ||
|
||
- name: Extract dependent Pull Requests | ||
uses: depends-on/depends-on-action@77e67971a155b35424508ada365790c47286fd0f # main | ||
uses: depends-on/depends-on-action@61cb3f4a0e2c8ae4b90c9448dc57c7ba9ca24c35 # main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
extra-dirs: certsuite-sample-workload certsuite | ||
|
||
- name: Run the tests (against image) | ||
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0 | ||
uses: nick-fields/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1 | ||
with: | ||
timeout_minutes: 60 | ||
max_attempts: 3 | ||
|
@@ -126,7 +107,7 @@ jobs: | |
working-directory: certsuite | ||
|
||
- name: Run the tests (against binary) | ||
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0 | ||
uses: nick-fields/retry@c97818ca39074beaea45180dba704f92496a0082 # v3.0.1 | ||
with: | ||
timeout_minutes: 60 | ||
max_attempts: 3 | ||
|
@@ -137,7 +118,7 @@ jobs: | |
steps: | ||
|
||
- name: Extract dependent PR | ||
uses: depends-on/depends-on-action@77e67971a155b35424508ada365790c47286fd0f # main | ||
uses: depends-on/depends-on-action@61cb3f4a0e2c8ae4b90c9448dc57c7ba9ca24c35 # main | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
check-unmerged-pr: true | ||
|
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
Oops, something went wrong.