Skip to content

Commit 4ba79b4

Browse files
committed
update runners to use pg embedded runners
update github actions to use newly added pg embedded runners to reduce runner wait time. Signed-off-by: Adrian Ng Ho Yin <adrianhoyin.ng@altera.com>
1 parent fab2c24 commit 4ba79b4

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ concurrency:
2323
jobs:
2424
#This action extracts the new commits and performs checkpatch checks on it.
2525
ci-checkpatch:
26-
runs-on: [self-hosted,esw_runner]
26+
runs-on: [self-hosted,pg-embedded-runner]
27+
container:
28+
image: amr-registry-pre.caas.intel.com/pse-pswe-software-ba/embedded_coverity:ubuntu20.04.0_6
29+
options: -v /mnt/nfs_share/site/proj/psg:/p/psg
2730
# Check patch only can run at pull request as it is hard to determine the commit during the push event.
2831
env:
2932
GITHUB_EVENT_NAME: ${{ github.event_name }}
@@ -36,13 +39,14 @@ jobs:
3639

3740
- name: Checkpatch.pl
3841
run: |
39-
git clone https://github.com/intel-sandbox/application.devops.github.pr.workflow
42+
git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
43+
git clone https://${{ secrets.GIT_USER }}:${{ secrets.GIT_TOKEN }}@github.com/intel-sandbox/application.devops.github.pr.workflow
4044
cd application.devops.github.pr.workflow
4145
git checkout master
42-
bash workflow_Checkpatch.sh ${{ github.workspace }} ${{ github.event.repository.name }} ${{ secrets.GITHUB_TOKEN }} ${{ github.event.pull_request.number }} ${{ github.head_ref }} ${{ github.base_ref }}
46+
bash workflow_Checkpatch.sh ../ ${{ github.event.repository.name }} ${{ secrets.GITHUB_TOKEN }} ${{ github.event.pull_request.number }} ${{ github.head_ref }} ${{ github.base_ref }}
4347
4448
ci-coverity:
45-
runs-on: [self-hosted,build_server,pswe-ci-runner1.sj.altera.com]
49+
runs-on: [self-hosted,pg-embedded-runner]
4650
container:
4751
image: amr-registry-pre.caas.intel.com/pse-pswe-software-ba/embedded_coverity:ubuntu20.04.0_6
4852
env:
@@ -86,7 +90,7 @@ jobs:
8690

8791
ci-coverity-parse-result:
8892
needs: ci-coverity
89-
runs-on: [self-hosted,build_server,pswe-ci-runner1.sj.altera.com]
93+
runs-on: [self-hosted,pg-embedded-runner]
9094
container:
9195
image: amr-registry-pre.caas.intel.com/pse-pswe-software-ba/embedded_coverity:ubuntu20.04.0_6
9296

@@ -138,7 +142,7 @@ jobs:
138142
#This action performs a build test using an ubuntu container.
139143
ci-build:
140144
# The type of runner that the job will run on
141-
runs-on: [self-hosted,build_server,pswe-ci-runner1.sj.altera.com]
145+
runs-on: [self-hosted,pg-embedded-runner]
142146
container:
143147
image: amr-registry-pre.caas.intel.com/pse-pswe-software-ba/embedded_coverity:ubuntu20.04.0_6
144148
env:
@@ -190,7 +194,7 @@ jobs:
190194
191195
#This action checks if there is any unaddressed comments or change request
192196
ci-check-reviews:
193-
runs-on: [self-hosted,pswe-ci-runner1.sj.altera.com]
197+
runs-on: [self-hosted,pg-embedded-runner]
194198
steps:
195199
- name: Check for unaddressed change requests
196200
env:
@@ -208,7 +212,7 @@ jobs:
208212
209213
#This is the commit gate that ensures all required checks are passing before the PR is allowed to be merged.
210214
ci-check-pr-status:
211-
runs-on: [self-hosted,pswe-ci-runner1.sj.altera.com]
215+
runs-on: [self-hosted,pg-embedded-runner]
212216
needs: [ci-coverity-parse-result, ci-verification, ci-checkpatch, ci-check-reviews]
213217
steps:
214218
- name: Check for unaddressed change requests

0 commit comments

Comments
 (0)