Skip to content
Success

Changes

Summary

  1. testenv: run daemons with 'ulimit -c unlimited' (details)
  2. testenv: coredump: support core_pattern=core (details)
  3. testenv: add empty lines around backtrace (details)
  4. library/HTTP_Adapter: do not hard-code 'Content-Type' (details)
Commit f3b452e79e5d242fd1f3fe31414e5041a0f0161a by Oliver Smith
testenv: run daemons with 'ulimit -c unlimited'

Prepare to support getting core files without having systemd-coredump
installed, as we plan to uninstall it from the jenkins servers to make
retrieving coredumps for other jobs feasible again.

When starting daemons, set the maximum core file size to unlimited.
Otherwise it might be at 0, resulting in no core files getting
generated.

I have considered using resource.setrlimit() on the python process
instead, but this wouldn't work when spawning the daemons inside the
podman container.

Change-Id: Ideaf0386c8d6111c2634f276f926e976023ff511
The file was modified_testenv/testenv/daemons.py
Commit 168a3770a3b049400b48114b79e004f120433c6f by Oliver Smith
testenv: coredump: support core_pattern=core

Support getting core files from a typical core_pattern=core where the
coredump just gets stored in the current working dir, instead of always
retrieving it from coredumpctl. This is what we will use with jenkins in
the future, as it makes getting core files in other jobs easier. Remove
support for the custom testenv-coredump-helper code that isn't needed
anymore.

Change-Id: Ia765b01432e4cb4cd36c45de874b966e3ebf55bc
The file was modified_testenv/testenv/daemons.py
The file was modified_testenv/testenv/requirements.py
The file was modified_testenv/testenv/coredump.py
The file was modified_testenv/README.md
Commit f871cdd395677a89a93d71160ee40bb815f787cc by Oliver Smith
testenv: add empty lines around backtrace

Make the backtrace stand out visually from the rest of the logs.

Change-Id: Icd75379a875b72ddf3364895bc6a0afc57d2901e
The file was modified_testenv/testenv/coredump.py
Commit 0efc39b3cb781b0ff2212899e33a7efd8ad358da by Vadim Yanitskiy
library/HTTP_Adapter: do not hard-code 'Content-Type'

* Do not send `Content-Type` when request contains no body.
** This is wrong and some servers would reject such a request.
* Allow passing custom `Content-Type` to
** `f_http_tx_request()` and
** `f_http_transact()`.
* Use `application/json` by default.

Change-Id: Ie35ffc56b4fedc0b4d8c4a689a2232b515b7b326
The file was modifiedlibrary/HTTP_Adapter.ttcn