Skip to content

Fix CI issues (#3501 fallout)#3630

Merged
liviuchircu merged 7 commits into
OpenSIPS:masterfrom
sippy:pr_fix_ci
Apr 22, 2025
Merged

Fix CI issues (#3501 fallout)#3630
liviuchircu merged 7 commits into
OpenSIPS:masterfrom
sippy:pr_fix_ci

Conversation

@sobomax
Copy link
Copy Markdown
Contributor

@sobomax sobomax commented Apr 18, 2025

Summary

Fix CI issues caused by the merge of #3501.

Details

There were some CI issues related to addition of ubuntu 24.04 and the fact that GHCR images are not shared publicly by the OpenSIPS project.

Solution

Typo is fixed, some gcc-1[34] errors are fixes. I also think addressed some issue with undue slowness of the arm64 clang build on ubuntu specifically. Somehow it takes 10x time compared to other emulated architectures, suspected use of some advanced instructions that are not very well emulated. The virtual "CPU" has been "downgraded" to the lowest possible arm64 variant, which seems to bring arm64/ubuntu build times back in line.

sobomax added 7 commits April 18, 2025 01:05
   "error: storing the address of local variable ‘from_hdr’ in ‘dummy_msg.headers’"
… format

DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -DUNIT_TESTS -Wno-deprecated-declarations -I/usr/include/libxml2 -c cpl_run.c -o cpl_run.o
In file included from ../../mem/mem.h:30,
                 from cpl_run.c:35:
cpl_switches.h: In function ‘run_address_switch’:
../../mem/../dprint.h:71:36: error: ‘%.*s’ directive argument is null [-Werror=format-overflow=]
   71 |         #define DP_PREFIX  (char *)"%s [%d] "
      |                                    ^~~~~~~~~~
cpl_switches.h:192:41: note: in expansion of macro ‘LM_DBG’
  192 |                                         LM_DBG("extracted val. is <%.*s>\n",
      |                                         ^~~~~~
  transformations.c: In function ‘tr_eval_sdp’:
  transformations.c:1761:70: error: ‘media.len’ may be used uninitialized [-Werror=maybe-uninitialized]
   1761 |                      if ((media.s != NULL && stream->media.len == media.len &&
        |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  sqlops_impl.c: In function ‘ops_sql_api_insert’:
  sqlops_impl.c:910:12: error: ‘Jcols’ may be used uninitialized [-Werror=maybe-uninitialized]
    910 |         if (Jcols) cJSON_Delete(Jcols);
        |            ^
@sobomax sobomax requested a review from liviuchircu April 18, 2025 08:14
@sobomax
Copy link
Copy Markdown
Contributor Author

sobomax commented Apr 18, 2025

Some unrelated network-transient failure:

+ sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'deb https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu/ jammy main'
Description:
Toolchain test builds; see https://wiki.ubuntu.com/ToolChain

More info: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
Adding repository.
Adding deb entry to /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-jammy.list
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 357, in main
    shortcut.add()
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 222, in add
    self.add_key()
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 398, in add_key
    if not all((self.trustedparts_file, self.trustedparts_content)):
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 141, in trustedparts_content
    key = self.lpppa.getSigningKeyData()
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 592, in __call__
    response, content = self.root._browser._request(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 429, in _request
    raise error
lazr.restfulclient.errors.ServerError: HTTP Error 504: Gateway Time-out
Response headers:
---
-content-encoding: gzip
cache-control: no-cache
content-length: 92
content-type: text/html
date: Fri, 18 Apr 2025 08:13:56 GMT
server: Apache/2.4.41 (Ubuntu)
status: 504
vary: Accept-Encoding
---
Response body:

Copy link
Copy Markdown
Member

@liviuchircu liviuchircu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- lots of sensible fixes, let's get all of these merged. Good work, @sobomax!

@liviuchircu liviuchircu self-assigned this Apr 22, 2025
@liviuchircu liviuchircu merged commit 2ecff3e into OpenSIPS:master Apr 22, 2025
NormB pushed a commit to NormB/opensips that referenced this pull request May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants