Skip to content

Commit 1c123cd

Browse files
committed
develop-pr-regression.yml: fetch develop branch to compare changes
Signed-off-by: Filip Gołaś <[email protected]>
1 parent 52e625d commit 1c123cd

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
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: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
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",
1012
"CONFIG": "msi-pro-z690-a-wifi-ddr4"
1113
},
1214
"files": {
1315
"mode": "${FULL_FILENAME_MATCH}"
14-
}
16+
},
17+
"robot_args": "-v snipeit:no"
1518
},
1619
{
1720
"env_vars": {
@@ -20,7 +23,8 @@
2023
},
2124
"files": {
2225
"mode": "${FULL_FILENAME_MATCH}"
23-
}
26+
},
27+
"robot_args": "-v snipeit:no"
2428
}
2529
]
2630
},
@@ -31,12 +35,15 @@
3135
{
3236
"env_vars": {
3337
"RTE_IP": "192.168.10.199",
38+
"SONOFF_IP": "192.168.10.169",
39+
"PIKVM_IP": "192.168.10.16",
3440
"CONFIG": "msi-pro-z690-a-wifi-ddr4"
3541
},
3642
"files": {
3743
"mode": "${FILE_CONTAINS_MATCH}",
3844
"search_in": ["dasharo-compatibility", "dasharo-security", "dasharo-performance", "dasharo-stability"]
39-
}
45+
},
46+
"robot_args": "-v snipeit:no"
4047
},
4148
{
4249
"env_vars": {
@@ -46,7 +53,8 @@
4653
"files": {
4754
"mode": "${FILE_CONTAINS_MATCH}",
4855
"search_in": ["dasharo-compatibility", "dasharo-security", "dasharo-performance", "dasharo-stability"]
49-
}
56+
},
57+
"robot_args": "-v snipeit:no"
5058
}
5159
]
5260
}

0 commit comments

Comments
 (0)