tcwg_*: Add support for precommit testing from forgejo
Add support for URLs similar to
https://forge.sourceware.org/gcc/gcc-TEST/pulls/NN
Change-Id: I07b779e74e1aa001eecccdcf02e1b1422361e964
diff --git a/tcwg/round-robin.yaml.inc b/tcwg/round-robin.yaml.inc
index be6131a..e4e47dc 100644
--- a/tcwg/round-robin.yaml.inc
+++ b/tcwg/round-robin.yaml.inc
@@ -1039,7 +1039,7 @@
for c in #{COMPONENTS}; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -1060,6 +1060,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
diff --git a/tcwg_binutils.yaml b/tcwg_binutils.yaml
index 46c6249..3aeae13 100644
--- a/tcwg_binutils.yaml
+++ b/tcwg_binutils.yaml
@@ -873,7 +873,7 @@
for c in binutils; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -894,6 +894,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1410,4 +1421,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: dac7ddafa93a699a0585622b97f9cbde
+# checksum: 9116472424f43febe384174441af0a8f
diff --git a/tcwg_bootstrap.yaml b/tcwg_bootstrap.yaml
index 0140709..62582a8 100644
--- a/tcwg_bootstrap.yaml
+++ b/tcwg_bootstrap.yaml
@@ -816,7 +816,7 @@
for c in gcc; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -837,6 +837,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1353,4 +1364,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 8b2aa8aa7f044d9b561c5f26c3ef7e86
+# checksum: 9753071b5cc1b99aea3f3b5ae531e299
diff --git a/tcwg_gcc.yaml b/tcwg_gcc.yaml
index 59e55b3..b61279d 100644
--- a/tcwg_gcc.yaml
+++ b/tcwg_gcc.yaml
@@ -873,7 +873,7 @@
for c in gcc; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -894,6 +894,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1424,4 +1435,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: e733eaa2cbf614fec2931f590892af89
+# checksum: 9a1781b3b02fc6fbeddc7801d9c973e1
diff --git a/tcwg_gdb.yaml b/tcwg_gdb.yaml
index a03b53e..6ceb79c 100644
--- a/tcwg_gdb.yaml
+++ b/tcwg_gdb.yaml
@@ -874,7 +874,7 @@
for c in gdb; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -895,6 +895,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1411,4 +1422,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 95ff97d19de50a718005bc5a82149191
+# checksum: 079a4c465ca66350ccc49c9f29073c05
diff --git a/tcwg_glibc.yaml b/tcwg_glibc.yaml
index dc177e6..82e3907 100644
--- a/tcwg_glibc.yaml
+++ b/tcwg_glibc.yaml
@@ -879,7 +879,7 @@
for c in glibc; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -900,6 +900,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1418,4 +1429,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 39a50c2ccd8159154df95cfc3198bb19
+# checksum: 9dadda93730c9046b6a0a5caf5569f08
diff --git a/tcwg_gnu_cross.yaml b/tcwg_gnu_cross.yaml
index d782c05..0e19697 100644
--- a/tcwg_gnu_cross.yaml
+++ b/tcwg_gnu_cross.yaml
@@ -838,7 +838,7 @@
for c in binutils gcc gdb glibc linux qemu; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -859,6 +859,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1393,4 +1404,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: e537184826da5201fa1bdc2d146357b5
+# checksum: 9e0086b337f7bef463358af3f3deeb89
diff --git a/tcwg_gnu_embed.yaml b/tcwg_gnu_embed.yaml
index 01ad29c..86970b9 100644
--- a/tcwg_gnu_embed.yaml
+++ b/tcwg_gnu_embed.yaml
@@ -836,7 +836,7 @@
for c in binutils gcc gdb newlib qemu; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -857,6 +857,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1389,4 +1400,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 11ec346bc5f97420d61e16d8a49ff8e6
+# checksum: d01b0affc4e820297e2a4b5cdd1fc414
diff --git a/tcwg_gnu_mingw.yaml b/tcwg_gnu_mingw.yaml
index 9fc6903..a0925cb 100644
--- a/tcwg_gnu_mingw.yaml
+++ b/tcwg_gnu_mingw.yaml
@@ -807,7 +807,7 @@
for c in binutils gcc mingw; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -828,6 +828,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1342,4 +1353,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 54a38cdeba0eeb1841543910be070523
+# checksum: 043fe884c0df7a6534aa238dd82e6b32
diff --git a/tcwg_gnu_native.yaml b/tcwg_gnu_native.yaml
index bb57ddc..e460ba9 100644
--- a/tcwg_gnu_native.yaml
+++ b/tcwg_gnu_native.yaml
@@ -843,7 +843,7 @@
for c in binutils gcc gdb glibc linux; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -864,6 +864,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1404,4 +1415,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 7a92e26a3b5fd0a4698fe6a679a17ef1
+# checksum: 14a1fadd13b59ef7dcdefc2d951ccdd7
diff --git a/tcwg_simplebootstrap.yaml b/tcwg_simplebootstrap.yaml
index e3c4bfa..8b4bcfa 100644
--- a/tcwg_simplebootstrap.yaml
+++ b/tcwg_simplebootstrap.yaml
@@ -878,7 +878,7 @@
for c in gcc; do
eval "g=\$$$${{c}}_git"
case "$g" in
- "pw://"*|"ssh://"*)
+ "pw://"*|"ssh://"*|"https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
# Handle pre-commit testing
case "$g" in
"pw://"*)
@@ -899,6 +899,17 @@
--pw_dir artifacts/jenkins/pw \
&> artifacts/jenkins/precommit-ssh-apply.log &
;;
+ "https://forge.sourceware.org/gcc/gcc-TEST/pulls/"*)
+ build_container_exec \
+ ./jenkins-scripts/precommit-forge-apply.sh \
+ --ci_bot '{ci_project}--{ci_config}' \
+ --project "$c" --pw_url "$g" \
+ --branch master \
+ --build_url "$BUILD_URL" \
+ --patch_submitter "$notify" \
+ --pw_dir artifacts/jenkins/pw \
+ &> artifacts/jenkins/precommit-ssh-apply.log &
+ ;;
esac
res=0 && wait $! || res=$?
@@ -1415,4 +1426,4 @@
docker_security: '{docker_security}'
publishers:
- bisect-publishers
-# checksum: 26c457e2cd83cc6fee56ac1d257b6e11
+# checksum: e803b6634ba14f7dd7d91b485db6879d