The columns left to the oom are not used. With this change, the
algorithm becomes more robust and can better handle known special
cases like "kernel:<processname>".
Version mismatch between browser and selenium driver breaks the tests.
The Webdriver manager automatically ensures the compatibility by
downloading the right driver for the installed browser.
After a package update, transcrypt produces incomplete JS:
__target__/OOMAnalyser.js (147:15)
145: }
146: if (cols_to_strip) {
147: var line = ;
^
148: }
149: if (line.startswith ('kernel:')) {
instead of
146 if (cols_to_strip) {
147 var line = __getitem__ ((function () {
148 var __accu0__ = line;
149 return __call__ (__accu0__.py_split, __accu0__, ' ', cols_to_strip);
150 }) (), __neg__ (1));
151 }
152 if (line.startswith ('kernel:')) {
A temporary pinning of Transcrypt to Python 3.7 solves this issue.
Program names in Posix can contain all characters expect the null byte.
The code allows \S (all non-whitespaces) and spaces in program names.
This excluded some allowed characters like \n, \r and \t. No negative
effects should arise from this.
The Python string formatting mini language isn't enabled by default.
"{}".format(42) works fine but "{0:x}.format(42)" returns "{0:x}"
instead of "2a" if the mini language isn't enabled.
Newer Red Hat 7 releases changes the output of the OOM a little bit. The
last output line "Killed process" contains the process UID now.
Old:
Killed process 6576 (java) total-vm:33914892kB, \
anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB
New:
Killed process 6576 (java), UID 12345, total-vm:33914892kB, \
anon-rss:20629004kB, file-rss:0kB, shmem-rss:0kB
Transcrypt 3.7 generates multiple JS files in __target__ directory. All
output files will be bundled into one single file with the rollup
module bundler (rollup.js). Unfortunately the information of the
original sourcemap file will be lost.