Skip to content

Commit 2ecff3e

Browse files
authored
Merge pull request #3630 from sippy/pr_fix_ci
Fix CI issues (#3501 fallout)
2 parents 3e5f7b6 + f396a39 commit 2ecff3e

14 files changed

Lines changed: 35 additions & 21 deletions

.github/workflows/.rtp.io.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ jobs:
204204
needs: [build_rtp_io_dock, set_env]
205205
runs-on: ubuntu-latest
206206
if: ${{ github.event_name != 'pull_request' }}
207+
permissions:
208+
packages: read
207209
strategy:
208210
fail-fast: false
209211
matrix:
@@ -220,6 +222,13 @@ jobs:
220222
with:
221223
platforms: ${{ env.TARGETPLATFORM }}
222224

225+
- name: Login to GitHub Container Registry
226+
uses: docker/login-action@v3
227+
with:
228+
registry: ghcr.io
229+
username: ${{ github.repository_owner }}
230+
password: ${{ secrets.GITHUB_TOKEN }}
231+
223232
- name: Test ${{ env.TARGETPLATFORM }}
224233
run: |
225234
docker pull ${BUILD_IMAGE}

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# This workflow contains a single job called "build"
1717
build_and_test:
1818
# The type of runner that the job will run on
19-
runs-on: ${{ matrix.os }}
19+
runs-on: ubuntu-${{ matrix.os }}
2020
continue-on-error: true
2121
env:
2222
COMPILER: ${{ matrix.compiler }}

modules/b2b_entities/dlg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2776,6 +2776,7 @@ int b2b_send_req(b2b_dlg_t* dlg, enum b2b_entity_type etype,
27762776
}
27772777

27782778
static struct sip_msg dummy_msg;
2779+
static struct hdr_field callid_hdr, from_hdr, to_hdr;
27792780

27802781
static int build_extra_headers_from_msg(str buf, str *extra_hdr,
27812782
str *new_hdrs, str *body)
@@ -2890,7 +2891,6 @@ void b2b_tm_cback(struct cell *t, b2b_table htable, struct tmcb_params *ps)
28902891
struct hdr_field cseq;
28912892
enum b2b_entity_type etype=(htable==server_htable?B2B_SERVER:B2B_CLIENT);
28922893
int dlg_based_search = 0;
2893-
struct hdr_field callid_hdr, from_hdr, to_hdr;
28942894
struct to_body to_hdr_parsed, from_hdr_parsed;
28952895
int dlg_state = 0, prev_state = B2B_UNDEFINED;
28962896
struct uac_credential* crd;

modules/cpl_c/cpl_switches.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static inline char *run_address_switch( struct cpl_interpreter *intr )
190190
goto script_error;
191191
}
192192
LM_DBG("extracted val. is <%.*s>\n",
193-
(msg_val==0)?0:msg_val->len, (msg_val==0)?0:msg_val->s);
193+
(msg_val==0)?0:msg_val->len, (msg_val==0)?"":msg_val->s);
194194
}
195195
/* does the value from script match the one from message? */
196196
switch (attr_name) {

modules/sqlops/sqlops_impl.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ static inline int _parse_json_col_and_filter( str *cols, str *filter,
843843
int ops_sql_api_select(struct db_url *url, struct sip_msg* msg, str *cols,
844844
str *table, str *filter, str * order, pvname_list_t* dest, int one_col)
845845
{
846-
cJSON *Jcols, *Jfilter;
846+
cJSON *Jcols = NULL, *Jfilter;
847847
int ret;
848848

849849
ret = _parse_json_col_and_filter( cols, filter, &Jcols, &Jfilter);
@@ -868,7 +868,7 @@ int ops_sql_api_select(struct db_url *url, struct sip_msg* msg, str *cols,
868868
int ops_sql_api_update(struct db_url *url, struct sip_msg* msg, str *cols,
869869
str *table, str *filter)
870870
{
871-
cJSON *Jcols, *Jfilter;
871+
cJSON *Jcols = NULL, *Jfilter;
872872
int ret;
873873

874874
ret = _parse_json_col_and_filter( cols, filter, &Jcols, &Jfilter);
@@ -892,7 +892,7 @@ int ops_sql_api_update(struct db_url *url, struct sip_msg* msg, str *cols,
892892
int ops_sql_api_insert(struct db_url *url, struct sip_msg* msg, str *table,
893893
str *cols)
894894
{
895-
cJSON *Jcols, *Jfilter;
895+
cJSON *Jcols = NULL, *Jfilter;
896896
int ret;
897897

898898
ret = _parse_json_col_and_filter( cols, NULL, &Jcols, &Jfilter);
@@ -916,7 +916,7 @@ int ops_sql_api_insert(struct db_url *url, struct sip_msg* msg, str *table,
916916
int ops_sql_api_delete(struct db_url *url, struct sip_msg* msg,
917917
str *table, str *filter)
918918
{
919-
cJSON *Jcols, *Jfilter;
919+
cJSON *Jcols = NULL, *Jfilter;
920920
int ret;
921921

922922
ret = _parse_json_col_and_filter( NULL, filter, &Jcols, &Jfilter);
@@ -940,7 +940,7 @@ int ops_sql_api_delete(struct db_url *url, struct sip_msg* msg,
940940
int ops_sql_api_replace(struct db_url *url, struct sip_msg* msg, str *table,
941941
str *cols)
942942
{
943-
cJSON *Jcols, *Jfilter;
943+
cJSON *Jcols = NULL, *Jfilter;
944944
int ret;
945945

946946
ret = _parse_json_col_and_filter( cols, NULL, &Jcols, &Jfilter);

scripts/build/build_libtap.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
set -e
44

5-
. $(dirname $0)/dockerize.sub
6-
75
. $(dirname $0)/build.conf.sub
6+
. $(dirname $0)/dockerize.sub
87

98
make -C "${1}" CFLAGS="-O1 -fPIE -fPIC" libtap.a

scripts/build/build_test_harness.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
set -e
44

5+
. $(dirname $0)/build.conf.sub
56
. $(dirname $0)/dockerize.sub
67

78
make Makefile.conf

scripts/build/do_build.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
set -e
44

5-
. $(dirname $0)/dockerize.sub
6-
75
. $(dirname $0)/build.conf.sub
6+
. $(dirname $0)/dockerize.sub
87

98
EXCLUDE_MODULES="db_oracle osp sngtc cachedb_cassandra cachedb_couchbase \
109
cachedb_mongodb auth_jwt event_kafka aaa_diameter launch_darkly http2d \

scripts/build/dockerize.sub

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
if [ -e /tmp/docker_opensips.cid ]
22
then
3-
exec docker exec -w `pwd` --env COMPILER --env BUILD_OS --env MAKE_TGT `cat /tmp/docker_opensips.cid` sh -x "${0}" "${@}"
3+
if [ "${DOCKR_PLATFORM}" = "arm64/v8" ]
4+
then
5+
DOCKR_ARGS="-e QEMU_CPU=cortex-a53"
6+
fi
7+
exec docker exec -w `pwd` --env COMPILER --env BUILD_OS --env MAKE_TGT ${DOCKR_ARGS} `cat /tmp/docker_opensips.cid` sh -x "${0}" "${@}"
48
fi

scripts/build/get-arch-buildargs.rtp.io

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ platformopts() {
4444
;;
4545
esac
4646
;;
47+
ubuntu*)
48+
case "${TARGETPLATFORM}" in
49+
linux/arm64/v8)
50+
out="${out} QEMU_CPU=cortex-a53"
51+
;;
52+
esac
4753
esac
4854
echo "${out}"
4955
echo "${@}"

0 commit comments

Comments
 (0)