Skip to content

Commit 2a2d9a5

Browse files
philipandamacpijan
authored andcommitted
develop-pr-regression.yml: fetch develop branch to compare changes
Signed-off-by: Filip Gołaś <[email protected]>
1 parent df2aab7 commit 2a2d9a5

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.github/workflows/develop-pr-regression.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,21 @@ jobs:
1818
runs-on: self-hosted
1919

2020
steps:
21+
- name: check network
22+
run: |
23+
ip a
24+
ping -c 3 192.168.10.1
25+
ping -c 3 192.168.4.1
26+
ping -c 3 1.1.1.1
27+
2128
- name: Checkout repository and submodules
2229
uses: actions/checkout@v2
2330
with:
2431
submodules: 'recursive'
32+
fetch-depth: 0
33+
34+
- name: Fetch develop branch
35+
run: git fetch origin develop
2536

2637
- name: Set up Python
2738
uses: actions/setup-python@v2

scripts/ci/develop_pr_auto_regression.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
88

99
echo "Comparing $(git rev-parse HEAD) with develop branch. Changed files:"
10-
git diff --name-only origin develop
10+
git diff --name-only origin/develop
1111

12-
mapfile -t commands < <(${SCRIPT_DIR}/regression-scope/osfv_regression_scope.py commands --compare_to develop)
12+
mapfile -t commands < <(${SCRIPT_DIR}/regression-scope/osfv_regression_scope.py commands --compare_to origin/develop)
13+
echo "Commands to run:"
14+
echo "${commands[@]}"
15+
printf "\n"
1316

1417
if [[ ${#commands[@]} -eq 0 ]]; then
15-
echo "No tests required to run for these changes. Exiting."
16-
exit 0
18+
echo "No tests required to run for these changes."
1719
fi
1820

1921
pids=()

scripts/ci/regression-scope/rules.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
{
88
"env_vars": {
99
"RTE_IP": "192.168.10.199",
10+
"SONOFF_IP": "192.168.10.169",
11+
"PIKVM_IP": "192.168.10.16",
12+
"SNIPEIT_NO": "true",
1013
"CONFIG": "msi-pro-z690-a-wifi-ddr4"
1114
},
1215
"files": {
@@ -16,6 +19,7 @@
1619
{
1720
"env_vars": {
1821
"RTE_IP": "192.168.10.171",
22+
"SNIPEIT_NO": "true",
1923
"CONFIG": "pcengines-apu3"
2024
},
2125
"files": {
@@ -31,6 +35,9 @@
3135
{
3236
"env_vars": {
3337
"RTE_IP": "192.168.10.199",
38+
"SNIPEIT_NO": "true",
39+
"SONOFF_IP": "192.168.10.169",
40+
"PIKVM_IP": "192.168.10.16",
3441
"CONFIG": "msi-pro-z690-a-wifi-ddr4"
3542
},
3643
"files": {
@@ -41,6 +48,7 @@
4148
{
4249
"env_vars": {
4350
"RTE_IP": "192.168.10.171",
51+
"SNIPEIT_NO": "true",
4452
"CONFIG": "pcengines-apu3"
4553
},
4654
"files": {

0 commit comments

Comments
 (0)